Merge remote-tracking branch 'origin/master'

This commit is contained in:
lihao 2024-12-25 14:44:13 +08:00
commit d90f67993f
3 changed files with 24 additions and 26 deletions

View File

@ -61,19 +61,13 @@ public class QueryPickmFor4455Action implements ICommonAction {
return null; return null;
} }
// VO与UI数据格式转换 卡片列表BillGridOperator // VO与UI数据格式转换 卡片列表BillGridOperator
BillGrid[] grids = new BillGrid[0]; BillGridOperator operator = new BillGridOperator(info.getTempletid(), info.getPageCode());
try { BillGrid[] grids = operator.toBillGrids(vos);
BillGridOperator operator = new BillGridOperator(info.getTempletid(), info.getPageCode()); if (grids != null) {
grids = operator.toBillGrids(vos); StoreReqScaleUtil util = new StoreReqScaleUtil();
if (grids != null) { for (BillGrid billGrid : grids) {
StoreReqScaleUtil util = new StoreReqScaleUtil(); util.processGrid(billGrid, false);
for (BillGrid billGrid : grids) {
util.processGrid(billGrid, false);
}
} }
} catch (Exception e) {
e.printStackTrace();
throw new RuntimeException(e);
} }
return grids; return grids;
} }

View File

@ -44,7 +44,7 @@ public abstract class Abstract422XRefQueryBP1 {
public PickmReqAppVO[] queryPickmReqVOs() { public PickmReqAppVO[] queryPickmReqVOs() {
SCMDataAccessUtils utils = new SCMDataAccessUtils(10000); SCMDataAccessUtils utils = new SCMDataAccessUtils(10000);
this.psor.appendCurrentGroup(); // this.psor.appendCurrentGroup();
StringBuilder sql = this.makeGetPKSql(); StringBuilder sql = this.makeGetPKSql();
String[][] pks = utils.query(sql.toString()).toTwoDimensionStringArray(); String[][] pks = utils.query(sql.toString()).toTwoDimensionStringArray();
if (null != pks && pks.length != 0) { if (null != pks && pks.length != 0) {

View File

@ -7,10 +7,10 @@ package nc.bs.pu.m422x.query;
import nc.bs.pu.m422x.plugin.StoreReqAppPluginPoint; import nc.bs.pu.m422x.plugin.StoreReqAppPluginPoint;
import nc.bs.pu.m422x.query.rule.CanOutreqNumCalcRule; import nc.bs.pu.m422x.query.rule.CanOutreqNumCalcRule;
import nc.impl.pubapp.pattern.rule.IFilterRule;
import nc.impl.pubapp.pattern.rule.processer.AroundProcesser; import nc.impl.pubapp.pattern.rule.processer.AroundProcesser;
import nc.ui.querytemplate.querytree.IQueryScheme; import nc.ui.querytemplate.querytree.IQueryScheme;
import nc.vo.pu.m422x.entity.PickmReqAppVO; import nc.vo.pu.m422x.entity.StoreReqAppVO;
import nccloud.baseapp.core.log.NCCForUAPLogger;
import nccloud.commons.lang.ArrayUtils; import nccloud.commons.lang.ArrayUtils;
public class QueryFor4455BP1 extends Abstract422XRefQueryBP1 { public class QueryFor4455BP1 extends Abstract422XRefQueryBP1 {
@ -18,28 +18,32 @@ public class QueryFor4455BP1 extends Abstract422XRefQueryBP1 {
super(queryScheme); super(queryScheme);
} }
private void addRule(AroundProcesser<PickmReqAppVO> processer) { private void addRule(AroundProcesser<StoreReqAppVO> processer) {
processer.addAfterRule((IFilterRule<PickmReqAppVO>) new CanOutreqNumCalcRule()); processer.addAfterRule(new CanOutreqNumCalcRule());
} }
public StringBuilder makeGetPKSql() { public StringBuilder makeGetPKSql() {
StringBuilder wholeSql = new StringBuilder(); StringBuilder wholeSql = new StringBuilder();
wholeSql.append(" SELECT DISTINCT a.cpickmid,b.cpickm_bid" + wholeSql.append(" SELECT DISTINCT a.cpickmid,b.cpickm_bid");
" FROM" + wholeSql.append(" FROM");
" mm_pickm a" + wholeSql.append(" (");
" INNER JOIN mm_pickm_b b ON b.cpickmid = a.cpickmid" + wholeSql.append(" SELECT cpickmid");
" WHERE" + wholeSql.append(this.psor.getFinalFromWhere());
" a.dr = 0 AND b.dr = 0 and a.APPROVERTIME > '2024-10-01'"); wholeSql.append(" AND APPROVERTIME > '2024-10-01'");
NCCForUAPLogger.debug("finalFromWhere = " + this.psor.getFinalFromWhere());
wholeSql.append(" ) a");
wholeSql.append(" INNER JOIN mm_pickm_b b ON b.cpickmid = a.cpickmid AND b.dr = 0");
NCCForUAPLogger.debug("wholeSql = " + wholeSql);
return wholeSql; return wholeSql;
} }
protected PickmReqAppVO[] processQueryResult(PickmReqAppVO[] queryResult) { protected StoreReqAppVO[] processQueryResult(StoreReqAppVO[] queryResult) {
if (ArrayUtils.isEmpty(queryResult)) { if (ArrayUtils.isEmpty(queryResult)) {
return null; return null;
} else { } else {
AroundProcesser<PickmReqAppVO> processer = new AroundProcesser(StoreReqAppPluginPoint.PULL_4455); AroundProcesser<StoreReqAppVO> processer = new AroundProcesser(StoreReqAppPluginPoint.PULL_4455);
this.addRule(processer); this.addRule(processer);
return (PickmReqAppVO[]) processer.after(queryResult); return (StoreReqAppVO[]) processer.after(queryResult);
} }
} }
} }