ruoyi-applet/src/main/java/com/ruoyi/web/controller/api/IndexController.java
@@ -26,6 +26,7 @@ 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; @@ -78,6 +79,11 @@ 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 { ruoyi-applet/src/main/java/com/ruoyi/web/controller/api/TFaultRepairMessageController.java
@@ -91,8 +91,7 @@ @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) ruoyi-system/src/main/java/com/ruoyi/system/model/TContract.java
@@ -143,7 +143,7 @@ * 7 待结算 * 8 已结算 */ @ApiModelProperty(value = "状态 待提交 待审批 未签订 已签订....") @ApiModelProperty(value = "合同状态 1=待提交 2=待审批 3=未签订 4=已签订 5=已驳回 6=已终止 7=待结算 8=已结算") @TableField("status") private String status; @ApiModelProperty(value = "内存大小多个文件逗号拼接") ruoyi-system/src/main/java/com/ruoyi/system/query/TContractQuery.java
@@ -17,7 +17,7 @@ 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;