|
@@ -8,6 +8,7 @@ import com.steerinfo.dil.mapper.*;
|
|
import com.steerinfo.dil.model.*;
|
|
import com.steerinfo.dil.model.*;
|
|
import com.steerinfo.dil.service.IAmsSaleOrderService;
|
|
import com.steerinfo.dil.service.IAmsSaleOrderService;
|
|
import com.steerinfo.dil.util.*;
|
|
import com.steerinfo.dil.util.*;
|
|
|
|
+import com.steerinfo.framework.utils.base.StringUtils;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
@@ -602,7 +603,12 @@ public class AmsSaleOrderServiceImpl implements IAmsSaleOrderService {
|
|
String isSelfMention = (String) mapValue.get("isSelfMention");
|
|
String isSelfMention = (String) mapValue.get("isSelfMention");
|
|
// 备注
|
|
// 备注
|
|
String saleRemark = (String) mapValue.get("saleRemark");
|
|
String saleRemark = (String) mapValue.get("saleRemark");
|
|
-
|
|
|
|
|
|
+ String saleGroupCode = null;
|
|
|
|
+ try {
|
|
|
|
+ saleGroupCode = "钢" + StringUtils.substringBetween(saleRemark,"钢","组") + "组";
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ }
|
|
// 收款客户
|
|
// 收款客户
|
|
String saleOrderReceiveCustomer = (String) mapValue.get("saleOrderReceiveCustomer");
|
|
String saleOrderReceiveCustomer = (String) mapValue.get("saleOrderReceiveCustomer");
|
|
// 业务员
|
|
// 业务员
|
|
@@ -825,6 +831,9 @@ public class AmsSaleOrderServiceImpl implements IAmsSaleOrderService {
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
|
|
+ if(saleGroupCode != null) {
|
|
|
|
+ amsSaleMaterial.setTransferOutOfWarehouse(saleGroupCode);
|
|
|
|
+ }
|
|
amsSaleMaterial.setInsertTime(new Date());
|
|
amsSaleMaterial.setInsertTime(new Date());
|
|
amsSaleMaterial.setUpdateTime(new Date());
|
|
amsSaleMaterial.setUpdateTime(new Date());
|
|
amsSaleMaterial.setIsPoundSale(isPoundSale);
|
|
amsSaleMaterial.setIsPoundSale(isPoundSale);
|