|
|
@@ -21,6 +21,8 @@ import org.springframework.stereotype.Service;
|
|
21
|
21
|
import org.springframework.transaction.annotation.Transactional;
|
|
22
|
22
|
|
|
23
|
23
|
import javax.annotation.Resource;
|
|
|
24
|
+import java.text.ParseException;
|
|
|
25
|
+import java.text.SimpleDateFormat;
|
|
24
|
26
|
import java.util.*;
|
|
25
|
27
|
|
|
26
|
28
|
@Service
|
|
|
@@ -43,7 +45,7 @@ public class InsectPestDetectionServiceImpl implements InsectPestDetectionServic
|
|
43
|
45
|
* @return
|
|
44
|
46
|
*/
|
|
45
|
47
|
@Override
|
|
46
|
|
- public List<Map<String, Object>> getList(String vCfCode, Integer iBeginTdh, Integer iEndTdh,String orgId) {
|
|
|
48
|
+ public List<Map<String, Object>> getList(String vCfCode, Integer iBeginTdh, Integer iEndTdh,String createTime,String orgId) {
|
|
47
|
49
|
Map<String, Object> map = new HashMap<>();
|
|
48
|
50
|
map.put("orgId", orgId);
|
|
49
|
51
|
if (StringUtils.isNotBlank(vCfCode)) {
|
|
|
@@ -61,6 +63,16 @@ public class InsectPestDetectionServiceImpl implements InsectPestDetectionServic
|
|
61
|
63
|
map.put("iBeginTdh", iEndTdh);
|
|
62
|
64
|
map.put("iEndTdh", iEndTdh);
|
|
63
|
65
|
}
|
|
|
66
|
+ if (null == createTime && null != createTime) {//归档用
|
|
|
67
|
+ SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
68
|
+ Date date = null;
|
|
|
69
|
+ try {
|
|
|
70
|
+ date = dateFormat.parse(createTime);
|
|
|
71
|
+ } catch (ParseException e) {
|
|
|
72
|
+ e.printStackTrace();
|
|
|
73
|
+ }
|
|
|
74
|
+ map.put("createTime", date);
|
|
|
75
|
+ }
|
|
64
|
76
|
return tCcdataMapper.getList(map);
|
|
65
|
77
|
}
|
|
66
|
78
|
|