diff --git a/WebContent/WEB-INF/jsp/developer/common/header.jsp b/WebContent/WEB-INF/jsp/developer/common/header.jsp index eef887ad7a00991099484ae5c70ace2cda89a48a..bd04d71bdfb64813228aeccb2694ab652e848ba3 100644 --- a/WebContent/WEB-INF/jsp/developer/common/header.jsp +++ b/WebContent/WEB-INF/jsp/developer/common/header.jsp @@ -81,7 +81,7 @@ class="fa fa-chevron-down"> diff --git a/WebContent/WEB-INF/web.xml b/WebContent/WEB-INF/web.xml index 5e7fe4ec865c48e4d755dc35834e383da977e7b2..c6e81571669936d9ff04ac7b9ae6f93df0f2e9fc 100644 --- a/WebContent/WEB-INF/web.xml +++ b/WebContent/WEB-INF/web.xml @@ -2,7 +2,7 @@ springMVC - /WEB-INF/jsp/login.jsp + index.jsp contextConfigLocation diff --git a/build/classes/net/jxvtc/controller/AppInfoController.class b/build/classes/net/jxvtc/controller/AppInfoController.class new file mode 100644 index 0000000000000000000000000000000000000000..4b3716c9ad5707bb011ca54a28f89e5b8ab09b1a Binary files /dev/null and b/build/classes/net/jxvtc/controller/AppInfoController.class differ diff --git a/build/classes/net/jxvtc/dao/appcategory/AppCategoryMapper.class b/build/classes/net/jxvtc/dao/appcategory/AppCategoryMapper.class new file mode 100644 index 0000000000000000000000000000000000000000..e7908ffe414f56ae0ef0c4abdcea1604e9d64982 Binary files /dev/null and b/build/classes/net/jxvtc/dao/appcategory/AppCategoryMapper.class differ diff --git a/build/classes/net/jxvtc/dao/appcategory/AppCategoryMapper.xml b/build/classes/net/jxvtc/dao/appcategory/AppCategoryMapper.xml new file mode 100644 index 0000000000000000000000000000000000000000..3cd5a70d774c2b9934f4217d23f0abd04bc7aa97 --- /dev/null +++ b/build/classes/net/jxvtc/dao/appcategory/AppCategoryMapper.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/build/classes/net/jxvtc/dao/appinfo/AppInfoMapper.class b/build/classes/net/jxvtc/dao/appinfo/AppInfoMapper.class new file mode 100644 index 0000000000000000000000000000000000000000..ec2c7ab18bb2f102c721128f10d81ac654216e77 Binary files /dev/null and b/build/classes/net/jxvtc/dao/appinfo/AppInfoMapper.class differ diff --git a/build/classes/net/jxvtc/dao/appinfo/AppInfoMapper.xml b/build/classes/net/jxvtc/dao/appinfo/AppInfoMapper.xml new file mode 100644 index 0000000000000000000000000000000000000000..fd53a575ca6e3ce491758bf958726210f7318dc5 --- /dev/null +++ b/build/classes/net/jxvtc/dao/appinfo/AppInfoMapper.xml @@ -0,0 +1,83 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/build/classes/net/jxvtc/dao/datadictionary/DataDictionaryMapper.class b/build/classes/net/jxvtc/dao/datadictionary/DataDictionaryMapper.class new file mode 100644 index 0000000000000000000000000000000000000000..2ebdf3ba53cb07dc8d3cde78c2dc392dbcb2ae3c Binary files /dev/null and b/build/classes/net/jxvtc/dao/datadictionary/DataDictionaryMapper.class differ diff --git a/build/classes/net/jxvtc/dao/datadictionary/DataDictionaryMapper.xml b/build/classes/net/jxvtc/dao/datadictionary/DataDictionaryMapper.xml new file mode 100644 index 0000000000000000000000000000000000000000..f0e2631c7aa62724df0f849eb1a074c455327182 --- /dev/null +++ b/build/classes/net/jxvtc/dao/datadictionary/DataDictionaryMapper.xml @@ -0,0 +1,17 @@ + + + + + + + + \ No newline at end of file diff --git a/build/classes/net/jxvtc/pojo/AppCategory.class b/build/classes/net/jxvtc/pojo/AppCategory.class new file mode 100644 index 0000000000000000000000000000000000000000..a41e8d152dbf359852aef6dbebc513f8eb65b7ef Binary files /dev/null and b/build/classes/net/jxvtc/pojo/AppCategory.class differ diff --git a/build/classes/net/jxvtc/pojo/AppInfo.class b/build/classes/net/jxvtc/pojo/AppInfo.class new file mode 100644 index 0000000000000000000000000000000000000000..d8e0a4dfa1436db912bf4e25affc7669138d28c6 Binary files /dev/null and b/build/classes/net/jxvtc/pojo/AppInfo.class differ diff --git a/build/classes/net/jxvtc/pojo/DataDictionary.class b/build/classes/net/jxvtc/pojo/DataDictionary.class new file mode 100644 index 0000000000000000000000000000000000000000..5c48f540e85efab30c7b9bb4cfee4cf073b0ddfd Binary files /dev/null and b/build/classes/net/jxvtc/pojo/DataDictionary.class differ diff --git a/build/classes/net/jxvtc/service/appcategory/AppCategoryService.class b/build/classes/net/jxvtc/service/appcategory/AppCategoryService.class new file mode 100644 index 0000000000000000000000000000000000000000..eee1f05fcdd1be3212cb0dcea1e6997d30c7f3c2 Binary files /dev/null and b/build/classes/net/jxvtc/service/appcategory/AppCategoryService.class differ diff --git a/build/classes/net/jxvtc/service/appcategory/AppCategoryServiceImpl.class b/build/classes/net/jxvtc/service/appcategory/AppCategoryServiceImpl.class new file mode 100644 index 0000000000000000000000000000000000000000..b7ed57ed2d9428e37afc04718440b4fd211f85b5 Binary files /dev/null and b/build/classes/net/jxvtc/service/appcategory/AppCategoryServiceImpl.class differ diff --git a/build/classes/net/jxvtc/service/appinfo/AppInfoService.class b/build/classes/net/jxvtc/service/appinfo/AppInfoService.class new file mode 100644 index 0000000000000000000000000000000000000000..b079dc65ac16450085691c930a7199a12526e807 Binary files /dev/null and b/build/classes/net/jxvtc/service/appinfo/AppInfoService.class differ diff --git a/build/classes/net/jxvtc/service/appinfo/AppInfoServiceImpl.class b/build/classes/net/jxvtc/service/appinfo/AppInfoServiceImpl.class new file mode 100644 index 0000000000000000000000000000000000000000..7eb425c348e74353aacacc98e03dfc2bbb1c9ce3 Binary files /dev/null and b/build/classes/net/jxvtc/service/appinfo/AppInfoServiceImpl.class differ diff --git a/build/classes/net/jxvtc/service/datadictionary/DataDictionaryService.class b/build/classes/net/jxvtc/service/datadictionary/DataDictionaryService.class new file mode 100644 index 0000000000000000000000000000000000000000..66a412975c378527a8ee863cfa0408fa5b00d1d5 Binary files /dev/null and b/build/classes/net/jxvtc/service/datadictionary/DataDictionaryService.class differ diff --git a/build/classes/net/jxvtc/service/datadictionary/DataDictionaryServiceImpl.class b/build/classes/net/jxvtc/service/datadictionary/DataDictionaryServiceImpl.class new file mode 100644 index 0000000000000000000000000000000000000000..9308637e5d676fcd32a8a7c7b80b6fca93a26ff3 Binary files /dev/null and b/build/classes/net/jxvtc/service/datadictionary/DataDictionaryServiceImpl.class differ diff --git a/build/classes/net/jxvtc/tools/PageSupport.class b/build/classes/net/jxvtc/tools/PageSupport.class new file mode 100644 index 0000000000000000000000000000000000000000..a17966e1fbe6b433a24f492b987a0b101bcf110f Binary files /dev/null and b/build/classes/net/jxvtc/tools/PageSupport.class differ diff --git a/src/net/jxvtc/controller/AppInfoController.java b/src/net/jxvtc/controller/AppInfoController.java new file mode 100644 index 0000000000000000000000000000000000000000..9fb3ec1ed1d6b65f8d36c776a012de4b430af9e1 --- /dev/null +++ b/src/net/jxvtc/controller/AppInfoController.java @@ -0,0 +1,175 @@ +package net.jxvtc.controller; + +import java.util.ArrayList; +import java.util.List; + +import javax.annotation.Resource; +import javax.servlet.http.HttpSession; + +import org.apache.log4j.Logger; +import org.springframework.stereotype.Controller; +import org.springframework.ui.Model; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.ResponseBody; + +import net.jxvtc.pojo.AppCategory; +import net.jxvtc.pojo.AppInfo; +import net.jxvtc.pojo.DataDictionary; +import net.jxvtc.pojo.DevUser; +import net.jxvtc.service.appcategory.AppCategoryService; +import net.jxvtc.service.appinfo.AppInfoService; +import net.jxvtc.service.datadictionary.DataDictionaryService; +import net.jxvtc.tools.Constants; +import net.jxvtc.tools.PageSupport; + +@Controller +@RequestMapping(value="/dev/flatform/appinfo") +public class AppInfoController { + private Logger logger = Logger.getLogger(AppInfoController.class); + + + @Resource + private AppInfoService appinfoService; + @Resource + private DataDictionaryService dataDictionaryService; + @Resource + private AppCategoryService appCategoryService; + + + + @RequestMapping(value="/list") + public String getAppInfoList(Model model,HttpSession session, + @RequestParam(value="querySoftwareName",required=false)String querySoftwareName, + @RequestParam(value="queryStatus",required=false)String _queryStatus, + @RequestParam(value="queryFlatformId",required=false) String _queryFlatformId, + @RequestParam(value="queryCategoryLevel1",required=false) String _queryCategoryLevel1, + @RequestParam(value="queryCategoryLevel2",required=false) String _queryCategoryLevel2, + @RequestParam(value="queryCategoryLevel3",required=false) String _queryCategoryLevel3, + @RequestParam(value="pageIndex",required=false) String pageIndex + ) + { + logger.info("getAppInfoList---->querySoftwareName+"+querySoftwareName); + logger.info("getAppInfoList---->queryStatus+"+_queryStatus); + logger.info("getAppInfoList---->queryFlatformId+"+_queryFlatformId); + logger.info("getAppInfoList---->queryCategoryLevel1+"+_queryCategoryLevel1); + logger.info("getAppInfoList---->queryCategoryLevel2+"+_queryCategoryLevel2); + logger.info("getAppInfoList---->queryCategoryLevel3+"+_queryCategoryLevel3); + logger.info("getAppInfoList---->pageIndex+"+pageIndex); + List appInfoList=null; + List statusList=null; + List flatFormList=null; + List categoryLevel1List=null; + List categoryLevel2List=null; + List categoryLevel3List=null; + int currentPageNo = 1; + + int pageSize = Constants.pageSize; + + + Integer devId=null; + Integer queryStatus=null; + Integer queryFlatformId=null; + Integer queryCategoryLevel1=null; + Integer queryCategoryLevel2=null; + Integer queryCategoryLevel3=null; + + + + + + + if(_queryStatus!= null && !_queryStatus.equals("")){ + queryStatus = Integer.parseInt(_queryStatus); + } + if(_queryFlatformId!= null && !_queryFlatformId.equals("")){ + queryFlatformId = Integer.parseInt(_queryFlatformId); + } + if(_queryCategoryLevel1!= null && !_queryCategoryLevel1.equals("")){ + queryCategoryLevel1 = Integer.parseInt(_queryCategoryLevel1); + } + if(_queryCategoryLevel2!= null && !_queryCategoryLevel2.equals("")){ + queryCategoryLevel2 = Integer.parseInt(_queryCategoryLevel2); + } + if(_queryCategoryLevel3!= null && !_queryCategoryLevel3.equals("")){ + queryCategoryLevel3 = Integer.parseInt(_queryCategoryLevel3); + } + if(pageIndex != null){ + try{ + currentPageNo = Integer.valueOf(pageIndex); + }catch(NumberFormatException e){ + e.printStackTrace(); + } + } + + //总数量(表) + int totalCount = 0; + try { + + totalCount = appinfoService.getAppInfoCount(querySoftwareName, queryStatus, devId, + queryFlatformId, queryCategoryLevel1, + queryCategoryLevel2, queryCategoryLevel3); + } catch (Exception e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + //总页数 + PageSupport pages=new PageSupport(); + pages.setCurrentPageNo(currentPageNo); + pages.setPageSize(pageSize); + pages.setTotalCount(totalCount); + int totalPageCount = pages.getTotalPageCount(); + //控制首页和尾页 + if(currentPageNo < 1){ + currentPageNo = 1; + }else if(currentPageNo > totalPageCount){ + currentPageNo = totalPageCount; + } + try { + appInfoList=appinfoService.getAppInfo(querySoftwareName, queryStatus, devId, + queryFlatformId, queryCategoryLevel1, + queryCategoryLevel2, queryCategoryLevel3, + currentPageNo, pageSize); + statusList = dataDictionaryService.getDataDictionaryList("APP_STATUS"); + flatFormList = dataDictionaryService.getDataDictionaryList("APP_FLATFORM"); + categoryLevel1List = appCategoryService.getAppCategoryListByparentId(null); + } catch (Exception e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + model.addAttribute("appInfoList",appInfoList); + model.addAttribute("statusList",statusList); + model.addAttribute("flatFormList",flatFormList); + model.addAttribute("categoryLevel1List",categoryLevel1List); + model.addAttribute("categoryLevel2List",categoryLevel2List); + model.addAttribute("categoryLevel3List",categoryLevel3List); + model.addAttribute("totalPageCount", totalPageCount); + model.addAttribute("totalCount", totalCount); + model.addAttribute("pages",pages); + model.addAttribute("currentPageNo", currentPageNo); + model.addAttribute("querySoftwareName",querySoftwareName); + model.addAttribute("queryStatus",queryStatus); + model.addAttribute("queryStatus",queryStatus); + model.addAttribute("queryCategoryLevel1",queryCategoryLevel1); + model.addAttribute("queryCategoryLevel2",queryCategoryLevel2); + model.addAttribute("queryCategoryLevel3",queryCategoryLevel3); + return "developer/appinfolist"; + + + } + @RequestMapping("/categorylevellist") + @ResponseBody + public List getCategoryList(@RequestParam(value="pid",required=false)Integer pid) + { + List list=new ArrayList(); + try { + list= appCategoryService.getAppCategoryListByparentId(pid); + } catch (Exception e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + return list; + } + +} + diff --git a/src/net/jxvtc/dao/appcategory/AppCategoryMapper.java b/src/net/jxvtc/dao/appcategory/AppCategoryMapper.java new file mode 100644 index 0000000000000000000000000000000000000000..28bdb8833c7c6ddf98fe559eb792160bdaa19e24 --- /dev/null +++ b/src/net/jxvtc/dao/appcategory/AppCategoryMapper.java @@ -0,0 +1,11 @@ +package net.jxvtc.dao.appcategory; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; + +import net.jxvtc.pojo.AppCategory; + +public interface AppCategoryMapper { + public List getAppCategoryByparentId(@Param("parentId")Integer parentId)throws Exception; + } diff --git a/src/net/jxvtc/dao/appcategory/AppCategoryMapper.xml b/src/net/jxvtc/dao/appcategory/AppCategoryMapper.xml new file mode 100644 index 0000000000000000000000000000000000000000..3cd5a70d774c2b9934f4217d23f0abd04bc7aa97 --- /dev/null +++ b/src/net/jxvtc/dao/appcategory/AppCategoryMapper.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/src/net/jxvtc/dao/appinfo/AppInfoMapper.java b/src/net/jxvtc/dao/appinfo/AppInfoMapper.java new file mode 100644 index 0000000000000000000000000000000000000000..23c807ffabe26a991f44df6f549028413dfe0a99 --- /dev/null +++ b/src/net/jxvtc/dao/appinfo/AppInfoMapper.java @@ -0,0 +1,37 @@ +package net.jxvtc.dao.appinfo; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; + +import net.jxvtc.pojo.AppInfo; + +public interface AppInfoMapper { + /** + * App列表 + */ + public List getAppInfoList + (@Param(value="softwareName")String querySoftwareName, + @Param(value="status")Integer queryStatus, + @Param(value="flatformId")Integer queryFlatformId, + @Param(value="categoryLevel1")Integer queryCategoryLevel1, + @Param(value="categoryLevel2")Integer queryCategoryLevel2, + @Param(value="categoryLevel3")Integer queryCategoryLevel3, + @Param(value="devId")Integer devId, + @Param("from")Integer currentPageNo, + @Param("pageSize")Integer pageSize)throws Exception; + public int getAppInfoCount + (@Param(value="softwareName")String querySoftwareName, + @Param(value="status")Integer queryStatus, + @Param(value="flatformId")Integer queryFlatformId, + @Param(value="categoryLevel1")Integer queryCategoryLevel1, + @Param(value="categoryLevel2")Integer queryCategoryLevel2, + @Param(value="categoryLevel3")Integer queryCategoryLevel3, + @Param(value="devId")Integer devId)throws Exception; + + public AppInfo getAppInfo(@Param(value="id")Integer id, + @Param(value="APKName")String APKName)throws Exception; + + + +} diff --git a/src/net/jxvtc/dao/appinfo/AppInfoMapper.xml b/src/net/jxvtc/dao/appinfo/AppInfoMapper.xml new file mode 100644 index 0000000000000000000000000000000000000000..fd53a575ca6e3ce491758bf958726210f7318dc5 --- /dev/null +++ b/src/net/jxvtc/dao/appinfo/AppInfoMapper.xml @@ -0,0 +1,83 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/src/net/jxvtc/dao/datadictionary/DataDictionaryMapper.java b/src/net/jxvtc/dao/datadictionary/DataDictionaryMapper.java new file mode 100644 index 0000000000000000000000000000000000000000..a47fe772935ce23c3d511762bb3966a6eefbd091 --- /dev/null +++ b/src/net/jxvtc/dao/datadictionary/DataDictionaryMapper.java @@ -0,0 +1,11 @@ +package net.jxvtc.dao.datadictionary; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; + +import net.jxvtc.pojo.DataDictionary; + +public interface DataDictionaryMapper { + public List getDataDictionaryList(@Param("typeCode")String typeCode)throws Exception; +} diff --git a/src/net/jxvtc/dao/datadictionary/DataDictionaryMapper.xml b/src/net/jxvtc/dao/datadictionary/DataDictionaryMapper.xml new file mode 100644 index 0000000000000000000000000000000000000000..f0e2631c7aa62724df0f849eb1a074c455327182 --- /dev/null +++ b/src/net/jxvtc/dao/datadictionary/DataDictionaryMapper.xml @@ -0,0 +1,17 @@ + + + + + + + + \ No newline at end of file diff --git a/src/net/jxvtc/pojo/AppCategory.java b/src/net/jxvtc/pojo/AppCategory.java new file mode 100644 index 0000000000000000000000000000000000000000..824cff409dec2f873cc80c030d2b2a0ee8c3a920 --- /dev/null +++ b/src/net/jxvtc/pojo/AppCategory.java @@ -0,0 +1,63 @@ +package net.jxvtc.pojo; + +import java.util.Date; + +public class AppCategory { + private Integer id;//id; + private String categoryCode;//分类编码 + private String categoryName;//分类名称 + private Integer parentId;//父级节点id; + private Integer createdBy;//创建者 + private Date creationTime;//创建时间 + private Integer modifyBy;//更新者 + private Date modifyDate;//更新时间 + public Integer getId() { + return id; + } + public void setId(Integer id) { + this.id = id; + } + public String getCategoryCode() { + return categoryCode; + } + public void setCategoryCode(String categoryCode) { + this.categoryCode = categoryCode; + } + public String getCategoryName() { + return categoryName; + } + public void setCategoryName(String categoryName) { + this.categoryName = categoryName; + } + public Integer getParentId() { + return parentId; + } + public void setParentId(Integer parentId) { + this.parentId = parentId; + } + public Integer getCreatedBy() { + return createdBy; + } + public void setCreatedBy(Integer createdBy) { + this.createdBy = createdBy; + } + public Date getCreationTime() { + return creationTime; + } + public void setCreationTime(Date creationTime) { + this.creationTime = creationTime; + } + public Integer getModifyBy() { + return modifyBy; + } + public void setModifyBy(Integer modifyBy) { + this.modifyBy = modifyBy; + } + public Date getModifyDate() { + return modifyDate; + } + public void setModifyDate(Date modifyDate) { + this.modifyDate = modifyDate; + } + +} diff --git a/src/net/jxvtc/pojo/AppInfo.java b/src/net/jxvtc/pojo/AppInfo.java new file mode 100644 index 0000000000000000000000000000000000000000..d5849c97054c488c3a5b5bdfcbe62bc39978d0f3 --- /dev/null +++ b/src/net/jxvtc/pojo/AppInfo.java @@ -0,0 +1,225 @@ +package net.jxvtc.pojo; + +import java.math.BigDecimal; +import java.util.Date; + +public class AppInfo { + private Integer id;//id; + private String softwareName;//软件名 + private String APKName;//APK名 + private String supportROM;//支持的ROM + private String interfaceLanguage;//界面语言 + private BigDecimal softwareSize;//软件大小 + private Date updateDate;//更新日期 + private Integer devId;//开发者Id + private String appInfo;//App简介 + private Integer status;//状态 + private Date onSaleDate;//上架时间 + private Date offSaleDate;//下架时间 + private Integer flatformId;//所属平台 + private String flatformName; + private String statusName; + private String categoryLevel1Name; + private String categoryLevel2Name; + private String categoryLevel3Name; + private String devName; + private String versionNo; + public String getVersionNo() { + return versionNo; + } + public void setVersionNo(String versionNo) { + this.versionNo = versionNo; + } + public String getStatusName() { + return statusName; + } + public void setStatusName(String statusName) { + this.statusName = statusName; + } + public String getCategoryLevel1Name() { + return categoryLevel1Name; + } + public void setCategoryLevel1Name(String categoryLevel1Name) { + this.categoryLevel1Name = categoryLevel1Name; + } + public String getCategoryLevel2Name() { + return categoryLevel2Name; + } + public void setCategoryLevel2Name(String categoryLevel2Name) { + this.categoryLevel2Name = categoryLevel2Name; + } + public String getCategoryLevel3Name() { + return categoryLevel3Name; + } + public void setCategoryLevel3Name(String categoryLevel3Name) { + this.categoryLevel3Name = categoryLevel3Name; + } + public String getDevName() { + return devName; + } + public void setDevName(String devName) { + this.devName = devName; + } + public String getFlatformName() { + return flatformName; + } + public void setFlatformName(String flatformName) { + this.flatformName = flatformName; + } + private Integer categoryLevel3;//所属3级分类 + private Integer downloads;//下载次数 + private Integer createdBy;//创建者 + private Date creationDate;//创建日期 + private Integer modifyBy;//创建者 + private Date modifyDate;//创建日期 + private Integer categoryLevel1;//所属1级分类 + private Integer categoryLevel2;//所属2级分类 + private String logoPicPath;//图片的url地址 + private String logoLocPath;//图片的服务器地址 + private Integer versionId;//版本号id + public Integer getId() { + return id; + } + public void setId(Integer id) { + this.id = id; + } + public String getSoftwareName() { + return softwareName; + } + public void setSoftwareName(String softwareName) { + this.softwareName = softwareName; + } + public String getAPKName() { + return APKName; + } + public void setAPKName(String aPKName) { + APKName = aPKName; + } + public String getSupportROM() { + return supportROM; + } + public void setSupportROM(String supportROM) { + this.supportROM = supportROM; + } + public String getInterfaceLanguage() { + return interfaceLanguage; + } + public void setInterfaceLanguage(String interfaceLanguage) { + this.interfaceLanguage = interfaceLanguage; + } + public BigDecimal getSoftwareSize() { + return softwareSize; + } + public void setSoftwareSize(BigDecimal softwareSize) { + this.softwareSize = softwareSize; + } + public Date getUpdateDate() { + return updateDate; + } + public void setUpdateDate(Date updateDate) { + this.updateDate = updateDate; + } + public Integer getDevId() { + return devId; + } + public void setDevId(Integer devId) { + this.devId = devId; + } + public String getAppInfo() { + return appInfo; + } + public void setAppInfo(String appInfo) { + this.appInfo = appInfo; + } + public Integer getStatus() { + return status; + } + public void setStatus(Integer status) { + this.status = status; + } + public Date getOnSaleDate() { + return onSaleDate; + } + public void setOnSaleDate(Date onSaleDate) { + this.onSaleDate = onSaleDate; + } + public Date getOffSaleDate() { + return offSaleDate; + } + public void setOffSaleDate(Date offSaleDate) { + this.offSaleDate = offSaleDate; + } + public Integer getFlatformId() { + return flatformId; + } + public void setFlatformId(Integer flatformId) { + this.flatformId = flatformId; + } + public Integer getCategoryLevel3() { + return categoryLevel3; + } + public void setCategoryLevel3(Integer categoryLevel3) { + this.categoryLevel3 = categoryLevel3; + } + public Integer getDownloads() { + return downloads; + } + public void setDownloads(Integer downloads) { + this.downloads = downloads; + } + public Integer getCreatedBy() { + return createdBy; + } + public void setCreatedBy(Integer createdBy) { + this.createdBy = createdBy; + } + public Date getCreationDate() { + return creationDate; + } + public void setCreationDate(Date creationDate) { + this.creationDate = creationDate; + } + public Integer getModifyBy() { + return modifyBy; + } + public void setModifyBy(Integer modifyBy) { + this.modifyBy = modifyBy; + } + public Date getModifyDate() { + return modifyDate; + } + public void setModifyDate(Date modifyDate) { + this.modifyDate = modifyDate; + } + public Integer getCategoryLevel1() { + return categoryLevel1; + } + public void setCategoryLevel1(Integer categoryLevel1) { + this.categoryLevel1 = categoryLevel1; + } + public Integer getCategoryLevel2() { + return categoryLevel2; + } + public void setCategoryLevel2(Integer categoryLevel2) { + this.categoryLevel2 = categoryLevel2; + } + public String getLogoPicPath() { + return logoPicPath; + } + public void setLogoPicPath(String logoPicPath) { + this.logoPicPath = logoPicPath; + } + public String getLogoLocPath() { + return logoLocPath; + } + public void setLogoLocPath(String logoLocPath) { + this.logoLocPath = logoLocPath; + } + public Integer getVersionId() { + return versionId; + } + public void setVersionId(Integer versionId) { + this.versionId = versionId; + } + +} \ No newline at end of file diff --git a/src/net/jxvtc/pojo/DataDictionary.java b/src/net/jxvtc/pojo/DataDictionary.java new file mode 100644 index 0000000000000000000000000000000000000000..702c19346b77b3aa6e4205d890b709b50ca213c5 --- /dev/null +++ b/src/net/jxvtc/pojo/DataDictionary.java @@ -0,0 +1,69 @@ +package net.jxvtc.pojo; + +import java.util.Date; + +public class DataDictionary { + private Integer id;//id; + private String typeCode;//类型编码 + private String typeName;//类型名称 + private Integer valueId;//类型之id + private String valueName;//类型值名称 + private Integer creatBy;//创建者 + private Date creationDate;//创建时间 + private Integer modifyBy;//更新者 + private Date modifyDate;//更新时间 + public Integer getId() { + return id; + } + public void setId(Integer id) { + this.id = id; + } + public String getTypeCode() { + return typeCode; + } + public void setTypeCode(String typeCode) { + this.typeCode = typeCode; + } + public String getTypeName() { + return typeName; + } + public void setTypeName(String typeName) { + this.typeName = typeName; + } + public Integer getValueId() { + return valueId; + } + public void setValueId(Integer valueId) { + this.valueId = valueId; + } + public String getValueName() { + return valueName; + } + public void setValueName(String valueName) { + this.valueName = valueName; + } + public Integer getCreatBy() { + return creatBy; + } + public void setCreatBy(Integer creatBy) { + this.creatBy = creatBy; + } + public Date getCreationDate() { + return creationDate; + } + public void setCreationDate(Date creationDate) { + this.creationDate = creationDate; + } + public Integer getModifyBy() { + return modifyBy; + } + public void setModifyBy(Integer modifyBy) { + this.modifyBy = modifyBy; + } + public Date getModifyDate() { + return modifyDate; + } + public void setModifyDate(Date modifyDate) { + this.modifyDate = modifyDate; + } +} diff --git a/src/net/jxvtc/service/appcategory/AppCategoryService.java b/src/net/jxvtc/service/appcategory/AppCategoryService.java new file mode 100644 index 0000000000000000000000000000000000000000..0ed1cf8aed94bad783d6b058866e99af4ee917b9 --- /dev/null +++ b/src/net/jxvtc/service/appcategory/AppCategoryService.java @@ -0,0 +1,10 @@ +package net.jxvtc.service.appcategory; + +import java.util.List; + +import net.jxvtc.pojo.AppCategory; + +public interface AppCategoryService { + public List getAppCategoryListByparentId(Integer parentId)throws Exception; + +} diff --git a/src/net/jxvtc/service/appcategory/AppCategoryServiceImpl.java b/src/net/jxvtc/service/appcategory/AppCategoryServiceImpl.java new file mode 100644 index 0000000000000000000000000000000000000000..ec6adf310730bb283cfab89c2a309bcafa3dcfb3 --- /dev/null +++ b/src/net/jxvtc/service/appcategory/AppCategoryServiceImpl.java @@ -0,0 +1,26 @@ +package net.jxvtc.service.appcategory; + +import java.util.List; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import net.jxvtc.dao.appcategory.AppCategoryMapper; +import net.jxvtc.pojo.AppCategory; + + +@Service +public class AppCategoryServiceImpl implements AppCategoryService{ + + @Resource + private AppCategoryMapper appCategoryMapper; + + + @Override + public List getAppCategoryListByparentId(Integer parentId) throws Exception { + // TODO Auto-generated method stub + return appCategoryMapper.getAppCategoryByparentId(parentId); + } + +} diff --git a/src/net/jxvtc/service/appinfo/AppInfoService.java b/src/net/jxvtc/service/appinfo/AppInfoService.java new file mode 100644 index 0000000000000000000000000000000000000000..02485afd3702650dcb8e8b9d61b6962a2edd0809 --- /dev/null +++ b/src/net/jxvtc/service/appinfo/AppInfoService.java @@ -0,0 +1,21 @@ +package net.jxvtc.service.appinfo; + +import java.util.List; + +import net.jxvtc.pojo.AppInfo; + +public interface AppInfoService { + public List getAppInfo(String querySoftwareName, + Integer queryStatus, Integer queryFlatfromId, + Integer queryCategoyrLevel, Integer queryCategoyrLeve2, + Integer queryCategoyrLeve3, Integer queryDevId, + Integer currentPageNo, Integer pageSize) throws Exception; + + public int getAppInfoCount(String querySoftwareName, Integer queryStatus, + Integer queryFlatfromId, + Integer queryCategoyrLevel, Integer queryCategoyrLeve2, + Integer queryCategoyrLeve3, Integer queryDevId) + throws Exception; + + +} diff --git a/src/net/jxvtc/service/appinfo/AppInfoServiceImpl.java b/src/net/jxvtc/service/appinfo/AppInfoServiceImpl.java new file mode 100644 index 0000000000000000000000000000000000000000..403c6a480d3078d8f9870ae45522f6479b6b4887 --- /dev/null +++ b/src/net/jxvtc/service/appinfo/AppInfoServiceImpl.java @@ -0,0 +1,49 @@ +package net.jxvtc.service.appinfo; + +import java.util.List; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import net.jxvtc.dao.appinfo.AppInfoMapper; +import net.jxvtc.pojo.AppInfo; + +@Service +public class AppInfoServiceImpl implements AppInfoService { + @Resource + private AppInfoMapper appInfomapper; + + + + + @Override + public List getAppInfo(String querySoftwareName, + Integer queryStatus, Integer queryFlatfromId, + Integer queryCategoyrLevel, Integer queryCategoyrLeve2, + Integer queryCategoyrLeve3, Integer queryDevId, + Integer currentPageNo,Integer pageSize) throws Exception + { + // TODO Auto-generated method stub + currentPageNo = (currentPageNo-1)*pageSize; + return appInfomapper.getAppInfoList(querySoftwareName, queryStatus, + queryFlatfromId,queryCategoyrLevel, + queryCategoyrLeve2,queryCategoyrLeve3, + queryDevId, + currentPageNo, pageSize); + } + + @Override + public int getAppInfoCount(String querySoftwareName, Integer queryStatus, + Integer queryFlatfromId,Integer queryCategoyrLevel, + Integer queryCategoyrLeve2, Integer queryCategoyrLeve3, + Integer queryDevId)throws Exception + { + // TODO Auto-generated method stub + return appInfomapper.getAppInfoCount(querySoftwareName, queryStatus, + queryFlatfromId,queryCategoyrLevel, + queryCategoyrLeve2,queryCategoyrLeve3, + queryDevId); + } + +} diff --git a/src/net/jxvtc/service/datadictionary/DataDictionaryService.java b/src/net/jxvtc/service/datadictionary/DataDictionaryService.java new file mode 100644 index 0000000000000000000000000000000000000000..df4d37d5b1fa2a2a52acaa2e00e2f8a2712d57ea --- /dev/null +++ b/src/net/jxvtc/service/datadictionary/DataDictionaryService.java @@ -0,0 +1,12 @@ +package net.jxvtc.service.datadictionary; + +import java.util.List; + +import net.jxvtc.pojo.DataDictionary; + +public interface DataDictionaryService { + + + public List getDataDictionaryList(String typeCode)throws Exception; + +} diff --git a/src/net/jxvtc/service/datadictionary/DataDictionaryServiceImpl.java b/src/net/jxvtc/service/datadictionary/DataDictionaryServiceImpl.java new file mode 100644 index 0000000000000000000000000000000000000000..6f2ef8557ff77768ec7943eaced9da2c8f571c3e --- /dev/null +++ b/src/net/jxvtc/service/datadictionary/DataDictionaryServiceImpl.java @@ -0,0 +1,26 @@ +package net.jxvtc.service.datadictionary; + +import java.util.List; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import net.jxvtc.dao.datadictionary.DataDictionaryMapper; +import net.jxvtc.pojo.DataDictionary; + + +@Service +public class DataDictionaryServiceImpl implements DataDictionaryService { + + @Resource + private DataDictionaryMapper dataDictionaryMapper; + + + @Override + public List getDataDictionaryList(String typeCode) throws Exception { + // TODO Auto-generated method stub + return dataDictionaryMapper.getDataDictionaryList(typeCode); + } + +} diff --git a/src/net/jxvtc/tools/PageSupport.java b/src/net/jxvtc/tools/PageSupport.java new file mode 100644 index 0000000000000000000000000000000000000000..7ba8cdb12eed313ba414890d678e533e664ecb66 --- /dev/null +++ b/src/net/jxvtc/tools/PageSupport.java @@ -0,0 +1,70 @@ +package net.jxvtc.tools; + +/** + * 分页工具类 + * @author + * + */ +public class PageSupport { + //当前页码-来自于用户输入 + private int currentPageNo = 1; + + //总数量(表) + private int totalCount = 0; + + //页面容量 + private int pageSize = 0; + + //总页数-totalCount/pageSize(+1) + private int totalPageCount = 1; + + public int getCurrentPageNo() { + return currentPageNo; + } + + public void setCurrentPageNo(int currentPageNo) { + if(currentPageNo > 0){ + this.currentPageNo = currentPageNo; + } + } + + public int getTotalCount() { + return totalCount; + } + + public void setTotalCount(int totalCount) { + if(totalCount > 0){ + this.totalCount = totalCount; + //设置总页数 + this.setTotalPageCountByRs(); + } + } + public int getPageSize() { + return pageSize; + } + + public void setPageSize(int pageSize) { + if(pageSize > 0){ + this.pageSize = pageSize; + } + } + + public int getTotalPageCount() { + return totalPageCount; + } + + public void setTotalPageCount(int totalPageCount) { + this.totalPageCount = totalPageCount; + } + + public void setTotalPageCountByRs(){ + if(this.totalCount % this.pageSize == 0){ + this.totalPageCount = this.totalCount / this.pageSize; + }else if(this.totalCount % this.pageSize > 0){ + this.totalPageCount = this.totalCount / this.pageSize + 1; + }else{ + this.totalPageCount = 0; + } + } + +} \ No newline at end of file