更新存货档案sql语句完善

This commit is contained in:
xiang2lin 2024-06-20 15:56:00 +08:00
parent c098bbee28
commit f1eab91cad
1 changed files with 5 additions and 2 deletions

View File

@ -136,7 +136,7 @@ public class SeeyonExtServiceImpl implements ISeeyonExtService {
switch (formApp){
case "-8691606453890363968"://存货
//todo 这里要看一下循环调用的时候 参数是什么样的再决定
sql = "";
sql = "update formmain_0231 set field0014 = '"+code +"' where field0009 = '"+hzyaExtData.getString("billCode")+"' and field0024 = '"+hzyaExtData.getString("serialNumber")+"'";
break;
case "6223456019738676230"://供应商
sql = "update formmain_0229 set field0002 = '"+ code + "' where field0001 = '"+hzyaExtData.getString("billCode")+"'";
@ -146,6 +146,7 @@ public class SeeyonExtServiceImpl implements ISeeyonExtService {
break;
}
if (StrUtil.isNotEmpty(sql)){
System.out.println("要执行的sql"+sql);
String sign = SecureUtil.md5(sql);
String data = SecureUtil.aes(KEY.getBytes()).encryptHex(sql);
Map<String, String> headerMap = MapBuilder.<String, String>create(true)
@ -254,7 +255,9 @@ public class SeeyonExtServiceImpl implements ISeeyonExtService {
oArchives.put("iTaxRate","13");
jsonObject.put("oArchives", oArchives);
param.setBodys(JSON.toJSONString(jsonObject));
hzyaExtData.put("billCode",formson0228.getString("id"));
hzyaExtData.put("serialNumber",formson0228.getString("field0021"));
hzyaExtData.put("billCode",formmain0227.getString("field0009"));
hzyaExtData.put("formsonId",formson0228.getString("id"));
hzyaExtData.put("formmainId",formmain0227.getString("id"));
}
return param;