|
@@ -1027,7 +1027,7 @@ public class SubInfoServiceImpl implements SubInfoService {
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public Page pageQueryReportListSql(Page page, LoginUserVO loginUserVO, String subName, String unitId, String kind, String status, String statusSp,
|
|
public Page pageQueryReportListSql(Page page, LoginUserVO loginUserVO, String subName, String unitId, String kind, String status, String statusSp,
|
|
- String propKind, String indusKind, Date beginDate, Date endDate, List<String> subInfoIds) {
|
|
|
|
|
|
+ String propKind, String indusKind, Date beginDate, Date endDate) {
|
|
|
|
|
|
StringBuffer sql = new StringBuffer();
|
|
StringBuffer sql = new StringBuffer();
|
|
sql.append(" select a.id,a.status ,a.sub_name subName,a.amt_total amtTotal,a.begin_date beginDate,a.end_date endDate,ju.title unitName,ts.title subjectName, ts1.title indusKindName ");
|
|
sql.append(" select a.id,a.status ,a.sub_name subName,a.amt_total amtTotal,a.begin_date beginDate,a.end_date endDate,ju.title unitName,ts.title subjectName, ts1.title indusKindName ");
|
|
@@ -1041,17 +1041,6 @@ public class SubInfoServiceImpl implements SubInfoService {
|
|
|
|
|
|
sql.append(" where a.logic_delete_flag =0 ");
|
|
sql.append(" where a.logic_delete_flag =0 ");
|
|
|
|
|
|
- // 处理 subInfoIds 参数
|
|
|
|
- if (subInfoIds != null && !subInfoIds.isEmpty()) {
|
|
|
|
- String idListStr = subInfoIds.stream()
|
|
|
|
- .map(id -> "'" + id + "'") // 每个 ID 加单引号
|
|
|
|
- .collect(Collectors.joining(","));
|
|
|
|
- sql.append(" and a.id in (").append(idListStr).append(") ");
|
|
|
|
- }else {
|
|
|
|
- sql.append(" and a.id in ( ) ");
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
|
|
//2024-03-28客户提出admin用户需查询和储备台账一样的数据
|
|
//2024-03-28客户提出admin用户需查询和储备台账一样的数据
|
|
SecRole role = secRoleDao.findById(loginUserVO.getKind());
|
|
SecRole role = secRoleDao.findById(loginUserVO.getKind());
|