fix:检查近6个月统计

pg_adapter
wangxy 7 months ago
parent 4706f1c438
commit be7e112e5f

@ -7,10 +7,7 @@ import com.ruoyi.common.core.domain.entity.SysDictData;
import com.ruoyi.common.utils.ShiroUtils; import com.ruoyi.common.utils.ShiroUtils;
import com.ruoyi.system.domain.check.TdCheckReport; import com.ruoyi.system.domain.check.TdCheckReport;
import com.ruoyi.system.domain.check.TdCheckType; import com.ruoyi.system.domain.check.TdCheckType;
import com.ruoyi.system.domain.check.dto.CheckTypeDTO; import com.ruoyi.system.domain.check.dto.*;
import com.ruoyi.system.domain.check.dto.CheckTypeItemDTO;
import com.ruoyi.system.domain.check.dto.TdCheckReportDTO;
import com.ruoyi.system.domain.check.dto.TdCheckTypeDTO;
import com.ruoyi.system.service.ISysDictDataService; import com.ruoyi.system.service.ISysDictDataService;
import com.ruoyi.system.service.check.TdCheckReportService; import com.ruoyi.system.service.check.TdCheckReportService;
import com.ruoyi.system.service.check.TdCheckTypeService; import com.ruoyi.system.service.check.TdCheckTypeService;
@ -47,7 +44,7 @@ public class CheckReportManager {
public List<TdCheckReport> selectTdCheckReportList(TdCheckReport tdCheckReport) { public List<TdCheckReport> selectTdCheckReportList(CheckReportDTO tdCheckReport) {
return checkReportService.selectTdCheckReportList(tdCheckReport); return checkReportService.selectTdCheckReportList(tdCheckReport);
} }

@ -7,6 +7,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.system.domain.check.TdCheckReport; import com.ruoyi.system.domain.check.TdCheckReport;
import com.ruoyi.system.domain.check.dto.CheckReportDTO;
import com.ruoyi.system.domain.check.dto.TdCheckReportDTO; import com.ruoyi.system.domain.check.dto.TdCheckReportDTO;
import com.ruoyi.web.controller.manager.CheckReportManager; import com.ruoyi.web.controller.manager.CheckReportManager;
import com.ruoyi.web.controller.manager.SysAreaManager; import com.ruoyi.web.controller.manager.SysAreaManager;
@ -52,7 +53,7 @@ public class CheckReportController extends BaseController {
@RequiresPermissions("system:check:list") @RequiresPermissions("system:check:list")
@PostMapping("/list") @PostMapping("/list")
@ResponseBody @ResponseBody
public TableDataInfo list(TdCheckReport tdCheckReport) { public TableDataInfo list(CheckReportDTO tdCheckReport) {
startPage(); startPage();
List<TdCheckReport> tdCheckReports = checkReportManager.selectTdCheckReportList(tdCheckReport); List<TdCheckReport> tdCheckReports = checkReportManager.selectTdCheckReportList(tdCheckReport);
return getDataTable(tdCheckReports); return getDataTable(tdCheckReports);
@ -65,7 +66,7 @@ public class CheckReportController extends BaseController {
@Log(title = "检查报告", businessType = BusinessType.EXPORT) @Log(title = "检查报告", businessType = BusinessType.EXPORT)
@PostMapping("/export") @PostMapping("/export")
@ResponseBody @ResponseBody
public AjaxResult export(TdCheckReport tdCheckReport) { public AjaxResult export(CheckReportDTO tdCheckReport) {
List<TdCheckReport> tdCheckReports = checkReportManager.selectTdCheckReportList(tdCheckReport); List<TdCheckReport> tdCheckReports = checkReportManager.selectTdCheckReportList(tdCheckReport);
tdCheckReports.forEach(tdCheck1 -> { tdCheckReports.forEach(tdCheck1 -> {
tdCheck1.setFramework(sysAreaManager.getAreaName(tdCheck1.getFramework())); tdCheck1.setFramework(sysAreaManager.getAreaName(tdCheck1.getFramework()));

@ -1,23 +1,26 @@
package com.ruoyi.web.controller.system.count; package com.ruoyi.web.controller.system.count;
import cn.hutool.core.text.StrPool;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
import com.ruoyi.common.annotation.Log; import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.entity.SysDictData; import com.ruoyi.common.core.domain.entity.SysDictData;
import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.ObtainLastSixMonthsUtil;
import com.ruoyi.system.domain.TdPropertyEment; import com.ruoyi.system.domain.TdPropertyEment;
import com.ruoyi.system.domain.TdPropertyInfo; import com.ruoyi.system.domain.TdPropertyInfo;
import com.ruoyi.system.domain.TdPropertyManager; import com.ruoyi.system.domain.TdPropertyManager;
import com.ruoyi.system.domain.count.PropertyDesCountDTO; import com.ruoyi.system.domain.check.TdCheckReport;
import com.ruoyi.system.domain.count.PropertyStateCountDTO; import com.ruoyi.system.domain.count.*;
import com.ruoyi.system.domain.count.UserCountDTO;
import com.ruoyi.system.domain.count.UserSmCountDTO;
import com.ruoyi.system.service.ISysDictDataService; import com.ruoyi.system.service.ISysDictDataService;
import com.ruoyi.system.service.ITdPropertyInfoService; import com.ruoyi.system.service.ITdPropertyInfoService;
import com.ruoyi.system.service.ITdPropertyManagerService; import com.ruoyi.system.service.ITdPropertyManagerService;
import com.ruoyi.system.service.TdPropertyEmentService; import com.ruoyi.system.service.TdPropertyEmentService;
import lombok.val;
import org.apache.shiro.authz.annotation.RequiresPermissions; import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
@ -25,9 +28,9 @@ import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.ArrayList; import java.time.LocalDate;
import java.util.Arrays; import java.time.ZoneId;
import java.util.List; import java.util.*;
import java.util.concurrent.atomic.AtomicReference; import java.util.concurrent.atomic.AtomicReference;
import java.util.stream.Collectors; import java.util.stream.Collectors;
@ -183,4 +186,41 @@ public class SysPropertynumController extends BaseController {
return AjaxResult.success(datas); return AjaxResult.success(datas);
} }
/**
*
*6
* @return
*/
@PostMapping("/countSecretsMonth")
@ResponseBody
public AjaxResult countSecretsMonth() {
List<String> recentlySixMonth = ObtainLastSixMonthsUtil.getRecentlySixMonth();
List<Long> yAxisData = new ArrayList<>();
recentlySixMonth.forEach(month -> {
// 获取指定月份的最大日期
String lastDayOfMonth = ObtainLastSixMonthsUtil.getLastDayOfMonth(month);
// 获取指定天的最大时间
Date date = Date.from(LocalDate.parse(lastDayOfMonth).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant());
Date maxDayTime = ObtainLastSixMonthsUtil.getEndOfDay(date);
// 获取最小时间
date = Date.from(LocalDate.parse(month.concat(StrPool.DASHED).concat("01")).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant());
Date minDayTime = ObtainLastSixMonthsUtil.getStartOfDay(date);
AtomicReference<Long> yAxis = new AtomicReference<>(0L);
PropertyManagerDTO tdPropertyManager = new PropertyManagerDTO();
tdPropertyManager.setMinDayTime(minDayTime);
tdPropertyManager.setMaxDayTime(maxDayTime);
tdPropertyManager.setSecretsType("1");
Integer count = tdPropertyManagerService.countSecretsMonth(tdPropertyManager);
if(Objects.isNull(count)){
count = 0;
}
yAxis.set(Long.valueOf(count));
yAxisData.add(yAxis.get());
});
JSONObject obj = new JSONObject();
obj.put("xAxisData", recentlySixMonth.toArray());
obj.put("yAxisData", yAxisData);
return AjaxResult.success(obj);
}
} }

@ -10,6 +10,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.ObtainLastSixMonthsUtil; import com.ruoyi.common.utils.ObtainLastSixMonthsUtil;
import com.ruoyi.system.domain.TdPropertyInfo; import com.ruoyi.system.domain.TdPropertyInfo;
import com.ruoyi.system.domain.check.TdCheckReport; import com.ruoyi.system.domain.check.TdCheckReport;
import com.ruoyi.system.domain.check.dto.CheckReportDTO;
import com.ruoyi.system.domain.count.CheckResultCountDTO; import com.ruoyi.system.domain.count.CheckResultCountDTO;
import com.ruoyi.system.domain.count.CheckTypeCountDTO; import com.ruoyi.system.domain.count.CheckTypeCountDTO;
import com.ruoyi.system.service.ISysDictDataService; import com.ruoyi.system.service.ISysDictDataService;
@ -60,7 +61,7 @@ public class TdChecknumController extends BaseController{
*/ */
@PostMapping("/list") @PostMapping("/list")
@ResponseBody @ResponseBody
public TableDataInfo list(TdCheckReport tdCheckReport) { public TableDataInfo list(CheckReportDTO tdCheckReport) {
startPage(); startPage();
List<TdCheckReport> tdCheckReports = checkReportManager.selectTdCheckReportList(tdCheckReport); List<TdCheckReport> tdCheckReports = checkReportManager.selectTdCheckReportList(tdCheckReport);
return getDataTable(tdCheckReports); return getDataTable(tdCheckReports);
@ -74,7 +75,7 @@ public class TdChecknumController extends BaseController{
@PostMapping("/countCheckMonth") @PostMapping("/countCheckMonth")
@ResponseBody @ResponseBody
public AjaxResult countCheckMonth() { public AjaxResult countCheckMonth() {
List<String> recentlySixMonth = ObtainLastSixMonthsUtil.getRecentlySixMonth(); List<String> recentlySixMonth = ObtainLastSixMonthsUtil.getRecentlyTwelveMonth();
List<Long> yAxisData = new ArrayList<>(); List<Long> yAxisData = new ArrayList<>();
recentlySixMonth.forEach(month -> { recentlySixMonth.forEach(month -> {
// 获取指定月份的最大日期 // 获取指定月份的最大日期

@ -24,6 +24,23 @@ import java.util.List;
*/ */
public class ObtainLastSixMonthsUtil { public class ObtainLastSixMonthsUtil {
/**
* yyyy-MM
*
* @return List<String>
*/
public static List<String> getRecentlyTwelveMonth() {
List<String> previousMonths = new ArrayList<>();
String currentMonth = DateUtil.format(LocalDateTime.now(), "yyyy-MM");
previousMonths.add(currentMonth);
for (int i = 1; i <= 11; i++) {
DateTime dateTime = DateUtil.offsetMonth(new Date(), -i);
String dateMonth = DateUtil.format(dateTime, "yyyy-MM");
previousMonths.add(dateMonth);
}
return previousMonths;
}
/** /**
* yyyy-MM * yyyy-MM
* *
@ -33,7 +50,7 @@ public class ObtainLastSixMonthsUtil {
List<String> previousMonths = new ArrayList<>(); List<String> previousMonths = new ArrayList<>();
String currentMonth = DateUtil.format(LocalDateTime.now(), "yyyy-MM"); String currentMonth = DateUtil.format(LocalDateTime.now(), "yyyy-MM");
previousMonths.add(currentMonth); previousMonths.add(currentMonth);
for (int i = 1; i <= 11; i++) { for (int i = 1; i <= 5; i++) {
DateTime dateTime = DateUtil.offsetMonth(new Date(), -i); DateTime dateTime = DateUtil.offsetMonth(new Date(), -i);
String dateMonth = DateUtil.format(dateTime, "yyyy-MM"); String dateMonth = DateUtil.format(dateTime, "yyyy-MM");
previousMonths.add(dateMonth); previousMonths.add(dateMonth);

@ -0,0 +1,113 @@
package com.ruoyi.system.domain.check.dto;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
/**
*
* @author 13560
* @TableName td_check_report
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class CheckReportDTO implements Serializable {
/**
* id
*/
@TableId
private String checkId;
/**
*
*/
@Excel(name = "检查人员")
private String adduser;
/**
*
*/
@Excel(name = "检查单位")
private String depart;
/**
*
*/
@Excel(name = "检查开始时间", width = 30, dateFormat = "yyyy-MM-dd")
private String checkStartTime;
/**
*
*/
@Excel(name = "检查结束时间", width = 30, dateFormat = "yyyy-MM-dd")
private String checkEndTime;
/**
* 0. 1.
*/
private String checkType;
/**
*
*/
@Excel(name = "所属市州")
private String framework;
/**
*
*/
@Excel(name = "所属区县")
private String area;
/**
* 012
*/
private String checkState;
/**
*
*/
private String checkName;
/**
*
*/
private Date createTime;
/**
*
*/
@Excel(name = "实有项目总分")
private String totalScore;
/**
*
*/
@Excel(name = "实有项目得分")
private String realScore;
/**
*
*/
@Excel(name = "得分占比")
private String percentageScore;
/**
*
*/
@Excel(name = "备注")
private String remark;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
}

@ -0,0 +1,30 @@
package com.ruoyi.system.domain.count;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
* ClassName: PropertyManagerDTO
* Package: com.ruoyi.system.domain.count
* Description:
*
* @Author wangxy
* @Create 2024/10/8 16:21
* @Version 1.0
*/
@Data
@ApiModel(value="密品报废统计", description="密品报废统计")
public class PropertyManagerDTO implements Serializable {
private Date minDayTime;
private Date maxDayTime;
private String secretsType;
}

@ -1,7 +1,13 @@
package com.ruoyi.system.mapper; package com.ruoyi.system.mapper;
import java.util.Date;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.domain.TdPropertyInfo;
import com.ruoyi.system.domain.TdPropertyManager; import com.ruoyi.system.domain.TdPropertyManager;
import com.ruoyi.system.domain.count.PropertyManagerDTO;
import org.apache.ibatis.annotations.Param;
/** /**
* Mapper * Mapper
@ -9,7 +15,7 @@ import com.ruoyi.system.domain.TdPropertyManager;
* @author ruoyi * @author ruoyi
* @date 2024-04-26 * @date 2024-04-26
*/ */
public interface TdPropertyManagerMapper public interface TdPropertyManagerMapper extends BaseMapper<TdPropertyManager>
{ {
/** /**
* *
@ -58,4 +64,7 @@ public interface TdPropertyManagerMapper
* @return * @return
*/ */
public int deleteTdPropertyManagerByUseIds(String[] useIds); public int deleteTdPropertyManagerByUseIds(String[] useIds);
public Integer countSecretsMonth(PropertyManagerDTO propertyManagerDTO);
} }

@ -2,6 +2,7 @@ package com.ruoyi.system.mapper.check;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.domain.check.TdCheckReport; import com.ruoyi.system.domain.check.TdCheckReport;
import com.ruoyi.system.domain.check.dto.CheckReportDTO;
import com.ruoyi.system.domain.count.CheckResultCountDTO; import com.ruoyi.system.domain.count.CheckResultCountDTO;
import com.ruoyi.system.domain.count.CheckTypeCountDTO; import com.ruoyi.system.domain.count.CheckTypeCountDTO;
@ -16,7 +17,7 @@ import java.util.List;
public interface TdCheckReportMapper extends BaseMapper<TdCheckReport> { public interface TdCheckReportMapper extends BaseMapper<TdCheckReport> {
public List<TdCheckReport> selectTdCheckReportList(TdCheckReport tdCheckReport); public List<TdCheckReport> selectTdCheckReportList(CheckReportDTO tdCheckReport);
public List<TdCheckReport> selectTdCheckResultList(TdCheckReport tdCheckReport); public List<TdCheckReport> selectTdCheckResultList(TdCheckReport tdCheckReport);

@ -1,7 +1,13 @@
package com.ruoyi.system.service; package com.ruoyi.system.service;
import java.util.Date;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.system.domain.TdPropertyInfo;
import com.ruoyi.system.domain.TdPropertyManager; import com.ruoyi.system.domain.TdPropertyManager;
import com.ruoyi.system.domain.count.PropertyManagerDTO;
import org.apache.ibatis.annotations.Param;
/** /**
* Service * Service
@ -9,7 +15,7 @@ import com.ruoyi.system.domain.TdPropertyManager;
* @author ruoyi * @author ruoyi
* @date 2024-04-26 * @date 2024-04-26
*/ */
public interface ITdPropertyManagerService public interface ITdPropertyManagerService extends IService<TdPropertyManager>
{ {
/** /**
* *
@ -58,4 +64,7 @@ public interface ITdPropertyManagerService
* @return * @return
*/ */
public int deleteTdPropertyManagerByUseId(String useId); public int deleteTdPropertyManagerByUseId(String useId);
public Integer countSecretsMonth(PropertyManagerDTO propertyManagerDTO);
} }

@ -2,6 +2,7 @@ package com.ruoyi.system.service.check;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.system.domain.check.TdCheckReport; import com.ruoyi.system.domain.check.TdCheckReport;
import com.ruoyi.system.domain.check.dto.CheckReportDTO;
import com.ruoyi.system.domain.count.CheckResultCountDTO; import com.ruoyi.system.domain.count.CheckResultCountDTO;
import com.ruoyi.system.domain.count.CheckTypeCountDTO; import com.ruoyi.system.domain.count.CheckTypeCountDTO;
import com.ruoyi.system.domain.place.TdPlace; import com.ruoyi.system.domain.place.TdPlace;
@ -16,7 +17,7 @@ import java.util.List;
public interface TdCheckReportService extends IService<TdCheckReport> { public interface TdCheckReportService extends IService<TdCheckReport> {
public List<TdCheckReport> selectTdCheckReportList(TdCheckReport tdCheckReport); public List<TdCheckReport> selectTdCheckReportList(CheckReportDTO tdCheckReport);
public List<TdCheckReport> selectTdCheckResultList(TdCheckReport tdCheckReport); public List<TdCheckReport> selectTdCheckResultList(TdCheckReport tdCheckReport);

@ -2,6 +2,7 @@ package com.ruoyi.system.service.check.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.system.domain.check.TdCheckReport; import com.ruoyi.system.domain.check.TdCheckReport;
import com.ruoyi.system.domain.check.dto.CheckReportDTO;
import com.ruoyi.system.domain.count.CheckResultCountDTO; import com.ruoyi.system.domain.count.CheckResultCountDTO;
import com.ruoyi.system.domain.count.CheckTypeCountDTO; import com.ruoyi.system.domain.count.CheckTypeCountDTO;
import com.ruoyi.system.mapper.check.TdCheckReportMapper; import com.ruoyi.system.mapper.check.TdCheckReportMapper;
@ -25,7 +26,7 @@ public class TdCheckReportServiceImpl extends ServiceImpl<TdCheckReportMapper, T
private TdCheckReportMapper checkReportMapper; private TdCheckReportMapper checkReportMapper;
@Override @Override
public List<TdCheckReport> selectTdCheckReportList(TdCheckReport tdCheckReport) { public List<TdCheckReport> selectTdCheckReportList(CheckReportDTO tdCheckReport) {
return checkReportMapper.selectTdCheckReportList(tdCheckReport); return checkReportMapper.selectTdCheckReportList(tdCheckReport);
} }

@ -1,6 +1,13 @@
package com.ruoyi.system.service.impl; package com.ruoyi.system.service.impl;
import java.util.Date;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.system.domain.TdPropertyInfo;
import com.ruoyi.system.domain.count.PropertyManagerDTO;
import com.ruoyi.system.mapper.TdPropertyInfoMapper;
import com.ruoyi.system.service.ITdPropertyInfoService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TdPropertyManagerMapper; import com.ruoyi.system.mapper.TdPropertyManagerMapper;
@ -15,7 +22,7 @@ import com.ruoyi.common.core.text.Convert;
* @date 2024-04-26 * @date 2024-04-26
*/ */
@Service @Service
public class TdPropertyManagerServiceImpl implements ITdPropertyManagerService public class TdPropertyManagerServiceImpl extends ServiceImpl<TdPropertyManagerMapper, TdPropertyManager> implements ITdPropertyManagerService
{ {
@Autowired @Autowired
private TdPropertyManagerMapper tdPropertyManagerMapper; private TdPropertyManagerMapper tdPropertyManagerMapper;
@ -91,4 +98,9 @@ public class TdPropertyManagerServiceImpl implements ITdPropertyManagerService
{ {
return tdPropertyManagerMapper.deleteTdPropertyManagerByUseId(useId); return tdPropertyManagerMapper.deleteTdPropertyManagerByUseId(useId);
} }
@Override
public Integer countSecretsMonth(PropertyManagerDTO propertyManagerDTO) {
return tdPropertyManagerMapper.countSecretsMonth(propertyManagerDTO);
}
} }

@ -49,10 +49,10 @@
<if test="realScore!=null and realScore!=''"> <if test="realScore!=null and realScore!=''">
AND real_score = #{realScore} AND real_score = #{realScore}
</if> </if>
<if test="checkStartTime != null and checkStartTime != ''"><!-- 开始时间检索 --> <if test="checkStartTime != null and checkStartTime!='' "><!-- 开始时间检索 -->
AND check_start_time &gt;= #{checkStartTime} AND check_start_time &gt;= #{checkStartTime}
</if> </if>
<if test="checkEndTime != null and checkEndTime != ''"><!-- 结束时间检索 --> <if test="checkEndTime != null and checkEndTime!=''"><!-- 结束时间检索 -->
AND check_end_time &lt;= #{checkEndTime} AND check_end_time &lt;= #{checkEndTime}
</if> </if>
</trim> </trim>

@ -112,4 +112,12 @@
</foreach> </foreach>
</delete> </delete>
<select id="countSecretsMonth" resultType="java.lang.Integer" parameterType="PropertyManagerDTO">
SELECT COUNT(t.*) from td_property_manager t RIGHT JOIN td_property_info d
on t.use_id = d.use_id where t.secrets_type=#{secretsType}
AND t.recover_date &gt;= #{minDayTime}
AND t.recover_date &lt;= #{maxDayTime}
and d.destory_state is null
</select>
</mapper> </mapper>
Loading…
Cancel
Save