修改接口get方法
This commit is contained in:
parent
1cb690574f
commit
c8edb8a93f
|
|
@ -119,15 +119,15 @@ public class CgdInfoEntity implements Serializable {
|
|||
|
||||
|
||||
// 格式化getter方法
|
||||
public String getProcurementPrice() {
|
||||
return procurementPrice != null ?
|
||||
procurementPrice.setScale(2, BigDecimal.ROUND_HALF_UP).toString() : null;
|
||||
}
|
||||
|
||||
public String getArrivalPrice() {
|
||||
return arrivalPrice != null ?
|
||||
arrivalPrice.setScale(2, BigDecimal.ROUND_HALF_UP).toString() : null;
|
||||
}
|
||||
// public String getProcurementPrice() {
|
||||
// return procurementPrice != null ?
|
||||
// procurementPrice.setScale(2, BigDecimal.ROUND_HALF_UP).toString() : null;
|
||||
// }
|
||||
//
|
||||
// public String getArrivalPrice() {
|
||||
// return arrivalPrice != null ?
|
||||
// arrivalPrice.setScale(2, BigDecimal.ROUND_HALF_UP).toString() : null;
|
||||
// }
|
||||
|
||||
public String getTotalPrice() {
|
||||
return totalPrice != null ?
|
||||
|
|
|
|||
|
|
@ -971,7 +971,9 @@ public class NuInvoicingCgdMainServiceImpl extends ServiceImpl<NuInvoicingCgdMai
|
|||
@Override
|
||||
public String editPrice(CgdInfoEntity cgdInfoEntityDto) {
|
||||
NuInvoicingCgdInfo cgdInfo = new NuInvoicingCgdInfo();
|
||||
BeanUtils.copyProperties(cgdInfoEntityDto,cgdInfo);
|
||||
cgdInfo.setId(cgdInfoEntityDto.getId());
|
||||
cgdInfo.setArrivalPrice(cgdInfoEntityDto.getArrivalPrice());
|
||||
// BeanUtils.copyProperties(cgdInfoEntityDto,cgdInfo);
|
||||
cgdInfoMapper.updateById(cgdInfo);
|
||||
return "1";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue