diff --git a/WebContent/WEB-INF/jsp/developer/appinfolist.jsp b/WebContent/WEB-INF/jsp/developer/appinfolist.jsp index af0115a9ce6408b1c6640cfa2adf531939f92a25..d7598fa5f3e6c25accc38ee684650f6fb2e9e3ad 100644 --- a/WebContent/WEB-INF/jsp/developer/appinfolist.jsp +++ b/WebContent/WEB-INF/jsp/developer/appinfolist.jsp @@ -120,7 +120,7 @@ class="dataTables_wrapper form-inline dt-bootstrap no-footer">
- 新增APP基础信息 + 新增APP基础信息 diff --git a/build/classes/net/jxvtc/controller/AppInfoController.class b/build/classes/net/jxvtc/controller/AppInfoController.class index 4b3716c9ad5707bb011ca54a28f89e5b8ab09b1a..2a1db77ed99d9bbc4f1ae5d25c8d87e8f5113a7c 100644 Binary files a/build/classes/net/jxvtc/controller/AppInfoController.class and b/build/classes/net/jxvtc/controller/AppInfoController.class differ diff --git a/build/classes/net/jxvtc/dao/appinfo/AppInfoMapper.class b/build/classes/net/jxvtc/dao/appinfo/AppInfoMapper.class index ec2c7ab18bb2f102c721128f10d81ac654216e77..869f6ee1fbb49a84280b091022782b91d5ab2726 100644 Binary files a/build/classes/net/jxvtc/dao/appinfo/AppInfoMapper.class 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 index fd53a575ca6e3ce491758bf958726210f7318dc5..ba2a97b461b7aa79444f92347afca7c56f864058 100644 --- a/build/classes/net/jxvtc/dao/appinfo/AppInfoMapper.xml +++ b/build/classes/net/jxvtc/dao/appinfo/AppInfoMapper.xml @@ -78,6 +78,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + + + INSERT INTO `app_info`( `softwareName`, `APKName`, `supportROM`, + `interfaceLanguage`, `softwareSize`, `updateDate`, + `devId`, `appInfo`, `status`, `onSaleDate`, `offSaleDate`, + `flatformId`, `categoryLevel3`, `downloads`, `createdBy`, + `creationDate`, `categoryLevel1`, `categoryLevel2`, + `logoPicPath`, `logoLocPath`, `versionId`) VALUES + ( #{softwareName}, #{APKName}, #{supportROM}, + #{interfaceLanguage}, #{softwareSize}, #{updateDate}, + #{devId}, #{appInfo}, #{status}, #{onSaleDate}, #{offSaleDate}, + #{flatformId}, #{categoryLevel3}, #{downloads}, #{createdBy}, + #{creationDate}, #{categoryLevel1}, #{categoryLevel2}, + #{logoPicPath}, #{logoLocPath}, #{versionId}); + + + \ No newline at end of file diff --git a/build/classes/net/jxvtc/service/appinfo/AppInfoService.class b/build/classes/net/jxvtc/service/appinfo/AppInfoService.class index b079dc65ac16450085691c930a7199a12526e807..70a3c185d66db58b2f9e0c82df99e4606373979f 100644 Binary files a/build/classes/net/jxvtc/service/appinfo/AppInfoService.class 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 index 7eb425c348e74353aacacc98e03dfc2bbb1c9ce3..adf4dc6c6ea5fb5befe702110fc6e4fc3c39b848 100644 Binary files a/build/classes/net/jxvtc/service/appinfo/AppInfoServiceImpl.class and b/build/classes/net/jxvtc/service/appinfo/AppInfoServiceImpl.class differ diff --git a/src/net/jxvtc/controller/AppInfoController.java b/src/net/jxvtc/controller/AppInfoController.java index 9fb3ec1ed1d6b65f8d36c776a012de4b430af9e1..04bb48c4b8ca7dc7d2a1826ba91b51d242b97b15 100644 --- a/src/net/jxvtc/controller/AppInfoController.java +++ b/src/net/jxvtc/controller/AppInfoController.java @@ -9,7 +9,9 @@ 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.ModelAttribute; import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.ResponseBody; @@ -171,5 +173,27 @@ public class AppInfoController { return list; } + + + @RequestMapping(value="/datadictionarylist",method=RequestMethod.GET) + @ResponseBody + public List getDataDictionaryList (@RequestParam (value="tcode",required=false)String tcode){ + List list=new ArrayList(); + try { + list=dataDictionaryService.getDataDictionaryList(tcode); + } catch (Exception e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + return list; + } + + @RequestMapping(value="/appinfoadd",method=RequestMethod.GET) + public String add(@ModelAttribute("appInfo") AppInfo appInfo){ + return "developer/appinfoadd"; + } + + + } diff --git a/src/net/jxvtc/dao/appinfo/AppInfoMapper.java b/src/net/jxvtc/dao/appinfo/AppInfoMapper.java index 23c807ffabe26a991f44df6f549028413dfe0a99..06365acdf55cfcbe12285389d01b21c3e4815660 100644 --- a/src/net/jxvtc/dao/appinfo/AppInfoMapper.java +++ b/src/net/jxvtc/dao/appinfo/AppInfoMapper.java @@ -7,6 +7,10 @@ import org.apache.ibatis.annotations.Param; import net.jxvtc.pojo.AppInfo; public interface AppInfoMapper { + + + + /** * App列表 */ @@ -29,9 +33,8 @@ public interface AppInfoMapper { @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; - + + public int add(AppInfo appinfo)throws Exception; } diff --git a/src/net/jxvtc/dao/appinfo/AppInfoMapper.xml b/src/net/jxvtc/dao/appinfo/AppInfoMapper.xml index fd53a575ca6e3ce491758bf958726210f7318dc5..ba2a97b461b7aa79444f92347afca7c56f864058 100644 --- a/src/net/jxvtc/dao/appinfo/AppInfoMapper.xml +++ b/src/net/jxvtc/dao/appinfo/AppInfoMapper.xml @@ -78,6 +78,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + + + INSERT INTO `app_info`( `softwareName`, `APKName`, `supportROM`, + `interfaceLanguage`, `softwareSize`, `updateDate`, + `devId`, `appInfo`, `status`, `onSaleDate`, `offSaleDate`, + `flatformId`, `categoryLevel3`, `downloads`, `createdBy`, + `creationDate`, `categoryLevel1`, `categoryLevel2`, + `logoPicPath`, `logoLocPath`, `versionId`) VALUES + ( #{softwareName}, #{APKName}, #{supportROM}, + #{interfaceLanguage}, #{softwareSize}, #{updateDate}, + #{devId}, #{appInfo}, #{status}, #{onSaleDate}, #{offSaleDate}, + #{flatformId}, #{categoryLevel3}, #{downloads}, #{createdBy}, + #{creationDate}, #{categoryLevel1}, #{categoryLevel2}, + #{logoPicPath}, #{logoLocPath}, #{versionId}); + + + \ No newline at end of file diff --git a/src/net/jxvtc/service/appinfo/AppInfoService.java b/src/net/jxvtc/service/appinfo/AppInfoService.java index 02485afd3702650dcb8e8b9d61b6962a2edd0809..14929a514daf924973f4e44ceab991d172112a0d 100644 --- a/src/net/jxvtc/service/appinfo/AppInfoService.java +++ b/src/net/jxvtc/service/appinfo/AppInfoService.java @@ -16,6 +16,6 @@ public interface AppInfoService { Integer queryCategoyrLevel, Integer queryCategoyrLeve2, Integer queryCategoyrLeve3, Integer queryDevId) throws Exception; - + public boolean add(AppInfo appInfo)throws Exception; } diff --git a/src/net/jxvtc/service/appinfo/AppInfoServiceImpl.java b/src/net/jxvtc/service/appinfo/AppInfoServiceImpl.java index 403c6a480d3078d8f9870ae45522f6479b6b4887..f6ce2e5f76b02c59232ac4dd89524a24a53e3a71 100644 --- a/src/net/jxvtc/service/appinfo/AppInfoServiceImpl.java +++ b/src/net/jxvtc/service/appinfo/AppInfoServiceImpl.java @@ -46,4 +46,15 @@ public class AppInfoServiceImpl implements AppInfoService { queryDevId); } + @Override + public boolean add(AppInfo appInfo) throws Exception { + // TODO Auto-generated method stub + boolean flag=false; + if(appInfomapper.add(appInfo)>0) + { + flag=true; + } + return flag; + } + }