|
|
@@ -489,14 +489,14 @@ public class ReceiveNoticeServiceImpl implements ReceiveNoticeService {
|
|
489
|
489
|
//String lsxzzbdh = (String) paramMap.get("lsxzzbdh");
|
|
490
|
490
|
Map<String, Object> map = feignAgileService.getDateByChHwh(Integer.valueOf(orgId), storehouseId, warehouseId);
|
|
491
|
491
|
Integer grainKind = (Integer) map.get("pz"); //品种
|
|
492
|
|
- String kcsl = (String) map.get("kcsl");//千克
|
|
|
492
|
+ Double kcsl = (Double) map.get("kcsl");//千克
|
|
493
|
493
|
Integer grainAttribute = (Integer) map.get("hwxz"); //粮油性质
|
|
494
|
494
|
businessNoticeReceive.setAuditState(0);//下发未审批
|
|
495
|
495
|
businessNoticeReceive.setIsNotice(1);//0是1否 是否是可以引用的通知单
|
|
496
|
496
|
businessNoticeReceive.setOrgId(Integer.valueOf(orgId));
|
|
497
|
497
|
businessNoticeReceive.setHouseId(storehouseId);
|
|
498
|
498
|
businessNoticeReceive.setWareHouseId(warehouseId);
|
|
499
|
|
- businessNoticeReceive.setCount(rksl.toString());
|
|
|
499
|
+ businessNoticeReceive.setCount(rksl+"");
|
|
500
|
500
|
businessNoticeReceive.setPzmc(grainVarietyName);
|
|
501
|
501
|
businessNoticeReceive.setGrainKind(grainKind);
|
|
502
|
502
|
businessNoticeReceive.setGrainAttribute(3052); //入库 转前 3052商品粮
|
|
|
@@ -506,7 +506,7 @@ public class ReceiveNoticeServiceImpl implements ReceiveNoticeService {
|
|
506
|
506
|
businessNoticeReceive.setCrktype("1"); //1入 3出
|
|
507
|
507
|
BigDecimal s = new BigDecimal(1000);
|
|
508
|
508
|
System.out.println(kcsl+"kcsl");
|
|
509
|
|
- BigDecimal kcslBig = new BigDecimal(kcsl);
|
|
|
509
|
+ BigDecimal kcslBig = new BigDecimal(String.valueOf(kcsl));
|
|
510
|
510
|
System.out.println(kcslBig+"kcslBig");
|
|
511
|
511
|
|
|
512
|
512
|
BigDecimal kcslKg = kcslBig.divide(s);
|