更新存货档案sql语句完善
This commit is contained in:
parent
c098bbee28
commit
f1eab91cad
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue