最新价格查询。默认查询全部

This commit is contained in:
lihao 2025-08-01 09:30:16 +08:00
parent a88411238e
commit 3458ff6d0a
1 changed files with 3 additions and 1 deletions

View File

@ -608,7 +608,9 @@ public class PpResource extends AbstractNCCRestResource {
String orgCodes = orgCode.stream()
.map(id -> "'" + id.replace("'", "''") + "'") // 防止单引号注入
.collect(Collectors.joining(","));
if(jObject.getIntValue("months") == 0){
jObject.put("months",1000000);
}
int recentMonths = jObject.getIntValue("months"); // 新增获取最近月份数
// HYPubBO hybo = new HYPubBO();
// Object orgId= hybo.findColValue("org_purchaseorg", "pk_purchaseorg", "code in (" + orgIdsStr + ")");