|
|
@ -26,7 +26,9 @@ import com.kms.earlyStage.domain.SpecialProjectInfo; |
|
|
|
import com.kms.enterprise.domain.dto.NumDto; |
|
|
|
import com.kms.system.service.SysDeptService; |
|
|
|
import com.kms.system.service.SysXzqhService; |
|
|
|
import com.kms.warn.domain.BsSgcJsjdWarnResult; |
|
|
|
import com.kms.warn.domain.dto.FlowDto; |
|
|
|
import com.kms.warn.mapper.BsSgcJsjdWarnResultMapper; |
|
|
|
import lombok.Data; |
|
|
|
import org.apache.ibatis.reflection.wrapper.BaseWrapper; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
@ -49,6 +51,8 @@ public class BsSgcjsjdBuiProInfoService extends BaseService<BsSgcjsjdBuiProInfoM |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private BsSgcjsjdBuiProInfoMapper bsSgcjsjdBuiProInfoMapper; |
|
|
|
@Autowired |
|
|
|
private BsSgcJsjdWarnResultMapper bsSgcJsjdWarnResultMapper; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private BsSgcJsjdBuiContInfoService bsSgcJsjdBuiContInfoService; |
|
|
@ -220,8 +224,20 @@ public class BsSgcjsjdBuiProInfoService extends BaseService<BsSgcjsjdBuiProInfoM |
|
|
|
} else { |
|
|
|
list.getRecords().get(i).setProjectPhase("2"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
QueryWrapper<BsSgcJsjdWarnResult>qw=new QueryWrapper<>(); |
|
|
|
List<BsSgcJsjdWarnResult> bsSgcJsjdWarnResults = bsSgcJsjdWarnResultMapper.selectList(qw.eq("pro_no", proNo).eq("pro_code", proCode)); |
|
|
|
for (BsSgcJsjdWarnResult bs:bsSgcJsjdWarnResults){ |
|
|
|
if (ObjectUtil.isNotEmpty(bs)&&ObjectUtil.isNotEmpty(bs.getAlertType())){ |
|
|
|
if (bs.getAlertType().equals("0")){ |
|
|
|
list.getRecords().get(i).setAlertType("预警"); |
|
|
|
break; |
|
|
|
}else { |
|
|
|
list.getRecords().get(i).setAlertType("提醒"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return list; |
|
|
|
|
|
|
|
} |
|
|
|