| @@ -392,6 +392,15 @@ public class WxRentContractController extends BaseController { | |||||
| wxRentContractService.endContract(wxRentContract); | wxRentContractService.endContract(wxRentContract); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @GetMapping("/getContractByContractNumber") | |||||
| @SystemControllerLog(description = "租赁合同-通过合同编号查询信息") | |||||
| public ResultData getContractByContractNumber(@ModelAttribute WxRentContract wxRentContract) { | |||||
| logger.debug("[" + getIpAddr() + "] WxRentContractController::getContractByContractNumber"); | |||||
| wxRentContract.setTenantId(getTenantId()); | |||||
| return wxRentContractService.getContractByContractNumber(wxRentContract); | |||||
| } | |||||
| } | } | ||||
| @@ -97,4 +97,7 @@ public interface WxRentContractService { | |||||
| Map<Long,WxRentContract> selectRentContractByShopIds(Collection<Long> shopIds, String shopIdsRegexp,String tenantId); | Map<Long,WxRentContract> selectRentContractByShopIds(Collection<Long> shopIds, String shopIdsRegexp,String tenantId); | ||||
| int selectContractCountByShopId(WxRentContract wxRentContract); | int selectContractCountByShopId(WxRentContract wxRentContract); | ||||
| ResultData getContractByContractNumber(WxRentContract wxRentContract); | |||||
| } | } | ||||
| @@ -2532,4 +2532,10 @@ public class WxRentContractServiceImpl implements WxRentContractService { | |||||
| public int selectContractCountByShopId(WxRentContract wxRentContract) { | public int selectContractCountByShopId(WxRentContract wxRentContract) { | ||||
| return wxRentContractMapper.selectContractCountByShopId(wxRentContract) ; | return wxRentContractMapper.selectContractCountByShopId(wxRentContract) ; | ||||
| } | } | ||||
| @Override | |||||
| public ResultData getContractByContractNumber(WxRentContract rentContract) { | |||||
| WxRentContract wxRentContract = wxRentContractMapper.selectOne(new QueryWrapper<>(rentContract)); | |||||
| return new ResultData(wxRentContract); | |||||
| } | |||||
| } | } | ||||