|
|
@@ -226,6 +226,7 @@ public class WxBillRentServiceImpl implements WxBillRentService { |
|
|
public ResultData updateRevenue(WxBillRent record) { |
|
|
public ResultData updateRevenue(WxBillRent record) { |
|
|
WxBillRent wxBillRent = wxBillRentMapper.selectByPrimaryKey(record.getId()); |
|
|
WxBillRent wxBillRent = wxBillRentMapper.selectByPrimaryKey(record.getId()); |
|
|
wxBillRent.setRevenue(record.getRevenue()); |
|
|
wxBillRent.setRevenue(record.getRevenue()); |
|
|
|
|
|
wxBillRent.setReceivePay(record.getRevenue()); |
|
|
wxBillRent.setUpdatetime(new Date()); |
|
|
wxBillRent.setUpdatetime(new Date()); |
|
|
try { |
|
|
try { |
|
|
wxBillRentMapper.updateByPrimaryKeySelective(wxBillRent); |
|
|
wxBillRentMapper.updateByPrimaryKeySelective(wxBillRent); |
|
|
@@ -233,7 +234,7 @@ public class WxBillRentServiceImpl implements WxBillRentService { |
|
|
logger.error("修改营业额失败,e:" + e.getMessage()); |
|
|
logger.error("修改营业额失败,e:" + e.getMessage()); |
|
|
throw new MallinkException(ErrorCode.DB_FAIL.getCode(), "修改营业额失败"); |
|
|
throw new MallinkException(ErrorCode.DB_FAIL.getCode(), "修改营业额失败"); |
|
|
} |
|
|
} |
|
|
return new ResultData(Result.SUCCESS, "修改营业额成功"); |
|
|
|
|
|
|
|
|
return new ResultData(Result.SUCCESS, "修改营业额成功", wxBillRent); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
|