|
|
@@ -200,7 +200,7 @@ public class ERPServiceImpl implements ERPService {
|
|
|
SpObserver.putSp(master);
|
|
|
SqlRowList rs = baseDao.queryForRowSet("select pi_inoutno,pi_title,PI_SERVICEMODE,PI_PAYMODE,PI_PAYMENTCUSTOMER,nvl(PI_IFRECEIPTFLAG,0) PI_IFRECEIPTFLAG," +
|
|
|
"pi_recordman,em_mobile,pi_purposename,pi_expresscode,pi_catename_user,pi_address,SYSSENDKYE_,pi_listcode,nvl(pi_insuranceValue,0) pi_insuranceValue "+
|
|
|
- " from prodinout left join employee on em_name=pi_recordman where pi_id=? and nvl(SYSSENDKYE_,0)<>0 and nvl(pi_listcode,' ')<>' ' ",id);
|
|
|
+ ",nvl(pi_receiptcount,1) pi_receiptcount from prodinout left join employee on em_name=pi_recordman where pi_id=? and nvl(SYSSENDKYE_,0)<>0 and nvl(pi_listcode,' ')<>' ' ",id);
|
|
|
if(rs.next()) {
|
|
|
logger.info("updateKyeOrder begin: master {} ,id {} ",master,id);
|
|
|
Map<String,Object> map = new HashMap<>();
|
|
|
@@ -235,6 +235,7 @@ public class ERPServiceImpl implements ERPService {
|
|
|
}else{
|
|
|
orderInfo.setReceiptFlag("10");
|
|
|
}
|
|
|
+ orderInfo.setReceiptCount(rs.getGeneralInt("pi_receiptCount"));//回单张数
|
|
|
boolean suc = true;
|
|
|
String response = callWebserviceKYE("open.api.openCommon.updateYdByCondition", JSONArray.toJSONString(orderInfo));
|
|
|
Map<Object, Object> res = BaseUtil.parseFormStoreToMap(response);
|