diff --git a/src_core/com/tenwa/voucher/serviceImp/CustomerServiceImpl.java b/src_core/com/tenwa/voucher/serviceImp/CustomerServiceImpl.java index 5dece303d..1b1ecfeb7 100644 --- a/src_core/com/tenwa/voucher/serviceImp/CustomerServiceImpl.java +++ b/src_core/com/tenwa/voucher/serviceImp/CustomerServiceImpl.java @@ -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();