|
|
@@ -7,6 +7,8 @@ import com.chinaitop.depot.tempWarn.model.*;
|
|
7
|
7
|
import com.chinaitop.depot.tempWarn.param.TTempWetAlarmPageParam;
|
|
8
|
8
|
import com.chinaitop.depot.tempWarn.param.TempWetCheckRecordPageParam;
|
|
9
|
9
|
import com.chinaitop.depot.tempWarn.service.TTempWetAlarmService;
|
|
|
10
|
+import com.chinaitop.depot.utils.ParameterUtil;
|
|
|
11
|
+
|
|
10
|
12
|
import lombok.extern.slf4j.Slf4j;
|
|
11
|
13
|
import org.springframework.stereotype.Service;
|
|
12
|
14
|
import org.springframework.util.CollectionUtils;
|
|
|
@@ -38,14 +40,28 @@ public class TTempWetAlarmServiceImpl implements TTempWetAlarmService {
|
|
38
|
40
|
|
|
39
|
41
|
@Override
|
|
40
|
42
|
public List<TTempWetAlarm> getPageList(TTempWetAlarmPageParam pageParam) {
|
|
41
|
|
- TTempWetAlarmExample example = new TTempWetAlarmExample();
|
|
42
|
|
- TTempWetAlarmExample.Criteria criteria = example.createCriteria();
|
|
43
|
|
- criteria.andOrgIdEqualTo(pageParam.getOrgId());
|
|
44
|
|
- criteria.andThresholdTypeEqualTo(pageParam.getThresholdType());
|
|
45
|
|
- if (!ObjectUtils.isEmpty(pageParam.getHouseId())) {
|
|
46
|
|
- criteria.andHouseIdEqualTo(pageParam.getHouseId());
|
|
|
43
|
+ /*TTempWetAlarm t = new TTempWetAlarm();
|
|
|
44
|
+ t.setOrgId(pageParam.getOrgId());
|
|
|
45
|
+ t.setThresholdType(pageParam.getThresholdType());
|
|
|
46
|
+ if (!ObjectUtils.isEmpty(pageParam.getHouseId())) {//仓号
|
|
|
47
|
+ t.setHouseId(pageParam.getHouseId());
|
|
|
48
|
+ }
|
|
|
49
|
+ if (!ObjectUtils.isEmpty(pageParam.getPz())) {//粮食品种
|
|
|
50
|
+ t.setPz(pageParam.getPz());
|
|
|
51
|
+ }
|
|
|
52
|
+ if (!ObjectUtils.isEmpty(pageParam.getHwxz())) {//粮食性质
|
|
|
53
|
+ t.setHwxz(pageParam.getHwxz());
|
|
|
54
|
+ }
|
|
|
55
|
+ if (!ObjectUtils.isEmpty(pageParam.getAlarmTime())) {//预警日期
|
|
|
56
|
+ t.setAlarmTime(ParameterUtil.string2date(pageParam.getAlarmTime()));
|
|
|
57
|
+ }
|
|
|
58
|
+ if (!ObjectUtils.isEmpty(pageParam.getClordbzt())) {//(处理/督办)状态
|
|
|
59
|
+ t.setClordbzt(pageParam.getClordbzt());
|
|
47
|
60
|
}
|
|
48
|
|
- return tempWetAlarmMapper.selectByExample(example);
|
|
|
61
|
+ if (!ObjectUtils.isEmpty(pageParam.getYjzt())) {//预警状态
|
|
|
62
|
+ t.setYjzt(pageParam.getYjzt());
|
|
|
63
|
+ }*/
|
|
|
64
|
+ return tempWetAlarmMapper.selectList(pageParam);
|
|
49
|
65
|
}
|
|
50
|
66
|
|
|
51
|
67
|
@Override
|
|
|
@@ -86,7 +102,8 @@ public class TTempWetAlarmServiceImpl implements TTempWetAlarmService {
|
|
86
|
102
|
t.setThresholdValue(currentMonthTemp);
|
|
87
|
103
|
t.setAlarmTime(new Date());
|
|
88
|
104
|
t.setDurationDays(1);
|
|
89
|
|
- t.setApprovalStatus("100201"); // 审批流程初始化
|
|
|
105
|
+ t.setProcessStatus("100201");
|
|
|
106
|
+ t.setApprovalStatus("900000"); // 审批流程初始化
|
|
90
|
107
|
tempWetAlarmMapper.insertSelective(t);
|
|
91
|
108
|
} else {
|
|
92
|
109
|
Integer durationDays = alarm.getDurationDays();
|
|
|
@@ -119,7 +136,8 @@ public class TTempWetAlarmServiceImpl implements TTempWetAlarmService {
|
|
119
|
136
|
t.setThresholdValue(currentMonthWet);
|
|
120
|
137
|
t.setAlarmTime(new Date());
|
|
121
|
138
|
t.setDurationDays(1);
|
|
122
|
|
- t.setApprovalStatus("100201"); // 审批流程初始化
|
|
|
139
|
+ t.setProcessStatus("100201");
|
|
|
140
|
+ t.setApprovalStatus("900000"); // 审批流程初始化
|
|
123
|
141
|
tempWetAlarmMapper.insertSelective(t);
|
|
124
|
142
|
} else {
|
|
125
|
143
|
Integer durationDays = alarm.getDurationDays();
|