凭证接口调试

This commit is contained in:
xiezhiwen 2018-12-26 16:39:19 +08:00
parent 13a5e30fb3
commit ad5c9ae8bf

View File

@ -55,7 +55,11 @@ public class CustomerServiceImpl implements CustomerService{
List<Map<String, String>> list = DataOperatorUtil.getDataBySql(Sqlca, sql1, map);
// 如果状态为大写I, 并且查询解果list没有查到结果, 则新增一条客商信息
if("I".equals(CUST_STATUS) && (list.size()==0 || list == null)) {
if((list.size()==0 || list == null) && !"I".equals(CUST_STATUS)) {
return "传输标识有误,此条应为新增,请查证 !";
}else if(!"U".equals(CUST_STATUS) && (list != null || list.size() >0)) {
return "传输标识有误,此条应为变更,请查证 !";
}else if("I".equals(CUST_STATUS) && (list.size()==0 || list == null)) {
insertSql1="INSERT INTO CUSTOMER_LIST(cust_id,cust_name,cust_no,cust_type,inputuserid,inputorgid,inputtime,updateuserid,updateorgid,updatetime) VALUES('"+CUST_ID+"','"+CUST_NAME+"','"+CUST_NO+"',NULL,'administrator','8009001','"+startime+"','administrator','8009001','"+startime+"')";
Sqlca.executeSQL(insertSql1);
// 如果状态为大写U, 并且查询结果有数据, 则新增一条需要变更的数据到记录表