Merge remote-tracking branch 'origin/dev_20230216' into dev_20230216

This commit is contained in:
SUNJIABIN
2023-05-12 17:35:51 +08:00
5 changed files with 24 additions and 4 deletions
@@ -24,10 +24,10 @@ public class exportExcel {
@Excel(name = "评审责任人" , orderNum = "5", width = 20.0)
private String resPersonName;
@Excel(name = "工作组组长" , orderNum = "6", width = 20.0)
@Excel(name = "技术委员会评审负责人" , orderNum = "6", width = 20.0)
private String wgLeaderName;
@Excel(name = "计划初稿完成日期" , orderNum = "7", width = 20.0)
@Excel(name = "计划标准初稿完成日期" , orderNum = "7", width = 20.0)
private String draftTime;
@Excel(name = "计划标准发布时间", orderNum = "8", width = 18.0)
@@ -75,7 +75,7 @@ public class StateSync {
List<SarBussionessStand> standList = new ArrayList<>();
if(!standLists.isEmpty()) {
for (SarBussionessStand data : standLists) {
if (!data.getValidFlag().equals("1") || data.getValidFlag() != 1) {
if (data.getValidFlag() == 0) {
standList.add(data);
}
}
@@ -292,6 +292,11 @@ public class SarStandardComplianceAssessResultController {
iPage.setTotal(datasCount);
iPage.setRecords(standards);
while (iPage.getRecords().remove(null)) ;
if(StringUtils.isNotBlank(eo.getOrder())){
if(eo.getOrder().equals("desc")){
iPage.getRecords().sort((m1,m2)-> m2.getSpecificItem().compareTo(m1.getSpecificItem()));
}
}
return Result.success(iPage);
} else {
IPage<SarInterpretationForeignStandard> iPage = new Page<>(eo.getCurrent(), eo.getSize());
@@ -307,7 +312,11 @@ public class SarStandardComplianceAssessResultController {
if (eo.getStandId() != null) queryWrapper.eq("STAND_ID", eo.getStandId());
IPage<SarInterpretationForeignStandard> page = iSarInterpretationForeignStandardService.page(iPage, queryWrapper);
while (page.getRecords().remove(null)) ;
if(StringUtils.isNotBlank(eo.getOrder())){
if(eo.getOrder().equals("desc")){
iPage.getRecords().sort((m1,m2)-> m2.getSpecificItem().compareTo(m1.getSpecificItem()));
}
}
return Result.success(page);
}
}
@@ -51,4 +51,7 @@ public class InterpretationEO {
@ApiModelProperty("页内数量")
private Integer size=20;
@ApiModelProperty("排序")
private String order;
}
@@ -1176,6 +1176,14 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl<SarStandardsInfoDao
sarStandMenuEODao.insert(sarStandMenuEO);
}
}
if (StringUtils.isNotEmpty(sarStandardsInfoEO.getMenuId())) {
SarStandMenu sarStandMenuEO = new SarStandMenu();
sarStandMenuEO.setStandId(sarStandardsInfoEO.getId());
sarStandMenuEO.setMenuId(sarStandardsInfoEO.getMenuId());
sarStandMenuEO.setValidFlag(ValueStateEnum.VALUE_TRUE.getValue());
sarStandMenuEO.setId(UUIDUtils.randomUUID20());
sarStandMenuEODao.insert(sarStandMenuEO);
}
// 根据其他字段,生成标准状态
updateStandState(sarStandardsInfoEO, null);
int insertResult = dao.insertSelective(sarStandardsInfoEO);