Kaynağa Gözat

如果902销售订单客户 做判断 如果是香港森语 就需要向上追溯(取佣金)<==增加时间限制

fenghaifu 5 gün önce
ebeveyn
işleme
f8a6761867

+ 1 - 1
jeecg-boot-module-system/src/main/java/org/jeecg/modules/quartz/job/AddOrderJob.java

@@ -240,7 +240,7 @@ public class AddOrderJob implements Job,ApplicationContextAware {
                                 "left join UFDATA_101_2021.dbo.PO_Podetails popos901 on popos901.id=hdk.PreDid  " +
                                 "left join UFDATA_101_2021.dbo.SO_SODetails_extradefine sosose901 on sosose901.iSOsID=popos901.iorderdid " +
                                 "left join UFDATA_102_2021.dbo.Inventory inv902 on inv902.cInvCode=sosos902.cInvCode  " +
-                                "where soso902.cCusCode='T020001' and left(inv902.cInvCCode,2)='19'  " +
+                                "where soso902.cCusCode='T020001' and left(inv902.cInvCCode,2)='19' and soso902.ddate>='2025-01-01 00:00:00' " +
                                 "and soso902.cSOCode='"+sy.getOrderNumber()+"' and sosose901.cbdefine2 is not null and sosos902.AutoID =" + sy2.getId();
                         List<Map<String, Object>> ymoneyList = new ArrayList<>();