Merge branch 'master' of https://gitee.com/xiaochen991015/xizang
| | |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.ArrayList; |
| | |
| | | myToDoVO.setContractCount((int) contractCount); |
| | | List<String> contractIds = contractService.lambdaQuery().eq(TContract::getTenantId, loginUserApplet.getUserId()).list() |
| | | .stream().map(TContract::getId).collect(Collectors.toList()); |
| | | if (CollectionUtils.isEmpty(contractIds)){ |
| | | myToDoVO.setBillCount(0); |
| | | myToDoVO.setContractCount(0); |
| | | return R.ok(myToDoVO); |
| | | } |
| | | int billCount = billService.lambdaQuery().in(TBill::getContractId, contractIds).eq(TBill::getPayFeesStatus, 1).list().size(); |
| | | myToDoVO.setBillCount(billCount); |
| | | }else { |
| | |
| | | @PostMapping(value = "/getConcatByTenantId") |
| | | public R<List<TContract>> getConcatByTenantId() { |
| | | |
| | | // Long userId = tokenService.getLoginUser().getUserId(); |
| | | String tenantId = "1881967035070177281"; |
| | | String tenantId = tokenService.getLoginUserApplet().getUserId(); |
| | | // 查询合同信息 |
| | | List<TContract> list = contractService.list(Wrappers.lambdaQuery(TContract.class) |
| | | .eq(TContract::getTenantId, tenantId) |
| | |
| | | * 7 待结算 |
| | | * 8 已结算 |
| | | */ |
| | | @ApiModelProperty(value = "状态 待提交 待审批 未签订 已签订....") |
| | | @ApiModelProperty(value = "合同状态 1=待提交 2=待审批 3=未签订 4=已签订 5=已驳回 6=已终止 7=待结算 8=已结算") |
| | | @TableField("status") |
| | | private String status; |
| | | @ApiModelProperty(value = "内存大小多个文件逗号拼接") |
| | |
| | | private String contractNumber; |
| | | @ApiModelProperty(value = "合同名称") |
| | | private Integer contractName; |
| | | @ApiModelProperty(value = "合同状态 1=待提交 2=待审批 3=未签订 4=已签订") |
| | | @ApiModelProperty(value = "合同状态 1=待提交 2=待审批 3=未签订 4=已签订 5=已驳回 6=已终止 7=待结算 8=已结算") |
| | | private Integer status; |
| | | @ApiModelProperty(value = "选中的行") |
| | | private List<String> ids; |
| | |
| | | import com.ruoyi.common.basic.PageInfo; |
| | | import com.ruoyi.common.constant.DictConstants; |
| | | import com.ruoyi.common.utils.DictUtils; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.system.mapper.TContractMapper; |
| | | import com.ruoyi.system.mapper.THouseMapper; |
| | | import com.ruoyi.system.model.TContract; |
| | |
| | | PageInfo<HouseVO> pageInfo = new PageInfo<>(query.getPageNum(), query.getPageSize()); |
| | | List<HouseVO> list = this.baseMapper.userHistoryList(query,pageInfo); |
| | | for (HouseVO houseVO : list) { |
| | | houseVO.setTenantAttributes(DictUtils.getDictLabel(DictConstants.DICT_TYPE_TENANT_ATTRIBUTE,houseVO.getTenantAttributes())); |
| | | houseVO.setTenantAttributes(StringUtils.isNotEmpty(houseVO.getTenantAttributes())?DictUtils.getDictLabel(DictConstants.DICT_TYPE_TENANT_ATTRIBUTE,houseVO.getTenantAttributes()):""); |
| | | } |
| | | pageInfo.setRecords(list); |
| | | return pageInfo; |
| | |
| | | t2.id_card as idCard, |
| | | t2.bank_number as bankNumber, |
| | | t2.mail_address as mailAddress, |
| | | t2.tenant_attributes as tenantAttributes, |
| | | t2.tenant_attributes as tenantAttributes |
| | | from t_contract t1 |
| | | left join t_tenant t2 on t1.tenant_id = t2.id |
| | | LEFT JOIN t_house t3 on t3.id = t1.house_id |