|
|
|
@@ -10,6 +10,7 @@ import com.iformall.common.ResultData; |
|
|
|
import com.iformall.domain.po.*; |
|
|
|
import com.iformall.enums.*; |
|
|
|
import com.iformall.exception.MallinkException; |
|
|
|
import com.iformall.mapper.WxBillActionMapper; |
|
|
|
import com.iformall.mapper.WxBillPropertyDepositMapper; |
|
|
|
import com.iformall.mapper.WxBillPropertyMapper; |
|
|
|
import com.iformall.service.ExcelService; |
|
|
|
@@ -48,6 +49,9 @@ public class WxBillPropertyServiceImpl implements WxBillPropertyService { |
|
|
|
@Autowired |
|
|
|
ExcelService excelService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
WxBillActionMapper wxBillActionMapper; |
|
|
|
|
|
|
|
@Override |
|
|
|
public PageInfo<WxBillProperty> listAsPage(WxBillProperty record, Integer pageIndex, Integer pageSize) { |
|
|
|
PageHelper.startPage(pageIndex, pageSize); |
|
|
|
@@ -166,9 +170,6 @@ public class WxBillPropertyServiceImpl implements WxBillPropertyService { |
|
|
|
property.setPayDate(record.getPayDate()); |
|
|
|
property.setUpdatetime(date); |
|
|
|
property.setPayWay(record.getPayWay()); |
|
|
|
if(record.getLatePayPriceStr() != null) { |
|
|
|
property.setLatePayPrice(Long.parseLong(record.getLatePayPriceStr()) * 100); |
|
|
|
} |
|
|
|
try { |
|
|
|
wxBillPropertyMapper.updateByPrimaryKeySelective(property); |
|
|
|
} catch (Exception e) { |
|
|
|
@@ -298,4 +299,24 @@ public class WxBillPropertyServiceImpl implements WxBillPropertyService { |
|
|
|
public List<WxBillProperty> findLatePayBill() { |
|
|
|
return wxBillPropertyMapper.findLatePayBill(); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public ResultData updateLatePayMoney(WxBillProperty record, MallUserInfo user) { |
|
|
|
if(record.getLatePayMoneyUpdate() != null) { |
|
|
|
record.setLatePayPrice(Long.parseLong(record.getLatePayMoneyUpdate()) * 100); |
|
|
|
} |
|
|
|
wxBillPropertyMapper.updateByPrimaryKeySelective(record); |
|
|
|
final IdWorker idWorker = IdWorker.get(); |
|
|
|
|
|
|
|
WxBillAction billAction = new WxBillAction(); |
|
|
|
billAction.setId(idWorker.nextId()); |
|
|
|
billAction.setCreatetime(new Date()); |
|
|
|
billAction.setUserName("系统端"); |
|
|
|
billAction.setAction(EnumBillAction.UPDATE_LATE_PAY_MONEY.getCode()); |
|
|
|
billAction.setBillId(record.getId()); |
|
|
|
billAction.setDetails(record.getLatePayMoneyBefore()+"元变更为" +record.getLatePayMoneyUpdate()+"元"); |
|
|
|
billAction.setUpdatetime(new Date()); |
|
|
|
wxBillActionMapper.insertSelective(billAction); |
|
|
|
return new ResultData(); |
|
|
|
} |
|
|
|
} |