Commit 4220a724989ff96457d90a6845ec27469670e691

Authored by liquanyu
1 parent 55c519235d

update code

Showing 1 changed file with 4 additions and 2 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/TestController.java View file @ 4220a72
... ... @@ -949,7 +949,7 @@
949 949  
950 950 @RequestMapping(value = "/updateBabyFmHid", method = RequestMethod.GET)
951 951 @ResponseBody
952   - public String updateBabyFmHid(@RequestParam(required = true) String hid) {
  952 + public String updateBabyFmHid() {
953 953 List<String> list = null;
954 954 try {
955 955 list = FileUtils.readLines(new File("D:\\QHD.csv"), "gbk");
956 956  
957 957  
... ... @@ -958,15 +958,17 @@
958 958 if (ss.length > 1 && ss[0].trim().length() > 0) {
959 959 if (ss[0] != null)
960 960 {
  961 +
961 962 String id = ss[0].replace("-","");
962 963 String name = ss[1];
963   - String oid = (String)JdbcUtil.getQhdMysqlSingleObjBySql("select id from organization where name = '" + name + "'",JdbcUtil.getQhdMysqlConnection());
  964 + String oid = String.valueOf(JdbcUtil.getQhdMysqlSingleObjBySql("select id from organization where name = '" + name + "'", JdbcUtil.getQhdMysqlConnection()));
964 965 BabyModelQuery babyModelQuery = new BabyModelQuery();
965 966 babyModelQuery.setYn(YnEnums.YES.getId());
966 967 babyModelQuery.setId(id);
967 968  
968 969 List<BabyModel> models = babyBookbuildingService.queryBabyBuildByCond(babyModelQuery);
969 970 if (CollectionUtils.isNotEmpty(models) && com.lyms.platform.common.utils.StringUtils.isNotEmpty(oid)) {
  971 + System.out.println(ss[0]+"==="+ss[1]);
970 972 BabyModel model = models.get(0);
971 973 model.setDeliverOrg(oid);
972 974 babyBookbuildingService.updateBabyBuild(model, model.getId());