|
|
@ -236,7 +236,7 @@ public class TbsCostApplyController { |
|
|
|
@PreAuthorize("hasRole('tbs:costApply:insert')") |
|
|
|
public R<?> save(@RequestBody @Valid TbsCostApplyBo param){ |
|
|
|
TbsCostApply entity = CopierUtil.copy(param,new TbsCostApply()); |
|
|
|
entity.setId(IdUtil.getSnowFlakeId()); |
|
|
|
//entity.setId(IdUtil.getSnowFlakeId());
|
|
|
|
BmsSupplier supplier = bmsSupplierService.getById(entity.getSupplierId()); |
|
|
|
entity.setCode("CA"+IdUtil.timeStampId()); |
|
|
|
entity.setSupplierCode(supplier.getCode()); |
|
|
@ -267,7 +267,7 @@ public class TbsCostApplyController { |
|
|
|
ValidateTools.valid(costApplyBo); |
|
|
|
TbsCostApply entity = CopierUtil.copy(costApplyBo,new TbsCostApply()); |
|
|
|
BmsSupplier supplier = bmsSupplierService.getById(entity.getSupplierId()); |
|
|
|
entity.setId(IdUtil.getSnowFlakeId()); |
|
|
|
//entity.setId(IdUtil.getSnowFlakeId());
|
|
|
|
entity.setCode("CA"+IdUtil.timeStampId()); |
|
|
|
entity.setTemplateId(param.getTemplateId()); |
|
|
|
entity.setSupplierCode(supplier.getCode()); |
|
|
|