增加流程发布时校验顺序号问题

This commit is contained in:
SUNJIABIN
2023-06-06 11:33:36 +08:00
parent 9271f5aa81
commit b7f7e952f2
8 changed files with 27 additions and 2 deletions
@@ -14,4 +14,6 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
public interface SarBussStandSnDao extends BaseMapper<SarBussStandSn> {
String selectMaxStandnSn();
String selectMaxStandSn(String standSort);
}
@@ -19,4 +19,5 @@ public interface ISarBussStandSnService extends IService<SarBussStandSn> {
String selectMaxStandnSn();
String selectMaxStandSn(String standSort);
}
@@ -65,4 +65,9 @@ public class SarBussStandSnServiceImpl extends ServiceImpl<SarBussStandSnDao, Sa
public String selectMaxStandnSn() {
return baseMapper.selectMaxStandnSn();
}
@Override
public String selectMaxStandSn(String standSort) {
return baseMapper.selectMaxStandSn(standSort);
}
}
@@ -136,5 +136,7 @@ public interface SarBussionessStandDao extends BaseMapper<SarBussionessStand> {
@Select("select * from sar_bussioness_stand where TEXT_STATUS_BUSS is not null")
List<SarBussionessStand> selectAllStandStatus();
String selectMaxStandSn(String standSort);
}
@@ -70,5 +70,7 @@ public interface ISarBussionessStandService extends IService<SarBussionessStand>
ResponseMessage cleaningDataReview();
ResponseMessage repeal(String id, String type);
String selectMaxStandSn(String standSort);
}
@@ -223,8 +223,10 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
QueryWrapper queryWrapper = new QueryWrapper();
queryWrapper.eq("REPLACE(STAND_SORT,' ','')",standSort.replace(" ",""));
int count = iSarBussStandSnService.count(queryWrapper);
String MaxSn = iSarBussStandSnService.selectMaxStandSn(standSort);
String standMaxSn = iSarBussionessStandService.selectMaxStandSn(standSort);
// 1 先验证 当前企标类别 是否存在顺序号
if(count > 0){
if(count > 0 && MaxSn.equals(standMaxSn)){
QueryWrapper qw = new QueryWrapper();
qw.eq("REPLACE(STAND_SORT,' ','')",standSort.replace(" ",""));
qw.eq("TASK_ID",taskId);
@@ -261,7 +263,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
}else {
// 2 获取企标库中 当前类别 最新 顺序号 前提必须顺序号为正规数据
bussionessStand = sarBussionessStandEODao.getStandInfoByReviseStatus(reviseStatus,standSort);
String sn = "1";
String sn = "001";
if(ObjectUtils.isNotEmpty(bussionessStand)){
sn = bussionessStand.getNewStandSn();
}
@@ -4674,6 +4676,11 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
return Result.success();
}
@Override
public String selectMaxStandSn(String standSort) {
return baseMapper.selectMaxStandSn(standSort);
}
public String updateInfo(List<String> asList,String standId,String attfId) {
//重复的集合
List<AttFileEO> chongfu = new ArrayList<>();