fix 78182 企业标准-标准状态 封存状态排序错误

This commit is contained in:
liao
2023-11-07 09:21:32 +08:00
parent 73ed203721
commit d23bee3843
5 changed files with 5 additions and 5 deletions
@@ -2030,7 +2030,7 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
lawsOverseasStandardService.update(fbUpdateWrapper);
// 企标
LambdaUpdateWrapper<LawsEnterpriseStandard> qbUpdateWrapper = new LambdaUpdateWrapper<>();
qbUpdateWrapper.set(LawsEnterpriseStandard::getStandardState, 9);
qbUpdateWrapper.set(LawsEnterpriseStandard::getStandardState, "9");
qbUpdateWrapper.in(LawsEnterpriseStandard::getStandardNumber, standardNumbers);
lawsEnterpriseStandardService.update(qbUpdateWrapper);
}
@@ -154,7 +154,7 @@ public class LawsEnterpriseStandard implements Serializable {
*/
@Dict(dicCode = "es_status")
@ApiModelProperty(value = "标准状态")
private Integer standardState;
private String standardState;
/**
* 企标体系
@@ -278,7 +278,7 @@ public class LawsEnterpriseStandardServiceImpl extends ServiceImpl<LawsEnterpris
es.setReleaseDate(dto.getFbrq());
es.setImplementationDate(dto.getSsrq());
String standardState = dto.getBzzt();
es.setStandardState(standardState.equals("现行有效") ? 8 : 9);
es.setStandardState(standardState.equals("现行有效") ? "8" : "9");
// 代替被代替特殊逻辑
es.setSubstituteStandardNumber(dto.getTdbzh());
es.setReplacedByStandardNumber(dto.getBtdbzh());
@@ -95,7 +95,7 @@ public class LawsStandardCollectionServiceImpl extends ServiceImpl<LawsStandardC
LawsEnterpriseStandard standard = ILawsEnterpriseStandardService.getById(standardId);
if (standard != null){
collection.setReleaseDate(standard.getReleaseDate());
String standard_state = sysDictService.queryDictTextByKey("es_status", String.valueOf(standard.getStandardState()));
String standard_state = sysDictService.queryDictTextByKey("es_status", standard.getStandardState());
collection.setStandardState(standard_state);
}
}
@@ -64,7 +64,7 @@ public class LawsEnterpriseStandardTest {
lawsEnterpriseStandard.setEnglishName(faker.commerce().productName());
lawsEnterpriseStandard.setReleaseDate(faker.date().past(1, TimeUnit.SECONDS));
lawsEnterpriseStandard.setImplementationDate(faker.date().past(1, TimeUnit.SECONDS));
lawsEnterpriseStandard.setStandardState(faker.random().nextInt(5));
lawsEnterpriseStandard.setStandardState(faker.random().nextInt(5) + "");
return lawsEnterpriseStandard;
}