feat: There is no way the, #55969 #55973 企标顺序号相关逻辑

This commit is contained in:
396572590@qq.com
2022-07-03 18:02:57 +08:00
parent 4131965f6e
commit 8b70a4c80d
6 changed files with 44 additions and 7 deletions
@@ -190,11 +190,11 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
QueryWrapper wrapper = new QueryWrapper();
wrapper.select("MIN(DISTINCT CAST(STAND_SN AS decimal(9))) AS STAND_SN");
wrapper.eq("REPLACE(STAND_SORT,' ','')",standSort.replace(" ",""));
qw.isNull("TASK_ID");
qw.eq("USE_STATUS","no");
wrapper.isNull("TASK_ID");
wrapper.eq("USE_STATUS","no");
SarBussStandSn standSn = iSarBussStandSnService.getOne(wrapper);
// 1.1.2 查询 被撤回的 任务ID 被重置NULL 及 状态被重置 no 未使用 最小值 。。 "自动带入" "自动获取" 未被使用最小 顺序号
if(standSn.getId() != null) {
if(standSn != null && standSn.getId() != null) {
// 1.1.2.1 返回顺序号
bussionessStand.setNewStandSn(standSn.getStandSn());
}else {
@@ -202,7 +202,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
QueryWrapper wrapper1 = new QueryWrapper();
wrapper1.select("MAX(DISTINCT CAST(STAND_SN AS decimal(9)))+1 AS STAND_SN");
wrapper1.eq("REPLACE(STAND_SORT,' ','')",standSort.replace(" ",""));
SarBussStandSn one = iSarBussStandSnService.getOne(wrapper);
SarBussStandSn one = iSarBussStandSnService.getOne(wrapper1);
// 1.1.2.2 返回顺序号
bussionessStand.setNewStandSn(one.getStandSn());
// 1.1.2.3 获取新的顺序号 存入顺序号表中
@@ -213,7 +213,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
}else {
// 2 获取企标库中 当前类别 最新 顺序号 (前提必须顺序号为正规数据)
bussionessStand = sarBussionessStandEODao.getStandInfoByReviseStatus(reviseStatus,standSort);
saveBussStandSn(reviseStatus, standSort, bussionessStand.getStandSn(),taskId);
saveBussStandSn(reviseStatus, standSort, bussionessStand.getNewStandSn(),taskId);
}
return bussionessStand;