|
@@ -7,14 +7,17 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.qmrb.system.common.result.PageResult;
|
|
|
import com.qmrb.system.converter.ContractPlaceNumberRelConverter;
|
|
|
import com.qmrb.system.framework.security.util.SecurityUtils;
|
|
|
+import com.qmrb.system.pojo.entity.Contract;
|
|
|
import com.qmrb.system.pojo.entity.ContractPlaceNumberRel;
|
|
|
import com.qmrb.system.pojo.entity.SysUser;
|
|
|
import com.qmrb.system.pojo.form.ContractPlaceNumberRelForm;
|
|
|
+import com.qmrb.system.pojo.vo.BarnRecordVO;
|
|
|
import com.qmrb.system.pojo.vo.ContractPlaceNumberRelVO;
|
|
|
import com.qmrb.system.pojo.query.ContractPlaceNumberRelQuery;
|
|
|
import com.qmrb.system.mapper.ContractPlaceNumberRelMapper;
|
|
|
import com.qmrb.system.service.IContractPlaceNumberRelService;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
+import com.qmrb.system.service.IContractService;
|
|
|
import com.qmrb.system.service.SysUserService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -40,6 +43,9 @@ public class ContractPlaceNumberRelServiceImpl extends ServiceImpl<ContractPlace
|
|
|
@Autowired
|
|
|
SysUserService userService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ IContractService contractService;
|
|
|
+
|
|
|
|
|
|
* */
|
|
|
@Override
|
|
@@ -60,6 +66,11 @@ public class ContractPlaceNumberRelServiceImpl extends ServiceImpl<ContractPlace
|
|
|
|
|
|
|
|
|
Page<ContractPlaceNumberRelVO> pageResult = converter.entity2Page(dictItemPage);
|
|
|
+
|
|
|
+ Contract contract = contractService.getOne(new LambdaQueryWrapper<Contract>().eq(Contract::getId, sysUser.getContractId()));
|
|
|
+ for (ContractPlaceNumberRelVO record : pageResult.getRecords()) {
|
|
|
+ record.setMaxParkingLotNum(contract.getMaxParkingLotNum());
|
|
|
+ }
|
|
|
return pageResult;
|
|
|
}
|
|
|
|