|
|
|
@@ -8,6 +8,7 @@ import com.iformall.controller.base.BaseController; |
|
|
|
import com.iformall.domain.po.*; |
|
|
|
import com.iformall.enums.EnumFromType; |
|
|
|
import com.iformall.enums.EnumRentStartType; |
|
|
|
import com.iformall.exception.MallinkException; |
|
|
|
import com.iformall.mapper.WxRentContractMapper; |
|
|
|
import com.iformall.service.WxBillRentService; |
|
|
|
import com.iformall.service.WxMerchantService; |
|
|
|
@@ -128,7 +129,13 @@ public class WxRentContractController extends BaseController { |
|
|
|
if(wxRentContract.getRentStartType()!=null && wxRentContract.getRentStartType().equals(EnumRentStartType.STARTTIME.getCode())){ |
|
|
|
wxRentContract.setRentalStartDate(wxRentContract.getStartDate()); |
|
|
|
} |
|
|
|
return wxRentContractService.update(wxRentContract, user.getId(),user.getName(),EnumFromType.OTHER.getCode(),oldDate); |
|
|
|
ResultData update = null; |
|
|
|
try { |
|
|
|
update = wxRentContractService.update(wxRentContract, user.getId(), user.getName(), EnumFromType.OTHER.getCode(), oldDate); |
|
|
|
} catch (MallinkException e) { |
|
|
|
return new ResultData(ErrorCode.SYS_SERVER_ERROR); |
|
|
|
} |
|
|
|
return update; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
|