10 changed files with 343 additions and 32 deletions
@ -0,0 +1,48 @@ |
|||||||
|
package com.biutag.supervision.pojo.param; |
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema; |
||||||
|
import lombok.Getter; |
||||||
|
import lombok.Setter; |
||||||
|
|
||||||
|
import java.util.Set; |
||||||
|
|
||||||
|
/** |
||||||
|
* @ClassName MailParam |
||||||
|
* @Description 局长信箱mail表查询实体 |
||||||
|
* @Author shihao |
||||||
|
* @Date 2025/12/18 16:45 |
||||||
|
*/ |
||||||
|
@Getter |
||||||
|
@Setter |
||||||
|
@Schema(description = "局长信箱mail表查询实体") |
||||||
|
public class MailQueryParam { |
||||||
|
|
||||||
|
|
||||||
|
@Schema(description = "主键") |
||||||
|
private String id; |
||||||
|
|
||||||
|
|
||||||
|
@Schema(description = "主键集合") |
||||||
|
private Set<String> ids; |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@Schema(description = "二级单位") |
||||||
|
private String secondDeptId; |
||||||
|
|
||||||
|
|
||||||
|
@Schema(description = "二级单位集合") |
||||||
|
private Set<String> secondDeptIds; |
||||||
|
|
||||||
|
|
||||||
|
@Schema(description = "三级单位") |
||||||
|
private String threeDeptId; |
||||||
|
|
||||||
|
@Schema(description = "三级单位集合") |
||||||
|
private Set<String> threeDeptIds; |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
} |
||||||
@ -0,0 +1,27 @@ |
|||||||
|
package com.biutag.supervision.pojo.param; |
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema; |
||||||
|
import lombok.Getter; |
||||||
|
import lombok.Setter; |
||||||
|
|
||||||
|
import java.util.Set; |
||||||
|
|
||||||
|
/** |
||||||
|
* @ClassName SupExternalDepartQueryParam |
||||||
|
* @Description 部门映射表查询实体 |
||||||
|
* @Author shihao |
||||||
|
* @Date 2025/12/18 16:59 |
||||||
|
*/ |
||||||
|
@Getter |
||||||
|
@Setter |
||||||
|
@Schema(description = "部门映射表查询实体") |
||||||
|
public class SupExternalDepartQueryParam { |
||||||
|
|
||||||
|
@Schema(description = "内部单位ids") |
||||||
|
private Set<String> internalIds; |
||||||
|
|
||||||
|
|
||||||
|
@Schema(description = "外部来源") |
||||||
|
private String source; |
||||||
|
|
||||||
|
} |
||||||
@ -0,0 +1,39 @@ |
|||||||
|
package com.biutag.supervision.repository.dataPetitionComplaint; |
||||||
|
|
||||||
|
import cn.hutool.core.util.ObjectUtil; |
||||||
|
import cn.hutool.core.util.StrUtil; |
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
||||||
|
import com.biutag.supervision.mapper.DataPetitionComplaintMapper; |
||||||
|
import com.biutag.supervision.pojo.entity.DataPetitionComplaint; |
||||||
|
import com.biutag.supervision.pojo.param.DataPetitionComplaintQueryParam; |
||||||
|
import jakarta.annotation.Resource; |
||||||
|
import org.springframework.stereotype.Service; |
||||||
|
|
||||||
|
import java.util.Collections; |
||||||
|
import java.util.List; |
||||||
|
|
||||||
|
/** |
||||||
|
* @ClassName DataPetitionComplaintResourceService |
||||||
|
* @Description 信访投诉台账 |
||||||
|
* @Author shihao |
||||||
|
* @Date 2025/12/18 16:21 |
||||||
|
*/ |
||||||
|
@Service |
||||||
|
public class DataPetitionComplaintResourceService { |
||||||
|
|
||||||
|
@Resource |
||||||
|
private DataPetitionComplaintMapper dataPetitionComplaintMapper; |
||||||
|
|
||||||
|
|
||||||
|
public List<DataPetitionComplaint> query(DataPetitionComplaintQueryParam param) { |
||||||
|
LambdaQueryWrapper<DataPetitionComplaint> wrapper = new LambdaQueryWrapper<>(); |
||||||
|
wrapper.eq(StrUtil.isNotBlank(param.getOriginId()), DataPetitionComplaint::getOriginId, param.getOriginId()); |
||||||
|
wrapper.between(ObjectUtil.isNotNull(param.getCreateTime()), DataPetitionComplaint::getCreateTime, param.getCreateTime().get(0), param.getCreateTime().get(1)); |
||||||
|
|
||||||
|
|
||||||
|
if (wrapper.getExpression() == null || wrapper.getExpression().getSqlSegment().isEmpty()) { |
||||||
|
return Collections.emptyList(); |
||||||
|
} |
||||||
|
return dataPetitionComplaintMapper.selectList(wrapper); |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,53 @@ |
|||||||
|
package com.biutag.supervision.repository.mail; |
||||||
|
|
||||||
|
import cn.hutool.core.collection.CollectionUtil; |
||||||
|
import cn.hutool.core.util.StrUtil; |
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
||||||
|
import com.biutag.supervision.mapper.MailMapper; |
||||||
|
import com.biutag.supervision.pojo.entity.mailbox.Mail; |
||||||
|
import com.biutag.supervision.pojo.param.MailQueryParam; |
||||||
|
import jakarta.annotation.Resource; |
||||||
|
import org.springframework.stereotype.Service; |
||||||
|
|
||||||
|
import java.util.Collections; |
||||||
|
import java.util.List; |
||||||
|
|
||||||
|
/** |
||||||
|
* @ClassName MailResourceService |
||||||
|
* @Description 局长信箱资源层 |
||||||
|
* @Author shihao |
||||||
|
* @Date 2025/12/18 16:44 |
||||||
|
*/ |
||||||
|
@Service |
||||||
|
public class MailResourceService { |
||||||
|
|
||||||
|
|
||||||
|
@Resource |
||||||
|
private MailMapper mailMapper; |
||||||
|
|
||||||
|
public List<Mail> query(MailQueryParam param) { |
||||||
|
LambdaQueryWrapper<Mail> queryWrapper = new LambdaQueryWrapper<>(); |
||||||
|
queryWrapper.eq(StrUtil.isNotBlank(param.getId()), Mail::getId, param.getId()); |
||||||
|
queryWrapper.in(CollectionUtil.isNotEmpty(param.getIds()), Mail::getId, param.getIds()); |
||||||
|
queryWrapper.eq(StrUtil.isNotBlank(param.getSecondDeptId()), Mail::getSecondDeptId, param.getSecondDeptId()); |
||||||
|
queryWrapper.in(CollectionUtil.isNotEmpty(param.getSecondDeptIds()), Mail::getId, param.getSecondDeptIds()); |
||||||
|
queryWrapper.eq(StrUtil.isNotBlank(param.getThreeDeptId()), Mail::getId, param.getThreeDeptId()); |
||||||
|
queryWrapper.in(CollectionUtil.isNotEmpty(param.getThreeDeptIds()), Mail::getId, param.getThreeDeptIds()); |
||||||
|
if (queryWrapper.getExpression() == null || queryWrapper.getExpression().getSqlSegment().isEmpty()) { |
||||||
|
return Collections.emptyList(); |
||||||
|
} |
||||||
|
return mailMapper.selectList(queryWrapper); |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
} |
||||||
@ -0,0 +1,43 @@ |
|||||||
|
package com.biutag.supervision.repository.supExternalDepart; |
||||||
|
|
||||||
|
import cn.hutool.core.collection.CollectionUtil; |
||||||
|
import cn.hutool.core.util.StrUtil; |
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
||||||
|
import com.biutag.supervision.mapper.SupExternalDepartMapper; |
||||||
|
import com.biutag.supervision.pojo.entity.SupExternalDepart; |
||||||
|
import com.biutag.supervision.pojo.param.SupExternalDepartQueryParam; |
||||||
|
import jakarta.annotation.Resource; |
||||||
|
import org.springframework.stereotype.Service; |
||||||
|
|
||||||
|
import java.util.Collections; |
||||||
|
import java.util.List; |
||||||
|
|
||||||
|
/** |
||||||
|
* @ClassName SupExternalDepartResourceService |
||||||
|
* @Description SupExternalDepartResourceService |
||||||
|
* @Author shihao |
||||||
|
* @Date 2025/12/18 16:58 |
||||||
|
*/ |
||||||
|
@Service |
||||||
|
public class SupExternalDepartResourceService { |
||||||
|
|
||||||
|
@Resource |
||||||
|
private SupExternalDepartMapper supExternalDepartMapper; |
||||||
|
|
||||||
|
|
||||||
|
public List<SupExternalDepart> query(SupExternalDepartQueryParam param){ |
||||||
|
LambdaQueryWrapper<SupExternalDepart> wrapper= new LambdaQueryWrapper<>(); |
||||||
|
wrapper.eq(StrUtil.isNotBlank(param.getSource()), SupExternalDepart::getSource, param.getSource()); |
||||||
|
wrapper.in(CollectionUtil.isNotEmpty(param.getInternalIds()), SupExternalDepart::getInternalId, param.getInternalIds()); |
||||||
|
|
||||||
|
if (wrapper.getExpression() == null || wrapper.getExpression().getSqlSegment().isEmpty()) { |
||||||
|
return Collections.emptyList(); |
||||||
|
} |
||||||
|
return supExternalDepartMapper.selectList(wrapper); |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
} |
||||||
Loading…
Reference in new issue