This commit is contained in:
2026-08-27 11:27:08 +08:00
parent fcce6edd8f
commit f85e5baa8d
7 changed files with 14 additions and 12 deletions
+11 -9
View File
@@ -9472,15 +9472,17 @@ namespace GThinking.N_XLXSBJ
SQL.Add(" left join XLDTJMZHB on XLDTJMZHB_DTJMZHID=XLGGB_DTJMZHID ");
SQL.Add(" where XLXSBJDMX_BJDID=:pBJDID ");
SQL.Add(" and exists(select 1 from V_XSBJJSJGB where V_XSBJJSJGB_ID=:pID and V_XSBJJSJGB_BJDID=:pBJDID and V_XSBJJSJGB_WGCPBZ<>'Y' and V_XSBJJSJGB_JGFBZ<>'Y' and V_XSBJJSJGB_BJDID=XLXSBJDMX_BJDID and V_XSBJJSJGB_BJDXH=XLXSBJDMX_XH ) ");
SQL.Add(" and XLXSBJDMX_JLDW in ('Ã×','M') ");
SQL.Add(" and ( ");
SQL.Add(" ( XLXSBJDMX_BJSL<=1000 and XLDTJMZHB_DTJM1<=35 and XLDTJMZHB_DTJM1>=10 ) or ");
SQL.Add(" ( XLXSBJDMX_BJSL<=200 and XLDTJMZHB_DTJM1<=120 and XLDTJMZHB_DTJM1>=50 ) or ");
SQL.Add(" ( XLXSBJDMX_BJSL<=150 and XLDTJMZHB_DTJM1<=630 and XLDTJMZHB_DTJM1>=150 ) or ");
SQL.Add(" ( XLDTJMZHB_DTJM1 < 10 ) or ");
SQL.Add(" ( XLDTJMZHB_DTJM1> 35 and XLDTJMZHB_DTJM1<50 ) or ");
SQL.Add(" ( XLDTJMZHB_DTJM1> 120 and XLDTJMZHB_DTJM1< 150 ) or XLDTJMZHB_DTJM1> 630 ");
SQL.Add(" ) ");
SQL.Add(" and ( ");
SQL.Add(" XLXSBJDMX_JLDW not in ('Ã×','M') ");
SQL.Add(" or ( ");
SQL.Add(" XLXSBJDMX_JLDW in ('Ã×','M') ");
SQL.Add(" and not ( ");
SQL.Add(" ( XLXSBJDMX_BJSL > 1000 and XLDTJMZHB_DTJM1 between 10 and 35 ) ");
SQL.Add(" or ( XLXSBJDMX_BJSL > 200 and XLDTJMZHB_DTJM1 between 50 and 120 ) ");
SQL.Add(" or ( XLXSBJDMX_BJSL > 150 and XLDTJMZHB_DTJM1 between 150 and 630 ) ");
SQL.Add(" ) ");
SQL.Add(" ) ");
SQL.Add(" ) ");
SQL.Add(" and " + CMISproDataBase.GetWhereEqual("XLXHB_DTCLID", sLcpList));
SQL.Add(" )sor on(XLXSBJDMX_BJDID=XLXSBJDJJYZ_BJDID and XLXSBJDMX_XH=XLXSBJDJJYZ_XH) ");
SQL.Add(" when matched then update set XLXSBJDJJYZ_YZZ" + i.ToString().PadLeft(2, '0') + "= 0 ");