|
@@ -125,13 +125,13 @@ public class KshzsServiceImpl implements KshzsService{
|
125
|
125
|
List<Map<String, Object>> objListMap = kshzsMapper.queryLspzList(paramVo);
|
126
|
126
|
if(objListMap!= null && objListMap.size()>0){
|
127
|
127
|
for (int i = 0; i < objListMap.size(); i++) {
|
128
|
|
- if("小麦".equals(objListMap.get(i).get("name").toString())){
|
|
128
|
+ if("1110000".equals(objListMap.get(i).get("name").toString())){
|
129
|
129
|
objVo.setXmkc(BigDecimal.valueOf(Double.parseDouble(objListMap.get(i).get("value").toString())));
|
130
|
|
- }else if("玉米".equals(objListMap.get(i).get("name").toString())){
|
|
130
|
+ }else if("1120000".equals(objListMap.get(i).get("name").toString())){
|
131
|
131
|
objVo.setYmkc(BigDecimal.valueOf(Double.parseDouble(objListMap.get(i).get("value").toString())));
|
132
|
|
- }else if("大豆".equals(objListMap.get(i).get("name").toString())){
|
|
132
|
+ }else if("1130000".equals(objListMap.get(i).get("name").toString())){
|
133
|
133
|
objVo.setDdkc(BigDecimal.valueOf(Double.parseDouble(objListMap.get(i).get("value").toString())));
|
134
|
|
- }else if("稻谷".equals(objListMap.get(i).get("name").toString())){
|
|
134
|
+ }else if("1411001".equals(objListMap.get(i).get("name").toString())){
|
135
|
135
|
objVo.setDgkc(BigDecimal.valueOf(Double.parseDouble(objListMap.get(i).get("value").toString())));
|
136
|
136
|
}
|
137
|
137
|
}
|
|
@@ -190,9 +190,16 @@ public class KshzsServiceImpl implements KshzsService{
|
190
|
190
|
|
191
|
191
|
@Override
|
192
|
192
|
public hwkVo selectHwkInfo(paramVo paramVo) {
|
|
193
|
+ List<DictDataDO> pzlist = dictDataMapper.selectList(DictDataDO::getDictType, "system_lspz");
|
193
|
194
|
hwkVo hwkVo = kshzsMapper.selectHwkInfo(paramVo);
|
194
|
|
- if (hwkVo!= null && hwkVo.getLscd() != null) {
|
195
|
|
-
|
|
195
|
+ if (hwkVo!= null) {
|
|
196
|
+ if (hwkVo.getLspzmc() != null){
|
|
197
|
+ for (DictDataDO dictDataDO : pzlist) {
|
|
198
|
+ if (hwkVo.getLspzmc().equals(dictDataDO.getValue())){
|
|
199
|
+ hwkVo.setLspzmc(dictDataDO.getLabel());
|
|
200
|
+ }
|
|
201
|
+ }
|
|
202
|
+ }
|
196
|
203
|
}
|
197
|
204
|
return hwkVo;
|
198
|
205
|
}
|
|
@@ -232,6 +239,7 @@ public class KshzsServiceImpl implements KshzsService{
|
232
|
239
|
public PageResult<zjxxVo> selectZjList(pageParamVo paramVo) {
|
233
|
240
|
// 获取数据字典
|
234
|
241
|
List<DictDataDO> list = dictDataMapper.selectList(DictDataDO::getDictType, "system_lsdj");
|
|
242
|
+ List<DictDataDO> pzlist = dictDataMapper.selectList(DictDataDO::getDictType, "system_lspz");
|
235
|
243
|
ZjxxPageReqVO reqVO = new ZjxxPageReqVO();
|
236
|
244
|
reqVO.setPageNo(paramVo.getPageNo());
|
237
|
245
|
reqVO.setPageSize(paramVo.getPageSize());
|
|
@@ -245,13 +253,31 @@ public class KshzsServiceImpl implements KshzsService{
|
245
|
253
|
}
|
246
|
254
|
}
|
247
|
255
|
}
|
|
256
|
+ if (zjxxDO.getLspzmc() != null){
|
|
257
|
+ for (DictDataDO dictDataDO : pzlist) {
|
|
258
|
+ if (zjxxDO.getLspzmc().equals(dictDataDO.getValue())){
|
|
259
|
+ zjxxDO.setLspzmc(dictDataDO.getLabel());
|
|
260
|
+ }
|
|
261
|
+ }
|
|
262
|
+ }
|
248
|
263
|
}
|
249
|
264
|
return BeanUtils.toBean(zjxxDOPageResult, zjxxVo.class);
|
250
|
265
|
}
|
251
|
266
|
|
252
|
267
|
@Override
|
253
|
268
|
public List<lqjcVo> selectLqjcList(paramVo paramVo) {
|
254
|
|
- return kshzsMapper.selectLqjcList(paramVo);
|
|
269
|
+ List<DictDataDO> pzlist = dictDataMapper.selectList(DictDataDO::getDictType, "system_lspz");
|
|
270
|
+ List<lqjcVo> dataObj =kshzsMapper.selectLqjcList(paramVo);
|
|
271
|
+ for (lqjcVo lqjcVo : dataObj){
|
|
272
|
+ if (lqjcVo.getLspzmc() != null){
|
|
273
|
+ for (DictDataDO dictDataDO : pzlist) {
|
|
274
|
+ if (lqjcVo.getLspzmc().equals(dictDataDO.getValue())){
|
|
275
|
+ lqjcVo.setLspzmc(dictDataDO.getLabel());
|
|
276
|
+ }
|
|
277
|
+ }
|
|
278
|
+ }
|
|
279
|
+ }
|
|
280
|
+ return dataObj;
|
255
|
281
|
}
|
256
|
282
|
|
257
|
283
|
@Override
|