fix加盟费缴费信息时间问题
This commit is contained in:
@@ -215,18 +215,20 @@ public class LinePayServiceImpl implements LinePayService {
|
||||
LineInfoDO lineInfo = lineInfoDAO.getLineInfo(request.getLineId());
|
||||
LinePayDO linePayDO = LinePaySubmitRequest.convertFranchiseFee(request);
|
||||
linePayDO.setPartnerId(lineInfo.getPartnerId());
|
||||
linePayDO.setCreateUserId(userId);
|
||||
linePayDO.setCreateTime(new Date());
|
||||
if (linePayDO.getId() != null) {
|
||||
LinePayDO linePayById = linePayDAO.getById(linePayDO.getId());
|
||||
if (linePayById == null) {
|
||||
log.info("linePayById is null");
|
||||
throw new ServiceException(ErrorCodeEnum.UPDATE_ERROR);
|
||||
} else {
|
||||
linePayDO.setUpdateTime(new Date());
|
||||
linePayDO.setUpdateUserId(userId);
|
||||
linePayDAO.updateLinePay(linePayDO);
|
||||
}
|
||||
linePayDO.setPaymentReceiptCode(linePayById.getPaymentReceiptCode());
|
||||
} else {
|
||||
linePayDO.setCreateUserId(userId);
|
||||
linePayDO.setCreateTime(new Date());
|
||||
linePayDO.setPaymentReceiptCode(getPaymentReceiptCode());
|
||||
Long payId = linePayDAO.addLinePay(linePayDO);
|
||||
linePayDO.setId(payId);
|
||||
|
||||
Reference in New Issue
Block a user