gaodd лет назад: 3
Родитель
Сommit
b57cbc4658

+ 9 - 0
src/main/java/com/unissoft/ventilation/service/impl/ProcessAuditServiceImpl.java

@@ -898,6 +898,15 @@ public class ProcessAuditServiceImpl extends ServiceImpl<ProcessAuditMapper, Pro
898 898
         Page<ProcessAudit> pageInfo = processAuditMapper.selectPage(page, ew);
899 899
         if (pageInfo.getTotal() > 0) {
900 900
             for (ProcessAudit processAudit : pageInfo.getRecords()) {
901
+            	//赋值最新的状态
902
+            	QueryWrapper<ProcessAudit> ew1 = new QueryWrapper<>();
903
+            	ew1.eq("process_id", processAudit.getProcessId());
904
+            	ew1.eq("result", 1);//第一条数据
905
+            	List<ProcessAudit> list = processAuditMapper.selectList(ew1);
906
+            	if(list.size()>0){
907
+            		processAudit.setAuditState(list.get(0).getAuditState());
908
+            	}
909
+            	
901 910
                 //根据仓房id获取仓房名称
902 911
             	if(null != processAudit.getHouseId()){
903 912
             		ResponseEntity<String> forEntity = restTemplate.getForEntity(MyConstant.SYSTEM_WAREHOUSE + processAudit.getHouseId(), String.class);