|
@@ -55,6 +55,8 @@ import org.springframework.transaction.annotation.Transactional;
|
55
|
55
|
import org.springframework.validation.annotation.Validated;
|
56
|
56
|
|
57
|
57
|
import javax.annotation.Resource;
|
|
58
|
+import java.math.BigDecimal;
|
|
59
|
+import java.math.RoundingMode;
|
58
|
60
|
import java.util.ArrayList;
|
59
|
61
|
import java.util.Arrays;
|
60
|
62
|
import java.util.List;
|
|
@@ -272,6 +274,12 @@ public class DwxxServiceImpl implements DwxxService {
|
272
|
274
|
} else if (YXZT.SELECTED.getCode().equals(pageReqVO.getYxcf()) || YXZT.OPTION.getCode().equals(pageReqVO.getYxcf())) {
|
273
|
275
|
List<CaxxDO> caxxDOS = caxxMapper.selectListByKqId(pageReqVO.getKqId());
|
274
|
276
|
if (!ObjectUtils.isEmpty(caxxDOS)) {
|
|
277
|
+ caxxDOS.stream().forEach(s->{
|
|
278
|
+ if (s.getSjcr()!=null) {
|
|
279
|
+ BigDecimal truncatedNumber = s.getSjcr().setScale(0, RoundingMode.DOWN);
|
|
280
|
+ s.setSjcr(truncatedNumber);
|
|
281
|
+ }
|
|
282
|
+ });
|
275
|
283
|
List<StoreRespVO> selectedStoreSForNation = BeanUtils.toBean(caxxDOS, StoreRespVO.class);
|
276
|
284
|
return selectedStoreSForNation;
|
277
|
285
|
}
|
|
@@ -283,7 +291,7 @@ public class DwxxServiceImpl implements DwxxService {
|
283
|
291
|
return storeRespVOS;
|
284
|
292
|
} else {
|
285
|
293
|
//国家查看省已选仓房列表
|
286
|
|
- List<StoreRespVO> storeListForProvince = provinceMapper.getStoreListForProvince(pageReqVO.getKqId(), 0);
|
|
294
|
+ List<StoreRespVO> storeListForProvince = provinceMapper.getStoreListForProvinceOnly(pageReqVO.getKqId(), 0);
|
287
|
295
|
return storeListForProvince;
|
288
|
296
|
}
|
289
|
297
|
}
|
|
@@ -302,7 +310,8 @@ public class DwxxServiceImpl implements DwxxService {
|
302
|
310
|
throw exception(ERROR, "当前银行用户不存在银行信息");
|
303
|
311
|
}
|
304
|
312
|
if (YXZT.NOT_SELECTED.getCode().equals(pageReqVO.getYxcf())) {
|
305
|
|
- List<StoreRespVO> storeListForBank = provinceMapper.getStoreListForProvince(pageReqVO.getKqId(), 1);
|
|
313
|
+ pageReqVO.setType(1);
|
|
314
|
+ List<StoreRespVO> storeListForBank = provinceMapper.getStoreListForProvince(pageReqVO);
|
306
|
315
|
List<StoreRespVO> storeListSelelct = bankMapper.getStoreListForBank(pageReqVO.getKqId(),bankType);
|
307
|
316
|
if (!ObjectUtils.isEmpty(storeListForBank)) {
|
308
|
317
|
if (!ObjectUtils.isEmpty(storeListSelelct)) {
|
|
@@ -326,7 +335,7 @@ public class DwxxServiceImpl implements DwxxService {
|
326
|
335
|
} else {// 省已选
|
327
|
336
|
if (YXZT.NOT_SELECTED.getCode().equals(pageReqVO.getYxcf())) {
|
328
|
337
|
List<CaxxDO> caxxDOS = caxxMapper.selectList(pageReqVO);
|
329
|
|
- List<StoreRespVO> storeListSelect = provinceMapper.getStoreListForProvince(pageReqVO.getKqId(), 0);
|
|
338
|
+ List<StoreRespVO> storeListSelect = provinceMapper.getStoreListForProvinceOnly(pageReqVO.getKqId(), 0);
|
330
|
339
|
List<StoreRespVO> storeListForProvice = new ArrayList<>();
|
331
|
340
|
if (!ObjectUtils.isEmpty(caxxDOS)) {
|
332
|
341
|
if (!ObjectUtils.isEmpty(storeListSelect)) {
|
|
@@ -336,12 +345,18 @@ public class DwxxServiceImpl implements DwxxService {
|
336
|
345
|
}
|
337
|
346
|
}
|
338
|
347
|
if (!ObjectUtils.isEmpty(caxxDOS)) {
|
|
348
|
+ caxxDOS.stream().forEach(s->{
|
|
349
|
+ if (s.getSjcr()!=null) {
|
|
350
|
+ BigDecimal truncatedNumber = s.getSjcr().setScale(0, RoundingMode.DOWN);
|
|
351
|
+ s.setSjcr(truncatedNumber);
|
|
352
|
+ }
|
|
353
|
+ });
|
339
|
354
|
storeListForProvice = BeanUtils.toBean(caxxDOS, StoreRespVO.class);
|
340
|
355
|
}
|
341
|
356
|
return storeListForProvice;
|
342
|
357
|
}
|
343
|
358
|
} else if (YXZT.SELECTED.getCode().equals(pageReqVO.getYxcf()) || YXZT.OPTION.getCode().equals(pageReqVO.getYxcf())) {
|
344
|
|
- List<StoreRespVO> storeListForProvince = provinceMapper.getStoreListForProvince(pageReqVO.getKqId(), 0);
|
|
359
|
+ List<StoreRespVO> storeListForProvince = provinceMapper.getStoreListForProvinceOnly(pageReqVO.getKqId(), 0);
|
345
|
360
|
return storeListForProvince;
|
346
|
361
|
} else if (YXZT.IDENTIFY.getCode().equals(pageReqVO.getYxcf())) {
|
347
|
362
|
List<StoreRespVO> storeRespVOS = caxxMapper.selectListForIdentify(pageReqVO.getKqId(), pageReqVO.getYhmc());
|