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