Commit 41b39a0f by zhu.zewen

修复专账类型

parent 31a364ed
...@@ -128,7 +128,7 @@ public class PhysicAmpouleServiceImpl extends AbstractService implements PhysicA ...@@ -128,7 +128,7 @@ public class PhysicAmpouleServiceImpl extends AbstractService implements PhysicA
// 完成 => 转账生成 // 完成 => 转账生成
BillDTO billDTO = new BillDTO(); BillDTO billDTO = new BillDTO();
BeanUtil.copyProperties(ampoule,billDTO); BeanUtil.copyProperties(ampoule,billDTO);
billDTO.setType(ampoule.getType().equals("1")?5:6); billDTO.setType(ObjectUtil.equals(ampoule.getType(), 1) ? 5 : 6);
billDTO.setDeptId(ampoule.getDeptId()); billDTO.setDeptId(ampoule.getDeptId());
billDTO.setRefId(ampoule.getId()); billDTO.setRefId(ampoule.getId());
physicBillService.createBill(billDTO); physicBillService.createBill(billDTO);
......
...@@ -201,7 +201,7 @@ public class PhysicStorageAmpouleServiceImpl extends AbstractService implements ...@@ -201,7 +201,7 @@ public class PhysicStorageAmpouleServiceImpl extends AbstractService implements
// 完成 => 转账生成 // 完成 => 转账生成
BillDTO billDTO = new BillDTO(); BillDTO billDTO = new BillDTO();
BeanUtil.copyProperties(ampoule,billDTO); BeanUtil.copyProperties(ampoule,billDTO);
billDTO.setType(ampoule.getType().equals("1") ? 5 : 7); billDTO.setType(ObjectUtil.equals(ampoule.getType(), 1) ? 5 : 7);
billDTO.setDeptId(ampoule.getAcceptDeptId()); billDTO.setDeptId(ampoule.getAcceptDeptId());
billDTO.setRefId(ampoule.getId()); billDTO.setRefId(ampoule.getId());
physicBillService.createBill(billDTO); physicBillService.createBill(billDTO);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment