增加流程发布时校验顺序号问题
This commit is contained in:
@@ -14,4 +14,6 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|||||||
public interface SarBussStandSnDao extends BaseMapper<SarBussStandSn> {
|
public interface SarBussStandSnDao extends BaseMapper<SarBussStandSn> {
|
||||||
|
|
||||||
String selectMaxStandnSn();
|
String selectMaxStandnSn();
|
||||||
|
|
||||||
|
String selectMaxStandSn(String standSort);
|
||||||
}
|
}
|
||||||
|
|||||||
+1
@@ -19,4 +19,5 @@ public interface ISarBussStandSnService extends IService<SarBussStandSn> {
|
|||||||
|
|
||||||
String selectMaxStandnSn();
|
String selectMaxStandnSn();
|
||||||
|
|
||||||
|
String selectMaxStandSn(String standSort);
|
||||||
}
|
}
|
||||||
|
|||||||
+5
@@ -65,4 +65,9 @@ public class SarBussStandSnServiceImpl extends ServiceImpl<SarBussStandSnDao, Sa
|
|||||||
public String selectMaxStandnSn() {
|
public String selectMaxStandnSn() {
|
||||||
return baseMapper.selectMaxStandnSn();
|
return baseMapper.selectMaxStandnSn();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String selectMaxStandSn(String standSort) {
|
||||||
|
return baseMapper.selectMaxStandSn(standSort);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+2
@@ -136,5 +136,7 @@ public interface SarBussionessStandDao extends BaseMapper<SarBussionessStand> {
|
|||||||
|
|
||||||
@Select("select * from sar_bussioness_stand where TEXT_STATUS_BUSS is not null")
|
@Select("select * from sar_bussioness_stand where TEXT_STATUS_BUSS is not null")
|
||||||
List<SarBussionessStand> selectAllStandStatus();
|
List<SarBussionessStand> selectAllStandStatus();
|
||||||
|
|
||||||
|
String selectMaxStandSn(String standSort);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+2
@@ -70,5 +70,7 @@ public interface ISarBussionessStandService extends IService<SarBussionessStand>
|
|||||||
ResponseMessage cleaningDataReview();
|
ResponseMessage cleaningDataReview();
|
||||||
|
|
||||||
ResponseMessage repeal(String id, String type);
|
ResponseMessage repeal(String id, String type);
|
||||||
|
|
||||||
|
String selectMaxStandSn(String standSort);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+9
-2
@@ -223,8 +223,10 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
|
|||||||
QueryWrapper queryWrapper = new QueryWrapper();
|
QueryWrapper queryWrapper = new QueryWrapper();
|
||||||
queryWrapper.eq("REPLACE(STAND_SORT,' ','')",standSort.replace(" ",""));
|
queryWrapper.eq("REPLACE(STAND_SORT,' ','')",standSort.replace(" ",""));
|
||||||
int count = iSarBussStandSnService.count(queryWrapper);
|
int count = iSarBussStandSnService.count(queryWrapper);
|
||||||
|
String MaxSn = iSarBussStandSnService.selectMaxStandSn(standSort);
|
||||||
|
String standMaxSn = iSarBussionessStandService.selectMaxStandSn(standSort);
|
||||||
// 1 先验证 当前企标类别 是否存在顺序号
|
// 1 先验证 当前企标类别 是否存在顺序号
|
||||||
if(count > 0){
|
if(count > 0 && MaxSn.equals(standMaxSn)){
|
||||||
QueryWrapper qw = new QueryWrapper();
|
QueryWrapper qw = new QueryWrapper();
|
||||||
qw.eq("REPLACE(STAND_SORT,' ','')",standSort.replace(" ",""));
|
qw.eq("REPLACE(STAND_SORT,' ','')",standSort.replace(" ",""));
|
||||||
qw.eq("TASK_ID",taskId);
|
qw.eq("TASK_ID",taskId);
|
||||||
@@ -261,7 +263,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
|
|||||||
}else {
|
}else {
|
||||||
// 2 获取企标库中 当前类别 最新 顺序号 (前提必须顺序号为正规数据)
|
// 2 获取企标库中 当前类别 最新 顺序号 (前提必须顺序号为正规数据)
|
||||||
bussionessStand = sarBussionessStandEODao.getStandInfoByReviseStatus(reviseStatus,standSort);
|
bussionessStand = sarBussionessStandEODao.getStandInfoByReviseStatus(reviseStatus,standSort);
|
||||||
String sn = "1";
|
String sn = "001";
|
||||||
if(ObjectUtils.isNotEmpty(bussionessStand)){
|
if(ObjectUtils.isNotEmpty(bussionessStand)){
|
||||||
sn = bussionessStand.getNewStandSn();
|
sn = bussionessStand.getNewStandSn();
|
||||||
}
|
}
|
||||||
@@ -4674,6 +4676,11 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
|
|||||||
return Result.success();
|
return Result.success();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String selectMaxStandSn(String standSort) {
|
||||||
|
return baseMapper.selectMaxStandSn(standSort);
|
||||||
|
}
|
||||||
|
|
||||||
public String updateInfo(List<String> asList,String standId,String attfId) {
|
public String updateInfo(List<String> asList,String standId,String attfId) {
|
||||||
//重复的集合
|
//重复的集合
|
||||||
List<AttFileEO> chongfu = new ArrayList<>();
|
List<AttFileEO> chongfu = new ArrayList<>();
|
||||||
|
|||||||
@@ -5,5 +5,8 @@
|
|||||||
<select id="selectMaxStandnSn" resultType="java.lang.String">
|
<select id="selectMaxStandnSn" resultType="java.lang.String">
|
||||||
select Max(STAND_SN) from sar_buss_stand_sn
|
select Max(STAND_SN) from sar_buss_stand_sn
|
||||||
</select>
|
</select>
|
||||||
|
<select id="selectMaxStandSn" resultType="java.lang.String">
|
||||||
|
select Max(STAND_SN) from sar_buss_stand_sn where STAND_SORT = #{standSort} and VALID_FLAG = '0'
|
||||||
|
</select>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
+3
@@ -1257,6 +1257,9 @@
|
|||||||
resultType="com.adc.da.slrs.sarBussionessStand.entity.SarBussionessStand">
|
resultType="com.adc.da.slrs.sarBussionessStand.entity.SarBussionessStand">
|
||||||
select * from sar_bussioness_stand where stand_code = #{standCode} and VALID_FLAG = 0 limit 1
|
select * from sar_bussioness_stand where stand_code = #{standCode} and VALID_FLAG = 0 limit 1
|
||||||
</select>
|
</select>
|
||||||
|
<select id="selectMaxStandSn" resultType="java.lang.String">
|
||||||
|
select max(STAND_NUMBER) from sar_bussioness_stand where STAND_SORT =#{standSort} and VALID_FLAG = 0
|
||||||
|
</select>
|
||||||
|
|
||||||
<update id="updateByIdInfo" >
|
<update id="updateByIdInfo" >
|
||||||
update sar_buss_stand_attr_info ss set ss.FBGBUSS = #{strFile}
|
update sar_buss_stand_attr_info ss set ss.FBGBUSS = #{strFile}
|
||||||
|
|||||||
Reference in New Issue
Block a user