|
@ -123,8 +123,8 @@ public class YkyyController extends EnvelopRestEndpoint {
|
|
|
JSONObject object = JSONObject.parseObject(json);
|
|
|
if (table.equalsIgnoreCase("HLW_CF01")){
|
|
|
HlwCf01DO hlwCf01VO = JSONObject.toJavaObject(object,HlwCf01DO.class);
|
|
|
String cfsbSql =" select dqz + 1 as \"total\" from portal_his.gy_identity_ms@xec_link where bmc = 'MS_CF01'";
|
|
|
String cfhmSql="select dqz + 1 as \"total\" from portal_his.gy_identity_ms@xec_link where bmc = 'MS_CF01_CFHM'";
|
|
|
String cfsbSql =" select dqz + 1 as \"total\" from portal_his.gy_identity_ms@ykzxtest where bmc = 'MS_CF01'";
|
|
|
String cfhmSql="select dqz + 1 as \"total\" from portal_his.gy_identity_ms@ykzxtest where bmc = 'MS_CF01_CFHM'";
|
|
|
List<Map<String,Object>> cfsbList = hibenateUtils.createSQLQuery(cfsbSql);
|
|
|
List<Map<String,Object>> cfhmList = hibenateUtils.createSQLQuery(cfhmSql);
|
|
|
Long cfsb = 0L;
|
|
@ -132,14 +132,14 @@ public class YkyyController extends EnvelopRestEndpoint {
|
|
|
if (cfsbList!=null&&cfsbList.size()!=0){
|
|
|
cfsb = Long.parseLong(cfsbList.get(0).get("total").toString());
|
|
|
System.out.println("cfsb:"+cfsb);
|
|
|
String updateCfsb = "update portal_his.gy_identity_ms@xec_link set dqz=dqz+1 where bmc = 'MS_CF01'";
|
|
|
String updateCfsb = "update portal_his.gy_identity_ms@ykzxtest set dqz=dqz+1 where bmc = 'MS_CF01'";
|
|
|
hibenateUtils.updateBySql(updateCfsb);
|
|
|
|
|
|
}
|
|
|
if (cfhmList!=null&&cfhmList.size()!=0){
|
|
|
cfhm = Long.parseLong(cfhmList.get(0).get("total").toString());
|
|
|
System.out.println("cfhm:"+cfhm);
|
|
|
String updateCfhm = "update portal_his.gy_identity_ms@xec_link set dqz=dqz+1 where bmc = 'MS_CF01_CFHM'";
|
|
|
String updateCfhm = "update portal_his.gy_identity_ms@ykzxtest set dqz=dqz+1 where bmc = 'MS_CF01_CFHM'";
|
|
|
hibenateUtils.updateBySql(updateCfhm);
|
|
|
}
|
|
|
hlwCf01VO.setCFSB(cfsb.intValue());
|
|
@ -152,12 +152,12 @@ public class YkyyController extends EnvelopRestEndpoint {
|
|
|
envelop.setObj(object1);
|
|
|
}else if (table.equalsIgnoreCase("HLW_CF02")){
|
|
|
HlwCf02DO hlwCf02VO = JSONObject.toJavaObject(object,HlwCf02DO.class);
|
|
|
String sbxhSql =" select dqz + 1 as \"total\" from portal_his.gy_identity_ms@xec_link where bmc = 'MS_CF02'";
|
|
|
String sbxhSql =" select dqz + 1 as \"total\" from portal_his.gy_identity_ms@ykzxtest where bmc = 'MS_CF02'";
|
|
|
List<Map<String,Object>> sbxhList = hibenateUtils.createSQLQuery(sbxhSql);
|
|
|
Long sbxh = 0L;
|
|
|
if (sbxhList!=null&&sbxhList.size()!=0){
|
|
|
sbxh = Long.parseLong(sbxhList.get(0).get("total").toString());
|
|
|
String updateSbxh = "update portal_his.gy_identity_ms@xec_link set dqz=dqz+1 where bmc = 'MS_CF02'";
|
|
|
String updateSbxh = "update portal_his.gy_identity_ms@ykzxtest set dqz=dqz+1 where bmc = 'MS_CF02'";
|
|
|
hibenateUtils.updateBySql(updateSbxh);
|
|
|
}
|
|
|
JSONObject object1 = new JSONObject();
|
|
@ -169,12 +169,12 @@ public class YkyyController extends EnvelopRestEndpoint {
|
|
|
}else if(table.equalsIgnoreCase("HlwYsMzJbzdDO")){
|
|
|
// portal_his.gy_identity_ms@xec_link
|
|
|
HlwYsMzJbzdDO hlwYsMzJbzdDO = JSONObject.toJavaObject(object,HlwYsMzJbzdDO.class);
|
|
|
String sbxhSql =" select dqz + 1 as \"total\" from portal_his.gy_identity_ys@xec_link where bmc = 'YS_MZ_JBZD'";
|
|
|
String sbxhSql =" select dqz + 1 as \"total\" from portal_his.gy_identity_ys@ykzxtest where bmc = 'YS_MZ_JBZD'";
|
|
|
List<Map<String,Object>> sbxhList = hibenateUtils.createSQLQuery(sbxhSql);
|
|
|
Long jlbh = 0L;
|
|
|
if (sbxhList!=null&&sbxhList.size()!=0){
|
|
|
jlbh = Long.parseLong(sbxhList.get(0).get("total").toString());
|
|
|
String updateJlbh = "update portal_his.gy_identity_ms@xec_link set dqz=dqz+1 where bmc = 'YS_MZ_JBZD'";
|
|
|
String updateJlbh = "update portal_his.gy_identity_ms@ykzxtest set dqz=dqz+1 where bmc = 'YS_MZ_JBZD'";
|
|
|
hibenateUtils.updateBySql(updateJlbh);
|
|
|
}
|
|
|
JSONObject object1 = new JSONObject();
|
|
@ -185,12 +185,12 @@ public class YkyyController extends EnvelopRestEndpoint {
|
|
|
}else if(table.equalsIgnoreCase("HlwGhmxDO")){
|
|
|
// portal_his.gy_identity_ms@xec_link
|
|
|
HlwGhmxDO hlwGhmxDO = JSONObject.toJavaObject(object,HlwGhmxDO.class);
|
|
|
String sbxhSql =" select dqz + 1 as \"total\" from portal_his.gy_identity_ms@xec_link where bmc = 'MS_GHMX'";
|
|
|
String sbxhSql =" select dqz + 1 as \"total\" from portal_his.gy_identity_ms@ykzxtest where bmc = 'MS_GHMX'";
|
|
|
List<Map<String,Object>> sbxhList = hibenateUtils.createSQLQuery(sbxhSql);
|
|
|
Long sbxh = 0L;
|
|
|
if (sbxhList!=null&&sbxhList.size()!=0){
|
|
|
sbxh = Long.parseLong(sbxhList.get(0).get("total").toString());
|
|
|
String updateSbxh = "update portal_his.gy_identity_ms@xec_link set dqz=dqz+1 where bmc = 'MS_GHMX'";
|
|
|
String updateSbxh = "update portal_his.gy_identity_ms@ykzxtest set dqz=dqz+1 where bmc = 'MS_GHMX'";
|
|
|
hibenateUtils.updateBySql(updateSbxh);
|
|
|
}
|
|
|
JSONObject object1 = new JSONObject();
|
|
@ -207,7 +207,7 @@ public class YkyyController extends EnvelopRestEndpoint {
|
|
|
Long jzxh = 0L;
|
|
|
if (sbxhList!=null&&sbxhList.size()!=0){
|
|
|
jzxh = Long.parseLong(sbxhList.get(0).get("total").toString());
|
|
|
String updateJzxh = "update portal_his.gy_identity_ms@xec_link set dqz=dqz+1 where bmc = 'YS_MZ_JZLS'";
|
|
|
String updateJzxh = "update portal_his.gy_identity_ms@ykzxtest set dqz=dqz+1 where bmc = 'YS_MZ_JZLS'";
|
|
|
hibenateUtils.updateBySql(updateJzxh);
|
|
|
}
|
|
|
JSONObject object1 = new JSONObject();
|