内部客商接口添加日志

This commit is contained in:
xiezhiwen 2019-03-19 18:12:29 +08:00
parent 4c89e6fce2
commit 3ece6958b9

View File

@ -3,8 +3,11 @@ package com.tenwa.voucher.serviceImp;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.amarsoft.are.ARE;
import com.amarsoft.are.jbo.JBOFactory;
import com.amarsoft.are.jbo.JBOTransaction;
import com.amarsoft.are.log.Log;
import com.amarsoft.are.util.StringFunction;
import com.amarsoft.awe.util.Transaction;
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
@ -15,9 +18,10 @@ import com.tenwa.voucher.service.CustomerService;
* @author xiezhiwen
*/
public class CustomerServiceImpl implements CustomerService{
private static Log logger=ARE.getLog();
@SuppressWarnings("deprecation")
public String Customer_syn(String CUST_ID,String CUST_NAME, String CUST_PK,String CUST_STATUS,String InitiateMode){
logger.info("--------------------------------------内部客商接口被调用");
// 获取当前系统时间
String startime = StringFunction.getTodayNow();
// 反馈结果
@ -65,6 +69,7 @@ public class CustomerServiceImpl implements CustomerService{
}else if("I".equals(CUST_STATUS) && list.size()==0) {
insertSql1="INSERT INTO CUSTOMER_LIST(cust_id,cust_name,cust_no,cust_type,cust_status,inputuserid,inputorgid,inputtime,updateuserid,updateorgid,updatetime) VALUES('"+CUST_ID+"','"+CUST_NAME+"','"+CUST_PK+"',NULL,'"+InitiateMode+"','administrator','8009001','"+startime+"','administrator','8009001','"+startime+"')";
Sqlca.executeSQL(insertSql1);
logger.info("新增记录: "+insertSql1);
// 如果有数据, 传出标识也为U, 再具体判断该做什么操作
}else if("U".equals(CUST_STATUS) && list.size() >0) {
// 原客户编码
@ -88,6 +93,7 @@ public class CustomerServiceImpl implements CustomerService{
}
Sqlca.commit();
} catch (Exception e) {
logger.info("---------------------内部客商接口异常");
trueOrFalse="false";
try {
Sqlca.rollback();