修改表名

hhw
杜函宇 1 month ago
parent 75674af97c
commit b1d43bc531

@ -4,6 +4,7 @@ import cn.hutool.core.util.CreditCodeUtil;
import com.ruoyi.common.core.domain.entity.SysUser; import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.docking.entity.SmartDeclaration; import com.ruoyi.docking.entity.SmartDeclaration;
import com.ruoyi.docking.service.SmartDeclarationService; import com.ruoyi.docking.service.SmartDeclarationService;
import com.ruoyi.docking.service.UserService;
import com.ruoyi.system.mapper.SysUserMapper; import com.ruoyi.system.mapper.SysUserMapper;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
@ -32,10 +33,12 @@ public class TimingRemindImpl implements TimingRemindService {
private SmartDeclarationService smartDeclarationService; private SmartDeclarationService smartDeclarationService;
/** /**
* *
*/ */
@Resource @Resource
private SysUserMapper sysUserMapper; private UserService userService;
/** /**
@ -61,32 +64,24 @@ public class TimingRemindImpl implements TimingRemindService {
/** /**
* *
*/ */
public void chiefTiming(String t, Long id, String pid) { public void chiefTiming(String time, Long id, String pid,String content) {
List<SmartDeclaration> listAdd = new ArrayList<>(); List<SmartDeclaration> listAdd = new ArrayList<>();
//给所有政务人员发通知和短信 //给所有政务人员发通知和短信
//添加用户进表的时候手机号已经经过处理 //添加用户进表的时候手机号已经经过处理
SysUser user = new SysUser(); // for (SysUser x : userService.getAllZwUser()) {
List<SysUser> sysUsers = sysUserMapper.selectUserList(user); // SmartDeclaration sd = new SmartDeclaration();
//获取到所有的符合条件的政务用户 // sd.setAlertTime(LocalDateTime.parse(t));
List<SysUser> collect = sysUsers.stream().filter(x -> "0".equals(x.getDelFlag()) && "0".equals(x.getStatus())) // sd.setSmartRemindersId(id);
.filter(y -> !CreditCodeUtil.isCreditCode(y.getUserName()))
.collect(Collectors.toList());
for (SysUser x : collect) {
SmartDeclaration sd = new SmartDeclaration();
sd.setIsRead(1);
sd.setAlertTime(LocalDateTime.parse(t));
sd.setSmartRemindersId(id);
if ("null".equals(pid)) { if ("null".equals(pid)) {
sd.setProjectId(null); userService.getAllZwUser(content,null,id,time);
} else { } else {
sd.setProjectId(Long.valueOf(pid)); userService.getAllZwUser(content,Long.valueOf(pid),id,time);
} }
sd.setZwId(x.getUserId()); // sd.setZwId(x.getUserId());
listAdd.add(sd); // listAdd.add(sd);
} // }
smartDeclarationService.saveBatch(listAdd);
log.info("提醒成功!"); log.info("提醒成功!");
} }
} }

@ -16,5 +16,5 @@ public interface TimingRemindService {
/** /**
* *
*/ */
void chiefTiming(String t, Long id, String pid); void chiefTiming(String time, Long id, String pid,String content);
} }

@ -5,14 +5,12 @@ 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.exception.ServiceException; import com.ruoyi.common.exception.ServiceException;
import com.ruoyi.common.exception.job.TaskException; import com.ruoyi.common.exception.job.TaskException;
import com.ruoyi.docking.component.TimingRemindService;
import com.ruoyi.docking.entity.SmartReminders; import com.ruoyi.docking.entity.SmartReminders;
import com.ruoyi.docking.entity.request.JAddJobSmart; import com.ruoyi.docking.entity.request.JAddJobSmart;
import com.ruoyi.docking.entity.request.SREnterRequest; import com.ruoyi.docking.entity.request.SREnterRequest;
import com.ruoyi.docking.entity.request.SmartRemindersPageRequest; import com.ruoyi.docking.entity.request.SmartRemindersPageRequest;
import com.ruoyi.docking.service.SmartRemindersService; import com.ruoyi.docking.service.SmartRemindersService;
import com.ruoyi.gysl.regular.NoticeTiming; import com.ruoyi.gysl.regular.NoticeTiming;
import com.ruoyi.gysl.service.NoticeService;
import com.ruoyi.quartz.domain.SysJob; import com.ruoyi.quartz.domain.SysJob;
import com.ruoyi.quartz.service.ISysJobService; import com.ruoyi.quartz.service.ISysJobService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
@ -86,6 +84,19 @@ public class SmartRemindersController extends BaseController {
return success(smartRemindersService.getById(id)); return success(smartRemindersService.getById(id));
} }
/**
*
*
* @param id
* @return
*/
// @PreAuthorize("@ss.hasAnyRoles('admin,common')")
@ApiOperation(value = "已读智能提醒")
@GetMapping("/isRead{id}")
public AjaxResult isRead(@PathVariable Serializable id) {
return success(smartRemindersService.isRead(id));
}
/** /**
* *
* *

@ -23,7 +23,7 @@ import org.springframework.format.annotation.DateTimeFormat;
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@TableName("smart_declaration") @TableName("gysl_smart_declaration")
@ApiModel(value="智能提醒关联表",description = "智能提醒") @ApiModel(value="智能提醒关联表",description = "智能提醒")
public class SmartDeclaration { public class SmartDeclaration {
@ -52,7 +52,9 @@ public class SmartDeclaration {
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime alertTime; private LocalDateTime alertTime;
@ApiModelProperty(value ="提醒内容" )
private String content;
@ApiModelProperty(value ="政务用户id" ) @ApiModelProperty(value ="政务用户id" )
private Long zwId; private Long zwId;

@ -23,7 +23,7 @@ import java.time.LocalDateTime;
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Data @Data
@ApiModel("智能提醒") @ApiModel("智能提醒")
@TableName(value = "smart_reminders") @TableName(value = "gysl_smart_reminders")
public class SmartReminders extends BaseModel implements Serializable { public class SmartReminders extends BaseModel implements Serializable {
/** /**

@ -7,6 +7,8 @@ import com.ruoyi.docking.entity.request.JAddJobSmart;
import com.ruoyi.docking.entity.request.SmartRemindersPageRequest; import com.ruoyi.docking.entity.request.SmartRemindersPageRequest;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import java.io.Serializable;
/** /**
* j_smart_reminders访 * j_smart_reminders访
* *
@ -34,5 +36,14 @@ public interface SmartRemindersMapper extends BaseMapper<SmartReminders> {
* id * id
*/ */
JAddJobSmart selectJobSmart(@Param("id") Long id); JAddJobSmart selectJobSmart(@Param("id") Long id);
/**
*
*
* @param id
* @return
*/
Boolean isRead(@Param("id") Serializable id);
} }

@ -10,6 +10,5 @@ import com.ruoyi.docking.entity.SmartDeclaration;
* @since 2025-03-31 14:57:57 * @since 2025-03-31 14:57:57
*/ */
public interface SmartDeclarationService extends IService<SmartDeclaration> { public interface SmartDeclarationService extends IService<SmartDeclaration> {
} }

@ -9,6 +9,7 @@ import com.ruoyi.docking.entity.request.SREnterRequest;
import com.ruoyi.docking.entity.request.SmartRemindersPageRequest; import com.ruoyi.docking.entity.request.SmartRemindersPageRequest;
import org.quartz.SchedulerException; import org.quartz.SchedulerException;
import java.io.Serializable;
import java.time.LocalDateTime; import java.time.LocalDateTime;
@ -52,5 +53,13 @@ public interface SmartRemindersService extends IService<SmartReminders> {
* id * id
*/ */
JAddJobSmart selectJobSmart(Long id); JAddJobSmart selectJobSmart(Long id);
/**
*
*
* @param id
* @return
*/
Boolean isRead(Serializable id);
} }

@ -0,0 +1,16 @@
package com.ruoyi.docking.service;
/**
*
*
* @author makejava
* @since 2025-03-25 14:49:04
*/
public interface UserService{
/**
*
*/
void getAllZwUser(String content, Long id, Long smartRemindersId, String time);
}

@ -1,11 +1,17 @@
package com.ruoyi.docking.service.impl; package com.ruoyi.docking.service.impl;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.docking.mapper.SmartDeclarationMapper;
import com.ruoyi.docking.entity.SmartDeclaration; import com.ruoyi.docking.entity.SmartDeclaration;
import com.ruoyi.docking.mapper.SmartDeclarationMapper;
import com.ruoyi.docking.service.SmartDeclarationService; import com.ruoyi.docking.service.SmartDeclarationService;
import com.ruoyi.docking.service.UserService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;
/** /**
* (SmartDeclaration) * (SmartDeclaration)
* *
@ -15,5 +21,6 @@ import org.springframework.stereotype.Service;
@Service("smartDeclarationService") @Service("smartDeclarationService")
public class SmartDeclarationServiceImpl extends ServiceImpl<SmartDeclarationMapper, SmartDeclaration> implements SmartDeclarationService { public class SmartDeclarationServiceImpl extends ServiceImpl<SmartDeclarationMapper, SmartDeclaration> implements SmartDeclarationService {
} }

@ -19,6 +19,7 @@ import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.io.Serializable;
import java.time.LocalDateTime; import java.time.LocalDateTime;
/** /**
@ -100,7 +101,11 @@ public class SmartRemindersServiceImpl extends ServiceImpl<SmartRemindersMapper,
sysJob.setInvokeTarget("timingRemind.enterpriseTiming(" + "'" + jSmartReminders.getAlertTime() + "'" + "," + jSmartReminders.getId() + "L" + ")"); sysJob.setInvokeTarget("timingRemind.enterpriseTiming(" + "'" + jSmartReminders.getAlertTime() + "'" + "," + jSmartReminders.getId() + "L" + ")");
} else { } else {
//如果是政务端的定时提醒 //如果是政务端的定时提醒
sysJob.setInvokeTarget("timingRemind.chiefTiming(" + "'" + jSmartReminders.getAlertTime() + "'" + "," + jSmartReminders.getId() + "L," + "'" + jSmartReminders.getProjectId() + "'" + ")"); sysJob.setInvokeTarget("timingRemind.chiefTiming(" + "'"
+ jSmartReminders.getAlertTime() + "'" + ","
+ jSmartReminders.getId() + "L," + "'"
+ jSmartReminders.getProjectId() + "'"+"'"
+ jSmartReminders.getAlertContent() + "'" + ")");
} }
sysJob.setJobGroup("DEFAULT"); sysJob.setJobGroup("DEFAULT");
sysJob.setJobName(jSmartReminders.getRulesName()); sysJob.setJobName(jSmartReminders.getRulesName());
@ -129,5 +134,16 @@ public class SmartRemindersServiceImpl extends ServiceImpl<SmartRemindersMapper,
public JAddJobSmart selectJobSmart(Long id) { public JAddJobSmart selectJobSmart(Long id) {
return baseMapper.selectJobSmart(id); return baseMapper.selectJobSmart(id);
} }
/**
*
*
* @param id
* @return
*/
@Override
public Boolean isRead(Serializable id) {
return baseMapper.isRead(id);
}
} }

@ -0,0 +1,53 @@
package com.ruoyi.docking.service.impl;
import cn.hutool.core.util.CreditCodeUtil;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.docking.entity.SmartDeclaration;
import com.ruoyi.docking.service.SmartDeclarationService;
import com.ruoyi.docking.service.UserService;
import com.ruoyi.system.mapper.SysUserMapper;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
/**
*
*
* @author makejava
* @since 2025-03-25 14:49:04
*/
@Service
public class UserServiceImpl implements UserService {
@Resource
private SysUserMapper sysUserMapper;
@Resource
private SmartDeclarationService smartDeclarationService;
@Override
public void getAllZwUser(String content, Long id, Long smartRemindersId, String time) {
SysUser user = new SysUser();
List<SysUser> sysUsers = sysUserMapper.selectUserList(user);
//获取到所有的符合条件的政务用户
List<SysUser> collect = sysUsers.stream().filter(x -> "0".equals(x.getDelFlag()) && "0".equals(x.getStatus()))
.filter(y -> !CreditCodeUtil.isCreditCode(y.getUserName()))
.collect(Collectors.toList());
List<SmartDeclaration> list = new ArrayList<>();
collect.forEach(x->{
SmartDeclaration smartDeclaration = new SmartDeclaration();
smartDeclaration.setZwId(x.getUserId());
smartDeclaration.setContent(content);
smartDeclaration.setProjectId(id);
smartDeclaration.setAlertTime(LocalDateTime.parse(time));
smartDeclaration.setSmartRemindersId(smartRemindersId);
list.add(smartDeclaration);
});
smartDeclarationService.saveBatch(list);
}
}

@ -9,6 +9,8 @@ import com.ruoyi.common.exception.ServiceException;
import com.ruoyi.common.utils.SecurityUtils; import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.common.utils.poi.ChangeExcelUtil; import com.ruoyi.common.utils.poi.ChangeExcelUtil;
import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.docking.entity.SmartDeclaration;
import com.ruoyi.docking.service.SmartDeclarationService;
import com.ruoyi.gysl.entity.*; import com.ruoyi.gysl.entity.*;
import com.ruoyi.gysl.entity.request.AuditRequest; import com.ruoyi.gysl.entity.request.AuditRequest;
import com.ruoyi.gysl.entity.request.BasicInformationPageReq; import com.ruoyi.gysl.entity.request.BasicInformationPageReq;
@ -65,7 +67,7 @@ public class BasicInformationController extends BaseController {
* *
*/ */
@Resource @Resource
private NoticeService noticeService; private SmartDeclarationService smartDeclarationService;
/** /**
* *
@ -208,13 +210,11 @@ public class BasicInformationController extends BaseController {
saveOther.add(projectOtherInfo); saveOther.add(projectOtherInfo);
}); });
projectOtherInfoService.saveBatch(saveOther); projectOtherInfoService.saveBatch(saveOther);
//新增消息 //新增消息(也就是智能提醒)
Notice notice = new Notice(); SmartDeclaration notice = new SmartDeclaration();
notice.setType(2);
notice.setTyshxydm(x.getTyshxydm()); notice.setTyshxydm(x.getTyshxydm());
notice.setXmId(x.getId());
notice.setContent("关于" + x.getName() + "项目,待填报的通知"); notice.setContent("关于" + x.getName() + "项目,待填报的通知");
noticeService.save(notice); smartDeclarationService.save(notice);
}); });
successMsg.append("导入成功"); successMsg.append("导入成功");
} }

@ -77,7 +77,7 @@ public class ZwStatsController extends BaseController {
@ApiOperation("消息通知") @ApiOperation("消息通知")
@GetMapping("/zwNotice") @GetMapping("/zwNotice")
public AjaxResult zwNotice() { public AjaxResult zwNotice() {
return success(zwStatsService.zwNotice()); return success(zwStatsService.zwNotice(SecurityUtils.getUserId()));
} }
@ -87,7 +87,7 @@ public class ZwStatsController extends BaseController {
@ApiOperation("政务消息通知数量") @ApiOperation("政务消息通知数量")
@GetMapping("/zwNoticeCount") @GetMapping("/zwNoticeCount")
public AjaxResult zwNoticeCount() { public AjaxResult zwNoticeCount() {
return success(zwStatsService.zwNoticeCount()); return success(zwStatsService.zwNoticeCount(SecurityUtils.getUserId()));
} }
} }

@ -25,7 +25,7 @@ import java.util.Date;
*/ */
@Data @Data
@ApiModel("基本信息") @ApiModel("基本信息")
@TableName(value = "basic_information") @TableName(value = "gysl_basic_information")
public class BasicInformation extends BaseModel { public class BasicInformation extends BaseModel {
@ApiModelProperty("主键id") @ApiModelProperty("主键id")
@ -33,13 +33,13 @@ public class BasicInformation extends BaseModel {
private Long id; private Long id;
@Excel(name = "统一社会信用代码", sort = 2,required = true) @Excel(name = "统一社会信用代码*", sort = 2,required = true)
@ApiModelProperty("统一社会信用代码") @ApiModelProperty("统一社会信用代码")
private String tyshxydm; private String tyshxydm;
@NotBlank @NotBlank
@Excel(name = "项目名称", sort = 2,required = true) @Excel(name = "项目名称*", sort = 2,required = true)
@ApiModelProperty("项目名称") @ApiModelProperty("项目名称")
private String name; private String name;

@ -24,8 +24,8 @@ import java.time.LocalDateTime;
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@TableName("building_information") @TableName("gysl_building_information")
@ApiModel(value = "BuildingInformation") @ApiModel(value = "建筑信息")
public class BuildingInformation implements Serializable { public class BuildingInformation implements Serializable {

@ -20,7 +20,7 @@ import java.io.Serializable;
*/ */
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Data @Data
@TableName("dpclgl") @TableName("gysl_dpclgl")
public class Dpclgl extends BaseModel implements Serializable{ public class Dpclgl extends BaseModel implements Serializable{
@ApiModelProperty(value = "主键id") @ApiModelProperty(value = "主键id")

@ -24,7 +24,7 @@ import java.time.LocalDateTime;
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@TableName("enterprise") @TableName("gysl_enterprise")
@ApiModel(value = "Enterprise", description = "入驻企业基本信息") @ApiModel(value = "Enterprise", description = "入驻企业基本信息")
public class Enterprise extends BaseModel implements Serializable { public class Enterprise extends BaseModel implements Serializable {

@ -21,7 +21,7 @@ import java.io.Serializable;
*/ */
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Data @Data
@TableName("ml") @TableName("gysl_ml")
public class Ml extends BaseModel implements Serializable{ public class Ml extends BaseModel implements Serializable{
@ApiModelProperty(value = "主键id") @ApiModelProperty(value = "主键id")

@ -20,7 +20,7 @@ import lombok.EqualsAndHashCode;
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@TableName("mx") @TableName("gysl_mx")
@ApiModel(value = "Mx", description = "模型管理") @ApiModel(value = "Mx", description = "模型管理")
public class Mx extends BaseModel implements Serializable { public class Mx extends BaseModel implements Serializable {
private static final long serialVersionUID = -78397958900753109L; private static final long serialVersionUID = -78397958900753109L;

@ -1,52 +0,0 @@
package com.ruoyi.gysl.entity;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* (Notice)
*
* @author makejava
* @since 2025-03-23 16:34:27
*/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("notice")
@ApiModel(value = "notice", description = "项目通知")
public class Notice implements Serializable {
/**
* id
*/
@ApiModelProperty(value = "主键id")
@TableField("id")
@TableId(type = IdType.AUTO)
private Long id;
@ApiModelProperty(value = "1政务通知 2企业通知")
private Integer type;
@ApiModelProperty(value = "通知内容")
private String content;
@ApiModelProperty(value = "统一社会信用代码")
private String tyshxydm;
@TableField(fill = FieldFill.INSERT)
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime createTime;
@ApiModelProperty(value = "项目id")
private Long xmId;
}

@ -20,7 +20,7 @@ import lombok.EqualsAndHashCode;
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@TableName("pjpz") @TableName("gysl_pjpz")
@ApiModel(value = "Pjpz", description = "项目评价配置") @ApiModel(value = "Pjpz", description = "项目评价配置")
public class Pjpz extends BaseModel implements Serializable { public class Pjpz extends BaseModel implements Serializable {
private static final long serialVersionUID = -25318153790915105L; private static final long serialVersionUID = -25318153790915105L;

@ -24,7 +24,7 @@ import java.time.LocalDateTime;
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@TableName("plan_information") @TableName("gysl_plan_information")
@ApiModel(value = "PlanInformation", description = "规划信息") @ApiModel(value = "PlanInformation", description = "规划信息")
public class PlanInformation extends BaseModel implements Serializable { public class PlanInformation extends BaseModel implements Serializable {
private static final long serialVersionUID = 949116362621294280L; private static final long serialVersionUID = 949116362621294280L;

@ -20,7 +20,7 @@ import java.io.Serializable;
*/ */
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Data @Data
@TableName(value = "project_legend") @TableName(value = "gysl_project_legend")
public class ProjectLegend extends BaseModel implements Serializable { public class ProjectLegend extends BaseModel implements Serializable {
@TableField("id") @TableField("id")

@ -8,6 +8,7 @@ import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.gysl.entity.baseModel.BaseModel; import com.ruoyi.gysl.entity.baseModel.BaseModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable; import java.io.Serializable;
@ -18,7 +19,8 @@ import java.io.Serializable;
* @since 2025-03-19 10:49:22 * @since 2025-03-19 10:49:22
*/ */
@TableName("project_other_info") @EqualsAndHashCode(callSuper = true)
@TableName("gysl_project_other_info")
@Data @Data
public class ProjectOtherInfo extends BaseModel implements Serializable { public class ProjectOtherInfo extends BaseModel implements Serializable {

@ -20,7 +20,7 @@ import java.io.Serializable;
*/ */
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Data @Data
@TableName("project_remark") @TableName("gysl_project_remark")
public class ProjectRemark extends BaseModel implements Serializable { public class ProjectRemark extends BaseModel implements Serializable {
@TableField("id") @TableField("id")

@ -21,7 +21,7 @@ import java.math.BigDecimal;
*/ */
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Data @Data
@TableName("qyrz_information") @TableName("gysl_qyrz_information")
public class QyrzInformation extends BaseEntity implements Serializable { public class QyrzInformation extends BaseEntity implements Serializable {
@TableField("id") @TableField("id")
@TableId(type = IdType.AUTO) @TableId(type = IdType.AUTO)

@ -20,7 +20,7 @@ import java.io.Serializable;
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@TableName("wysmx_information") @TableName("gysl_wysmx_information")
@ApiModel(value = "WysmxInformation", description = "五要素模型信息") @ApiModel(value = "WysmxInformation", description = "五要素模型信息")
public class WysmxInformation extends BaseModel implements Serializable { public class WysmxInformation extends BaseModel implements Serializable {
private static final long serialVersionUID = 285216252862855830L; private static final long serialVersionUID = 285216252862855830L;

@ -20,7 +20,7 @@ import java.io.Serializable;
*/ */
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Data @Data
@TableName("xfcygl") @TableName("gysl_xfcygl")
public class Xfcygl extends BaseModel implements Serializable { public class Xfcygl extends BaseModel implements Serializable {
@ApiModelProperty(value = "主键id") @ApiModelProperty(value = "主键id")

@ -22,7 +22,7 @@ import java.time.LocalDate;
* @since 2025-03-22 09:22:33 * @since 2025-03-22 09:22:33
*/ */
@Data @Data
@TableName("xmpjqd") @TableName("gysl_xmpjqd")
public class Xmpjqd implements Serializable { public class Xmpjqd implements Serializable {
@ApiModelProperty(value = "主键id") @ApiModelProperty(value = "主键id")
@TableField("id") @TableField("id")

@ -23,7 +23,7 @@ import java.time.LocalDate;
*/ */
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Data @Data
@TableName("xmxl") @TableName("gysl_xmxl")
public class Xmxl extends BaseModel implements Serializable { public class Xmxl extends BaseModel implements Serializable {
@TableField("id") @TableField("id")
@TableId(type = IdType.AUTO) @TableId(type = IdType.AUTO)

@ -21,7 +21,7 @@ import lombok.EqualsAndHashCode;
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@TableName("xmzsk") @TableName("gysl_xmzsk")
@ApiModel(value = "Xmzsk", description = "$tableInfo.comment") @ApiModel(value = "Xmzsk", description = "$tableInfo.comment")
public class Xmzsk extends BaseModel implements Serializable { public class Xmzsk extends BaseModel implements Serializable {
private static final long serialVersionUID = 442554812871200496L; private static final long serialVersionUID = 442554812871200496L;

@ -1,17 +0,0 @@
package com.ruoyi.gysl.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.gysl.entity.Notice;
/**
* (Notice)访
*
* @author makejava
* @since 2025-03-23 16:34:27
*/
public interface NoticeMapper extends BaseMapper<Notice> {
}

@ -1,9 +1,8 @@
package com.ruoyi.gysl.mapper; package com.ruoyi.gysl.mapper;
import com.ruoyi.docking.entity.SmartDeclaration;
import com.ruoyi.gysl.entity.BasicInformation; import com.ruoyi.gysl.entity.BasicInformation;
import com.ruoyi.gysl.entity.Notice;
import com.ruoyi.gysl.entity.stats.AllProjectResponse; import com.ruoyi.gysl.entity.stats.AllProjectResponse;
import com.ruoyi.gysl.entity.stats.RibbonResponse;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import java.util.List; import java.util.List;
@ -28,11 +27,11 @@ public interface QyStatsMapper {
/** /**
* *
*/ */
List<Notice> qyNotice(@Param("username") String username); List<SmartDeclaration> qyNotice(@Param("username") String username);
/** /**
* *
*/ */
int qyNoticeCount(String username); int qyNoticeCount(@Param("username")String username);
} }

@ -1,8 +1,9 @@
package com.ruoyi.gysl.mapper; package com.ruoyi.gysl.mapper;
import com.ruoyi.gysl.entity.Notice; import com.ruoyi.docking.entity.SmartDeclaration;
import com.ruoyi.gysl.entity.stats.AllProjectResponse; import com.ruoyi.gysl.entity.stats.AllProjectResponse;
import com.ruoyi.gysl.entity.stats.RibbonResponse; import com.ruoyi.gysl.entity.stats.RibbonResponse;
import org.apache.ibatis.annotations.Param;
import java.util.List; import java.util.List;
@ -31,11 +32,11 @@ public interface ZwStatsMapper {
/** /**
* *
*/ */
List<Notice> zwNotice(); List<SmartDeclaration> zwNotice(@Param("userId") Long userId);
/** /**
* *
*/ */
int zwNoticeCount(); int zwNoticeCount(@Param("userId") Long userId);
} }

@ -1,19 +1,10 @@
package com.ruoyi.gysl.regular; package com.ruoyi.gysl.regular;
import cn.hutool.core.util.CreditCodeUtil;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.docking.entity.SmartDeclaration; import com.ruoyi.docking.entity.SmartDeclaration;
import com.ruoyi.docking.entity.SmartReminders; import com.ruoyi.docking.entity.SmartReminders;
import com.ruoyi.docking.service.ProjectProgressService; import com.ruoyi.docking.service.*;
import com.ruoyi.docking.service.ProjectService;
import com.ruoyi.docking.service.SmartDeclarationService;
import com.ruoyi.docking.service.SmartRemindersService;
import com.ruoyi.gysl.entity.BasicInformation; import com.ruoyi.gysl.entity.BasicInformation;
import com.ruoyi.gysl.service.BasicInformationService; import com.ruoyi.gysl.service.BasicInformationService;
import com.ruoyi.gysl.service.NoticeService;
import com.ruoyi.system.mapper.SysUserMapper;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled; import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
@ -21,20 +12,18 @@ import javax.annotation.Resource;
import java.time.LocalDate; import java.time.LocalDate;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.stream.Collectors;
/** /**
* *
*
* @author du * @author du
* @since 2025/3/23 16:35 * @since 2025/3/23 16:35
*/ */
//@Configuration //@Configuration
//@EnableScheduling //@EnableScheduling
@Component @Component
public class NoticeTiming { public class NoticeTiming {
@Resource
private NoticeService noticeService;
@Resource @Resource
private ProjectProgressService projectProgressService; private ProjectProgressService projectProgressService;
@ -51,25 +40,21 @@ public class NoticeTiming {
@Resource @Resource
private BasicInformationService basicInformationService; private BasicInformationService basicInformationService;
/**
*
*/
@Resource @Resource
private SysUserMapper sysUserMapper; private UserService userService;
/** /**
* *
*/ */
// @Scheduled(cron = "0 0 0 1 * ?") @Scheduled(cron = "0 0 0 1 * ?")
// private void configureTasks() { private void configureTasks() {
// Notice notice = new Notice(); userService.getAllZwUser(LocalDate.now().getYear() +
// notice.setType(1); "年" +
// notice.setContent(LocalDate.now().getYear() + LocalDate.now().getMonth().getValue() +
// "年"+ "月" +
// LocalDate.now().getMonth().getValue()+ "项目进展未填写", null, null, null);
// "月"+ }
// "项目进展未填写");
// noticeService.save(notice);
// }
/** /**
* 12 * 12
@ -85,6 +70,7 @@ public class NoticeTiming {
// List<Project> pjList = projectService.djList(); // List<Project> pjList = projectService.djList();
// projectService.saveBatch(pjList); // projectService.saveBatch(pjList);
// } // }
/** /**
* *
*/ */
@ -94,7 +80,7 @@ public class NoticeTiming {
SmartReminders qy = smartRemindersService.getById(1); SmartReminders qy = smartRemindersService.getById(1);
//获取政务的不定时提醒 //获取政务的不定时提醒
SmartReminders zw = smartRemindersService.getById(2); SmartReminders zw = smartRemindersService.getById(2);
List<SmartDeclaration> smdList =new ArrayList<>(); List<SmartDeclaration> smdList = new ArrayList<>();
//获取所有的项目 //获取所有的项目
List<BasicInformation> list = basicInformationService.list(); List<BasicInformation> list = basicInformationService.list();
List<BasicInformation> list1 = basicInformationService.list(); List<BasicInformation> list1 = basicInformationService.list();
@ -102,7 +88,7 @@ public class NoticeTiming {
list.removeIf(x -> list.removeIf(x ->
!(LocalDate.now().equals(x.getEndTime().minusDays(qy.getDaysAdvance()))) !(LocalDate.now().equals(x.getEndTime().minusDays(qy.getDaysAdvance())))
); );
list.forEach(x->{ list.forEach(x -> {
SmartDeclaration smartDeclaration = new SmartDeclaration(); SmartDeclaration smartDeclaration = new SmartDeclaration();
smartDeclaration.setSmartRemindersId(1L); smartDeclaration.setSmartRemindersId(1L);
smartDeclaration.setTyshxydm(x.getTyshxydm()); smartDeclaration.setTyshxydm(x.getTyshxydm());
@ -113,20 +99,7 @@ public class NoticeTiming {
!(LocalDate.now().equals(x.getEndTime().minusDays(zw.getDaysAdvance()))) !(LocalDate.now().equals(x.getEndTime().minusDays(zw.getDaysAdvance())))
); );
//获取到所有的符合条件的政务用户 //获取到所有的符合条件的政务用户
list1.forEach(x -> userService.getAllZwUser(null, null, 2L, String.valueOf(x.getEndTime().atStartOfDay())));
List<SysUser> sysUsers = sysUserMapper.selectUserList(new SysUser());
List<SysUser> collect = sysUsers.stream().filter(x -> "0".equals(x.getDelFlag()) && "0".equals(x.getStatus()))
.filter(y -> !CreditCodeUtil.isCreditCode(y.getUserName()))
.collect(Collectors.toList());
list1.forEach(x->{
for (SysUser y : collect) {
SmartDeclaration sd = new SmartDeclaration();
sd.setAlertTime(x.getEndTime().atStartOfDay());
sd.setSmartRemindersId(2L);
sd.setZwId(y.getUserId());
smdList.add(sd);
}
});
smartDeclarationService.saveBatch(smdList); smartDeclarationService.saveBatch(smdList);
} }
} }

@ -1,15 +0,0 @@
package com.ruoyi.gysl.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.gysl.entity.Notice;
/**
* (Notice)
*
* @author makejava
* @since 2025-03-23 16:34:27
*/
public interface NoticeService extends IService<Notice> {
}

@ -1,9 +1,8 @@
package com.ruoyi.gysl.service; package com.ruoyi.gysl.service;
import com.ruoyi.docking.entity.SmartDeclaration;
import com.ruoyi.gysl.entity.BasicInformation; import com.ruoyi.gysl.entity.BasicInformation;
import com.ruoyi.gysl.entity.Notice;
import com.ruoyi.gysl.entity.stats.AllProjectResponse; import com.ruoyi.gysl.entity.stats.AllProjectResponse;
import com.ruoyi.gysl.entity.stats.RibbonResponse;
import java.util.List; import java.util.List;
@ -29,7 +28,7 @@ public interface QyStatsService {
/** /**
* *
*/ */
List<Notice> qyNotice(String username); List<SmartDeclaration> qyNotice(String username);
/** /**
* *

@ -1,6 +1,6 @@
package com.ruoyi.gysl.service; package com.ruoyi.gysl.service;
import com.ruoyi.gysl.entity.Notice; import com.ruoyi.docking.entity.SmartDeclaration;
import com.ruoyi.gysl.entity.stats.AllProjectResponse; import com.ruoyi.gysl.entity.stats.AllProjectResponse;
import com.ruoyi.gysl.entity.stats.RibbonResponse; import com.ruoyi.gysl.entity.stats.RibbonResponse;
@ -33,11 +33,11 @@ public interface ZwStatsService {
/** /**
* *
*/ */
List<Notice> zwNotice(); List<SmartDeclaration> zwNotice(Long userId);
/** /**
* *
*/ */
int zwNoticeCount(); int zwNoticeCount(Long userId);
} }

@ -5,6 +5,9 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.annotation.Excel; import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.exception.ServiceException; import com.ruoyi.common.exception.ServiceException;
import com.ruoyi.common.utils.SecurityUtils; import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.docking.entity.SmartDeclaration;
import com.ruoyi.docking.service.SmartDeclarationService;
import com.ruoyi.docking.service.UserService;
import com.ruoyi.gysl.entity.*; import com.ruoyi.gysl.entity.*;
import com.ruoyi.gysl.entity.request.AuditRequest; import com.ruoyi.gysl.entity.request.AuditRequest;
import com.ruoyi.gysl.entity.request.BasicInformationPageReq; import com.ruoyi.gysl.entity.request.BasicInformationPageReq;
@ -74,17 +77,19 @@ public class BasicInformationServiceImpl extends ServiceImpl<BasicInformationMap
*/ */
@Resource @Resource
private ProjectRemarkService projectRemarkService; private ProjectRemarkService projectRemarkService;
/**
*
*/
@Resource
private NoticeService noticeService;
/** /**
* *
*/ */
// @Resource // @Resource
// private ProjectMonthInfoService projectMonthInfoService; // private ProjectMonthInfoService projectMonthInfoService;
@Resource
private SmartDeclarationService smartDeclarationService;
@Resource
private UserService userService;
/** /**
* *
*/ */
@ -97,6 +102,12 @@ public class BasicInformationServiceImpl extends ServiceImpl<BasicInformationMap
@Resource @Resource
private ProjectOtherInfoService otherInfoService; private ProjectOtherInfoService otherInfoService;
/**
*
*/
@Resource
private EnterpriseService enterpriseService;
/** /**
* *
* *
@ -287,21 +298,21 @@ public class BasicInformationServiceImpl extends ServiceImpl<BasicInformationMap
.eq(ProjectOtherInfo::getXmId, req.getBasicInformation().getId()) .eq(ProjectOtherInfo::getXmId, req.getBasicInformation().getId())
.remove(); .remove();
otherInfoService.saveBatch(req.getProjectOtherInfos()); otherInfoService.saveBatch(req.getProjectOtherInfos());
Notice one = noticeService.lambdaQuery().eq(Notice::getXmId, req.getBasicInformation().getId()).one();
if (status == 2 && one != null) { if (status == 2) {
//修改消息 userService.getAllZwUser("关于" + req.getBasicInformation().getName() + "项目,待审核的通知",
one.setType(1); req.getBasicInformation().getId(),
one.setContent("关于" + req.getBasicInformation().getId() + "项目,待审核的通知"); null,
noticeService.updateById(one); null
);
} }
if (status == 3 && one != null) { if (status == 3) {
//修改消息 SmartDeclaration sd = new SmartDeclaration();
one.setType(2); sd.setTyshxydm((req.getBasicInformation().getTyshxydm()));
one.setContent("关于" + req.getBasicInformation().getId() + "项目,审核通过的通知"); sd.setProjectId(req.getBasicInformation().getId());
noticeService.updateById(one); sd.setContent("关于" + req.getBasicInformation().getName() + "项目,审核通过的通知");
smartDeclarationService.save(sd);
} }
return req.getBasicInformation().getId(); return req.getBasicInformation().getId();
} }

@ -1,19 +0,0 @@
package com.ruoyi.gysl.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.gysl.mapper.NoticeMapper;
import com.ruoyi.gysl.entity.Notice;
import com.ruoyi.gysl.service.NoticeService;
import org.springframework.stereotype.Service;
/**
* (Notice)
*
* @author makejava
* @since 2025-03-23 16:34:27
*/
@Service("noticeService")
public class NoticeServiceImpl extends ServiceImpl<NoticeMapper, Notice> implements NoticeService {
}

@ -1,13 +1,10 @@
package com.ruoyi.gysl.service.impl; package com.ruoyi.gysl.service.impl;
import com.ruoyi.docking.entity.SmartDeclaration;
import com.ruoyi.gysl.entity.BasicInformation; import com.ruoyi.gysl.entity.BasicInformation;
import com.ruoyi.gysl.entity.Notice;
import com.ruoyi.gysl.entity.stats.AllProjectResponse; import com.ruoyi.gysl.entity.stats.AllProjectResponse;
import com.ruoyi.gysl.entity.stats.RibbonResponse;
import com.ruoyi.gysl.mapper.QyStatsMapper; import com.ruoyi.gysl.mapper.QyStatsMapper;
import com.ruoyi.gysl.mapper.ZwStatsMapper;
import com.ruoyi.gysl.service.QyStatsService; import com.ruoyi.gysl.service.QyStatsService;
import com.ruoyi.gysl.service.ZwStatsService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import javax.annotation.Resource; import javax.annotation.Resource;
@ -45,7 +42,7 @@ public class QyStatsServiceImpl implements QyStatsService {
* *
*/ */
@Override @Override
public List<Notice> qyNotice(String username) { public List<SmartDeclaration> qyNotice(String username) {
return qyStatsMapper.qyNotice(username); return qyStatsMapper.qyNotice(username);
} }

@ -1,6 +1,6 @@
package com.ruoyi.gysl.service.impl; package com.ruoyi.gysl.service.impl;
import com.ruoyi.gysl.entity.Notice; import com.ruoyi.docking.entity.SmartDeclaration;
import com.ruoyi.gysl.entity.stats.AllProjectResponse; import com.ruoyi.gysl.entity.stats.AllProjectResponse;
import com.ruoyi.gysl.entity.stats.RibbonResponse; import com.ruoyi.gysl.entity.stats.RibbonResponse;
import com.ruoyi.gysl.mapper.ZwStatsMapper; import com.ruoyi.gysl.mapper.ZwStatsMapper;
@ -49,15 +49,15 @@ public class ZwStatsServiceImpl implements ZwStatsService {
* *
*/ */
@Override @Override
public List<Notice> zwNotice() { public List<SmartDeclaration> zwNotice(Long userId) {
return zwStatsMapper.zwNotice(); return zwStatsMapper.zwNotice(userId);
} }
/** /**
* *
*/ */
@Override @Override
public int zwNoticeCount() { public int zwNoticeCount(Long userId) {
return zwStatsMapper.zwNoticeCount(); return zwStatsMapper.zwNoticeCount(userId);
} }
} }

@ -47,9 +47,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
c.two_and_four_cg, c.two_and_four_cg,
c.four_yscg c.four_yscg
FROM FROM
basic_information a gysl_basic_information a
LEFT JOIN plan_information b ON a.id = b.xm_id LEFT JOIN gysl_plan_information b ON a.id = b.xm_id
LEFT JOIN building_information c ON a.id = c.xm_id LEFT JOIN gysl_building_information c ON a.id = c.xm_id
WHERE WHERE
a.id IN a.id IN
<foreach collection="idList" item="item" open="(" separator="," close=")"> <foreach collection="idList" item="item" open="(" separator="," close=")">
@ -58,7 +58,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select> </select>
<select id="page" resultType="com.ruoyi.gysl.entity.BasicInformation"> <select id="page" resultType="com.ruoyi.gysl.entity.BasicInformation">
SELECT a.*,b.zydmj SELECT a.*,b.zydmj
FROM basic_information a left join plan_information b on a.id = b.xm_id FROM gysl_basic_information a left join gysl_plan_information b on a.id = b.xm_id
<where> <where>
<if test="req.name != null and req.name != ''"> <if test="req.name != null and req.name != ''">
AND a.name like concat('%',#{req.name},'%') AND a.name like concat('%',#{req.name},'%')
@ -67,7 +67,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND a.xmfrdwxz like concat('%',#{req.xmfrdwxz},'%') AND a.xmfrdwxz like concat('%',#{req.xmfrdwxz},'%')
</if> </if>
<if test="req.name != null and req.name != ''"> <if test="req.name != null and req.name != ''">
AND a.xzfl = #{req.name} AND a.xzfl = #{req.xzfl}
</if> </if>
<if test="req.startTime != null"> <if test="req.startTime != null">
AND a.begain_time &gt;= #{req.startTime} <!-- 大于等于 --> AND a.begain_time &gt;= #{req.startTime} <!-- 大于等于 -->
@ -83,7 +83,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="projectList" resultType="com.ruoyi.gysl.entity.BasicInformation"> <select id="projectList" resultType="com.ruoyi.gysl.entity.BasicInformation">
SELECT a.*, SELECT a.*,
ROUND( IFNULL( SUM( b.zjzmj ), 0 ) / 10000, 2 ) AS zjzmj ROUND( IFNULL( SUM( b.zjzmj ), 0 ) / 10000, 2 ) AS zjzmj
FROM basic_information a left join plan_information b on a.id = b.xm_id FROM gysl_basic_information a left join gysl_plan_information b on a.id = b.xm_id
where a.longitude is not null and a.latitude is not null where a.longitude is not null and a.latitude is not null
</select> </select>
</mapper> </mapper>

@ -3,7 +3,7 @@
<mapper namespace="com.ruoyi.gysl.mapper.BuildingInformationMapper"> <mapper namespace="com.ruoyi.gysl.mapper.BuildingInformationMapper">
<select id="selectAll" resultType="com.ruoyi.gysl.entity.BuildingInformation"> <select id="selectAll" resultType="com.ruoyi.gysl.entity.BuildingInformation">
select * from building_information select * from gysl_building_information
<where> <where>
<if test="req.xmId != null and req.xmId != ''"> <if test="req.xmId != null and req.xmId != ''">
AND xm_id = #{req.xmId} AND xm_id = #{req.xmId}

@ -2,7 +2,7 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.gysl.mapper.DpclglMapper"> <mapper namespace="com.ruoyi.gysl.mapper.DpclglMapper">
<select id="page" resultType="com.ruoyi.gysl.entity.Dpclgl"> <select id="page" resultType="com.ruoyi.gysl.entity.Dpclgl">
select * from ml select * from gysl_ml
<where> <where>
<if test="req.fileTitle != null and req.fileTitle != '' "> <if test="req.fileTitle != null and req.fileTitle != '' ">
AND fileTitle like concat('%',#{req.fileTitle},'%') AND fileTitle like concat('%',#{req.fileTitle},'%')

@ -2,7 +2,7 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.gysl.mapper.EnterpriseMapper"> <mapper namespace="com.ruoyi.gysl.mapper.EnterpriseMapper">
<select id="page" resultType="com.ruoyi.gysl.entity.Enterprise"> <select id="page" resultType="com.ruoyi.gysl.entity.Enterprise">
select * from enterprise select * from gysl_enterprise
<where> <where>
<if test="req.xmId != null and req.xmId != ''"> <if test="req.xmId != null and req.xmId != ''">
AND xm_id = #{req.xmId} AND xm_id = #{req.xmId}

@ -2,7 +2,7 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.gysl.mapper.MlMapper"> <mapper namespace="com.ruoyi.gysl.mapper.MlMapper">
<select id="page" resultType="com.ruoyi.gysl.entity.Ml"> <select id="page" resultType="com.ruoyi.gysl.entity.Ml">
select * from ml select * from gysl_ml
<where> <where>
<if test="req.slmllb != null"> <if test="req.slmllb != null">
AND slmllb = #{req.slmllb} AND slmllb = #{req.slmllb}

@ -1,5 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.gysl.mapper.NoticeMapper">
</mapper>

@ -2,7 +2,7 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.gysl.mapper.PjpzMapper"> <mapper namespace="com.ruoyi.gysl.mapper.PjpzMapper">
<select id="page" resultType="com.ruoyi.gysl.entity.Pjpz"> <select id="page" resultType="com.ruoyi.gysl.entity.Pjpz">
select * from pjpz select * from gysl_pjpz
<where> <where>
<if test="req.pjys != null and req.pjys != ''"> <if test="req.pjys != null and req.pjys != ''">
AND pjys like concat('%',#{req.pjys},'%') AND pjys like concat('%',#{req.pjys},'%')

@ -7,7 +7,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectAll" resultType="com.ruoyi.gysl.entity.PlanInformation"> <select id="selectAll" resultType="com.ruoyi.gysl.entity.PlanInformation">
SELECT * SELECT *
FROM plan_information FROM gysl_plan_information
<where> <where>
<if test="req.xmId != null and req.xmId != ''"> <if test="req.xmId != null and req.xmId != ''">
AND xm_id = #{req.xmId} AND xm_id = #{req.xmId}

@ -3,7 +3,7 @@
<mapper namespace="com.ruoyi.gysl.mapper.ProjectLegendMapper"> <mapper namespace="com.ruoyi.gysl.mapper.ProjectLegendMapper">
<select id="page" resultType="com.ruoyi.gysl.entity.ProjectLegend"> <select id="page" resultType="com.ruoyi.gysl.entity.ProjectLegend">
select * from project_legend select * from gysl_project_legend
<where> <where>
<if test="req.xmId != null and req.xmId != ''"> <if test="req.xmId != null and req.xmId != ''">
AND xm_id = #{req.xmId} AND xm_id = #{req.xmId}

@ -1,99 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.docking.dao.ProjectMapper"> <mapper namespace="com.ruoyi.docking.mapper.ProjectMapper">
<resultMap type="com.ruoyi.docking.entity.Project" id="ProjectMap">
<result property="projectId" column="project_id" jdbcType="INTEGER"/>
<result property="projectName" column="project_name" jdbcType="VARCHAR"/>
<result property="companyId" column="company_id" jdbcType="VARCHAR"/>
<result property="companyName" column="company_name" jdbcType="VARCHAR"/>
<result property="companyTime" column="company_time" jdbcType="VARCHAR"/>
<result property="agentCompanyId" column="agent_company_id" jdbcType="VARCHAR"/>
<result property="agentCompanyName" column="agent_company_name" jdbcType="VARCHAR"/>
<result property="contactName" column="contact_name" jdbcType="VARCHAR"/>
<result property="contactPhone" column="contact_phone" jdbcType="VARCHAR"/>
<result property="projectType" column="project_type" jdbcType="VARCHAR"/>
<result property="organizationId" column="organization_id" jdbcType="VARCHAR"/>
<result property="subOrganizationId" column="sub_organization_id" jdbcType="VARCHAR"/>
<result property="zsOrganizationId" column="zs_organization_id" jdbcType="VARCHAR"/>
<result property="typeId" column="type_id" jdbcType="VARCHAR"/>
<result property="secondTypeId" column="second_type_id" jdbcType="VARCHAR"/>
<result property="thirdTypeId" column="third_type_id" jdbcType="VARCHAR"/>
<result property="ssTypeId" column="ss_type_id" jdbcType="VARCHAR"/>
<result property="areaId" column="area_id" jdbcType="VARCHAR"/>
<result property="address" column="address" jdbcType="VARCHAR"/>
<result property="lat" column="lat" jdbcType="VARCHAR"/>
<result property="lng" column="lng" jdbcType="VARCHAR"/>
<result property="actualStartTime" column="actual_start_time" jdbcType="VARCHAR"/>
<result property="actualEndTime" column="actual_end_time" jdbcType="VARCHAR"/>
<result property="jgysStatus" column="jgys_status" jdbcType="VARCHAR"/>
<result property="tctyStatus" column="tcty_status" jdbcType="VARCHAR"/>
<result property="operationTime" column="operation_time" jdbcType="VARCHAR"/>
<result property="investmentType" column="investment_type" jdbcType="VARCHAR"/>
<result property="investmentEntity" column="investment_entity" jdbcType="VARCHAR"/>
<result property="investmentEntityType" column="investment_entity_type" jdbcType="VARCHAR"/>
<result property="thumbnail" column="thumbnail" jdbcType="VARCHAR"/>
<result property="remark" column="remark" jdbcType="VARCHAR"/>
<result property="status" column="status" jdbcType="VARCHAR"/>
<result property="reviewStep" column="review_step" jdbcType="INTEGER"/>
<result property="reviewObject" column="review_object" jdbcType="INTEGER"/>
<result property="reviewResult" column="review_result" jdbcType="INTEGER"/>
<result property="progressContent" column="progress_content" jdbcType="VARCHAR"/>
<result property="progressUpdateAt" column="progress_update_at" jdbcType="INTEGER"/>
<result property="extProjectId" column="ext_project_id" jdbcType="VARCHAR"/>
<result property="stzProjectId" column="stz_project_id" jdbcType="VARCHAR"/>
<result property="sgxkProjectId" column="sgxk_project_id" jdbcType="VARCHAR"/>
<result property="ydghProjectId" column="ydgh_project_id" jdbcType="INTEGER"/>
<result property="gcghProjectId" column="gcgh_project_id" jdbcType="INTEGER"/>
<result property="hpProjectId" column="hp_project_id" jdbcType="INTEGER"/>
<result property="genProjectId" column="gen_project_id" jdbcType="VARCHAR"/>
<result property="landId" column="land_id" jdbcType="VARCHAR"/>
<result property="zdxmProjectId" column="zdxm_project_id" jdbcType="VARCHAR"/>
<result property="ybjbProjectId" column="ybjb_project_id" jdbcType="VARCHAR"/>
<result property="landingTime" column="landing_time" jdbcType="VARCHAR"/>
<result property="landing" column="landing" jdbcType="INTEGER"/>
<result property="dimensionIds" column="dimension_ids" jdbcType="VARCHAR"/>
<result property="headquarterIds" column="headquarter_ids" jdbcType="VARCHAR"/>
<result property="jgysbaId" column="jgysba_id" jdbcType="INTEGER"/>
<result property="npId" column="np_id" jdbcType="INTEGER"/>
<result property="xfysId" column="xfys_id" jdbcType="INTEGER"/>
<result property="isDisabled" column="is_disabled" jdbcType="INTEGER"/>
<result property="isStats" column="is_stats" jdbcType="INTEGER"/>
<result property="isDraft" column="is_draft" jdbcType="INTEGER"/>
<result property="createdAt" column="created_at" jdbcType="INTEGER"/>
<result property="updatedAt" column="updated_at" jdbcType="INTEGER"/>
<result property="createdBy" column="created_by" jdbcType="VARCHAR"/>
<result property="isDeleted" column="is_deleted" jdbcType="INTEGER"/>
<result property="landNo" column="land_no" jdbcType="VARCHAR"/>
<result property="landUsage" column="land_usage" jdbcType="VARCHAR"/>
<result property="landArea" column="land_area" jdbcType="VARCHAR"/>
<result property="landAddress" column="land_address" jdbcType="VARCHAR"/>
<result property="landStartDate" column="land_start_date" jdbcType="VARCHAR"/>
<result property="landEndDate" column="land_end_date" jdbcType="VARCHAR"/>
<result property="landObligeeName" column="land_obligee_name" jdbcType="VARCHAR"/>
<result property="landApproveTime" column="land_approve_time" jdbcType="VARCHAR"/>
<result property="homeDisplay" column="home_display" jdbcType="INTEGER"/>
<result property="installment" column="installment" jdbcType="INTEGER"/>
<result property="installmentNum" column="installment_num" jdbcType="INTEGER"/>
</resultMap>
<!-- 批量插入 -->
<insert id="insertBatch" keyProperty="projectId" useGeneratedKeys="true">
insert into gysl.project(project_namecompany_idcompany_namecompany_timeagent_company_idagent_company_namecontact_namecontact_phoneproject_typeorganization_idsub_organization_idzs_organization_idtype_idsecond_type_idthird_type_idss_type_idarea_idaddresslatlngactual_start_timeactual_end_timejgys_statustcty_statusoperation_timeinvestment_typeinvestment_entityinvestment_entity_typethumbnailremarkstatusreview_stepreview_objectreview_resultprogress_contentprogress_update_atext_project_idstz_project_idsgxk_project_idydgh_project_idgcgh_project_idhp_project_idgen_project_idland_idzdxm_project_idybjb_project_idlanding_timelandingdimension_idsheadquarter_idsjgysba_idnp_idxfys_idis_disabledis_statsis_draftcreated_atupdated_atcreated_byis_deletedland_noland_usageland_arealand_addressland_start_dateland_end_dateland_obligee_nameland_approve_timehome_displayinstallmentinstallment_num)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.projectName}#{entity.companyId}#{entity.companyName}#{entity.companyTime}#{entity.agentCompanyId}#{entity.agentCompanyName}#{entity.contactName}#{entity.contactPhone}#{entity.projectType}#{entity.organizationId}#{entity.subOrganizationId}#{entity.zsOrganizationId}#{entity.typeId}#{entity.secondTypeId}#{entity.thirdTypeId}#{entity.ssTypeId}#{entity.areaId}#{entity.address}#{entity.lat}#{entity.lng}#{entity.actualStartTime}#{entity.actualEndTime}#{entity.jgysStatus}#{entity.tctyStatus}#{entity.operationTime}#{entity.investmentType}#{entity.investmentEntity}#{entity.investmentEntityType}#{entity.thumbnail}#{entity.remark}#{entity.status}#{entity.reviewStep}#{entity.reviewObject}#{entity.reviewResult}#{entity.progressContent}#{entity.progressUpdateAt}#{entity.extProjectId}#{entity.stzProjectId}#{entity.sgxkProjectId}#{entity.ydghProjectId}#{entity.gcghProjectId}#{entity.hpProjectId}#{entity.genProjectId}#{entity.landId}#{entity.zdxmProjectId}#{entity.ybjbProjectId}#{entity.landingTime}#{entity.landing}#{entity.dimensionIds}#{entity.headquarterIds}#{entity.jgysbaId}#{entity.npId}#{entity.xfysId}#{entity.isDisabled}#{entity.isStats}#{entity.isDraft}#{entity.createdAt}#{entity.updatedAt}#{entity.createdBy}#{entity.isDeleted}#{entity.landNo}#{entity.landUsage}#{entity.landArea}#{entity.landAddress}#{entity.landStartDate}#{entity.landEndDate}#{entity.landObligeeName}#{entity.landApproveTime}#{entity.homeDisplay}#{entity.installment}#{entity.installmentNum})
</foreach>
</insert>
<!-- 批量插入或按主键更新 -->
<insert id="insertOrUpdateBatch" keyProperty="projectId" useGeneratedKeys="true">
insert into gysl.project(project_namecompany_idcompany_namecompany_timeagent_company_idagent_company_namecontact_namecontact_phoneproject_typeorganization_idsub_organization_idzs_organization_idtype_idsecond_type_idthird_type_idss_type_idarea_idaddresslatlngactual_start_timeactual_end_timejgys_statustcty_statusoperation_timeinvestment_typeinvestment_entityinvestment_entity_typethumbnailremarkstatusreview_stepreview_objectreview_resultprogress_contentprogress_update_atext_project_idstz_project_idsgxk_project_idydgh_project_idgcgh_project_idhp_project_idgen_project_idland_idzdxm_project_idybjb_project_idlanding_timelandingdimension_idsheadquarter_idsjgysba_idnp_idxfys_idis_disabledis_statsis_draftcreated_atupdated_atcreated_byis_deletedland_noland_usageland_arealand_addressland_start_dateland_end_dateland_obligee_nameland_approve_timehome_displayinstallmentinstallment_num)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.projectName}#{entity.companyId}#{entity.companyName}#{entity.companyTime}#{entity.agentCompanyId}#{entity.agentCompanyName}#{entity.contactName}#{entity.contactPhone}#{entity.projectType}#{entity.organizationId}#{entity.subOrganizationId}#{entity.zsOrganizationId}#{entity.typeId}#{entity.secondTypeId}#{entity.thirdTypeId}#{entity.ssTypeId}#{entity.areaId}#{entity.address}#{entity.lat}#{entity.lng}#{entity.actualStartTime}#{entity.actualEndTime}#{entity.jgysStatus}#{entity.tctyStatus}#{entity.operationTime}#{entity.investmentType}#{entity.investmentEntity}#{entity.investmentEntityType}#{entity.thumbnail}#{entity.remark}#{entity.status}#{entity.reviewStep}#{entity.reviewObject}#{entity.reviewResult}#{entity.progressContent}#{entity.progressUpdateAt}#{entity.extProjectId}#{entity.stzProjectId}#{entity.sgxkProjectId}#{entity.ydghProjectId}#{entity.gcghProjectId}#{entity.hpProjectId}#{entity.genProjectId}#{entity.landId}#{entity.zdxmProjectId}#{entity.ybjbProjectId}#{entity.landingTime}#{entity.landing}#{entity.dimensionIds}#{entity.headquarterIds}#{entity.jgysbaId}#{entity.npId}#{entity.xfysId}#{entity.isDisabled}#{entity.isStats}#{entity.isDraft}#{entity.createdAt}#{entity.updatedAt}#{entity.createdBy}#{entity.isDeleted}#{entity.landNo}#{entity.landUsage}#{entity.landArea}#{entity.landAddress}#{entity.landStartDate}#{entity.landEndDate}#{entity.landObligeeName}#{entity.landApproveTime}#{entity.homeDisplay}#{entity.installment}#{entity.installmentNum})
</foreach>
on duplicate key update
project_name = values(project_name) company_id = values(company_id) company_name = values(company_name) company_time = values(company_time) agent_company_id = values(agent_company_id) agent_company_name = values(agent_company_name) contact_name = values(contact_name) contact_phone = values(contact_phone) project_type = values(project_type) organization_id = values(organization_id) sub_organization_id = values(sub_organization_id) zs_organization_id = values(zs_organization_id) type_id = values(type_id) second_type_id = values(second_type_id) third_type_id = values(third_type_id) ss_type_id = values(ss_type_id) area_id = values(area_id) address = values(address) lat = values(lat) lng = values(lng) actual_start_time = values(actual_start_time) actual_end_time = values(actual_end_time) jgys_status = values(jgys_status) tcty_status = values(tcty_status) operation_time = values(operation_time) investment_type = values(investment_type) investment_entity = values(investment_entity) investment_entity_type = values(investment_entity_type) thumbnail = values(thumbnail) remark = values(remark) status = values(status) review_step = values(review_step) review_object = values(review_object) review_result = values(review_result) progress_content = values(progress_content) progress_update_at = values(progress_update_at) ext_project_id = values(ext_project_id) stz_project_id = values(stz_project_id) sgxk_project_id = values(sgxk_project_id) ydgh_project_id = values(ydgh_project_id) gcgh_project_id = values(gcgh_project_id) hp_project_id = values(hp_project_id) gen_project_id = values(gen_project_id) land_id = values(land_id) zdxm_project_id = values(zdxm_project_id) ybjb_project_id = values(ybjb_project_id) landing_time = values(landing_time) landing = values(landing) dimension_ids = values(dimension_ids) headquarter_ids = values(headquarter_ids) jgysba_id = values(jgysba_id) np_id = values(np_id) xfys_id = values(xfys_id) is_disabled = values(is_disabled) is_stats = values(is_stats) is_draft = values(is_draft) created_at = values(created_at) updated_at = values(updated_at) created_by = values(created_by) is_deleted = values(is_deleted) land_no = values(land_no) land_usage = values(land_usage) land_area = values(land_area) land_address = values(land_address) land_start_date = values(land_start_date) land_end_date = values(land_end_date) land_obligee_name = values(land_obligee_name) land_approve_time = values(land_approve_time) home_display = values(home_display) installment = values(installment) installment_num = values(installment_num) </insert>
</mapper> </mapper>

@ -3,7 +3,7 @@
<mapper namespace="com.ruoyi.gysl.mapper.ProjectOtherInfoMapper"> <mapper namespace="com.ruoyi.gysl.mapper.ProjectOtherInfoMapper">
<select id="searchId" resultType="com.ruoyi.gysl.entity.ProjectOtherInfo"> <select id="searchId" resultType="com.ruoyi.gysl.entity.ProjectOtherInfo">
select * from project_other_info select * from gysl_project_other_info
where xm_id = #{req.xmId} where xm_id = #{req.xmId}
</select> </select>
</mapper> </mapper>

@ -7,7 +7,7 @@
FROM FROM
project_progress a project_progress a
LEFT JOIN project b ON a.project_id = b.project_id LEFT JOIN project b ON a.project_id = b.project_id
LEFT JOIN basic_information c ON b.company_id = c.tyshxydm LEFT JOIN gysl_basic_information c ON b.company_id = c.tyshxydm
where c.id = #{req.xmId} where c.id = #{req.xmId}
</select> </select>
</mapper> </mapper>

@ -2,7 +2,7 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.gysl.mapper.ProjectRemarkMapper"> <mapper namespace="com.ruoyi.gysl.mapper.ProjectRemarkMapper">
<select id="list" resultType="com.ruoyi.gysl.entity.ProjectRemark"> <select id="list" resultType="com.ruoyi.gysl.entity.ProjectRemark">
select * from project_remark select * from gysl_project_remark
<where> <where>
<if test="req.xmId != null and req.xmId != ''"> <if test="req.xmId != null and req.xmId != ''">
AND xm_id = #{req.xmId} AND xm_id = #{req.xmId}

@ -22,20 +22,21 @@
SUM(CASE WHEN a.xzfl = 2 AND YEAR ( a.create_time ) = YEAR ( CURRENT_DATE ()) THEN 1 ELSE 0 END ), SUM(CASE WHEN a.xzfl = 2 AND YEAR ( a.create_time ) = YEAR ( CURRENT_DATE ()) THEN 1 ELSE 0 END ),
0 0
) AS currentYearBuilding2 ) AS currentYearBuilding2
FROM basic_information a FROM gysl_basic_information a
LEFT JOIN plan_information b ON a.id = b.xm_id LEFT JOIN gysl_plan_information b ON a.id = b.xm_id
where a.tyshxydm = #{userName} where a.tyshxydm = #{userName}
</select> </select>
<select id="relationalProject" resultType="com.ruoyi.gysl.entity.BasicInformation"> <select id="relationalProject" resultType="com.ruoyi.gysl.entity.BasicInformation">
</select> </select>
<select id="qyNotice" resultType="com.ruoyi.gysl.entity.Notice"> <select id="qyNotice" resultType="com.ruoyi.docking.entity.SmartDeclaration">
select * from notice select * from gysl_smart_declaration
where tyshxydm = #{username} and type = 2 where tyshxydm = #{username} and is_read = 1
</select> </select>
<select id="qyNoticeCount" resultType="java.lang.Integer"> <select id="qyNoticeCount" resultType="java.lang.Integer">
select count(*) from notice select count(*) from gysl_smart_declaration
where tyshxydm = #{username} and type = 2 where tyshxydm = #{username} and is_read = 1
</select> </select>
</mapper> </mapper>

@ -2,7 +2,7 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.gysl.mapper.QyrzInformationMapper"> <mapper namespace="com.ruoyi.gysl.mapper.QyrzInformationMapper">
<select id="selectAll" resultType="com.ruoyi.gysl.entity.QyrzInformation"> <select id="selectAll" resultType="com.ruoyi.gysl.entity.QyrzInformation">
select * from qyrz_information select * from gysl_qyrz_information
<where> <where>
<if test="req.xmId != null and req.xmId != ''"> <if test="req.xmId != null and req.xmId != ''">
AND xm_id = #{req.xmId} AND xm_id = #{req.xmId}

@ -2,33 +2,6 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.docking.mapper.SmartDeclarationMapper"> <mapper namespace="com.ruoyi.docking.mapper.SmartDeclarationMapper">
<resultMap type="com.ruoyi.docking.entity.SmartDeclaration" id="SmartDeclarationMap">
<result property="id" column="id" jdbcType="INTEGER"/>
<result property="smartRemindersId" column="smart_reminders_id" jdbcType="INTEGER"/>
<result property="isRead" column="is_read" jdbcType="INTEGER"/>
<result property="tyshxydm" column="tyshxydm" jdbcType="VARCHAR"/>
<result property="projectId" column="project_id" jdbcType="INTEGER"/>
<result property="alertTime" column="alert_time" jdbcType="TIMESTAMP"/>
<result property="zwId" column="zw_id" jdbcType="INTEGER"/>
</resultMap>
<!-- 批量插入 -->
<insert id="insertBatch" keyProperty="id" useGeneratedKeys="true">
insert into gysl.smart_declaration(smart_reminders_idis_readtyshxydmproject_idalert_timezw_id)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.smartRemindersId}#{entity.isRead}#{entity.tyshxydm}#{entity.projectId}#{entity.alertTime}#{entity.zwId})
</foreach>
</insert>
<!-- 批量插入或按主键更新 -->
<insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
insert into gysl.smart_declaration(smart_reminders_idis_readtyshxydmproject_idalert_timezw_id)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.smartRemindersId}#{entity.isRead}#{entity.tyshxydm}#{entity.projectId}#{entity.alertTime}#{entity.zwId})
</foreach>
on duplicate key update
smart_reminders_id = values(smart_reminders_id) is_read = values(is_read) tyshxydm = values(tyshxydm) project_id = values(project_id) alert_time = values(alert_time) zw_id = values(zw_id) </insert>
</mapper> </mapper>

@ -3,9 +3,10 @@
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.docking.mapper.SmartRemindersMapper"> <mapper namespace="com.ruoyi.docking.mapper.SmartRemindersMapper">
<select id="page" resultType="com.ruoyi.docking.entity.SmartReminders"> <select id="page" resultType="com.ruoyi.docking.entity.SmartReminders">
select a.* select a.*
from smart_reminders a from gysl_smart_reminders a
<where> <where>
<if test="req.rulesName != null and req.rulesName != '' "> <if test="req.rulesName != null and req.rulesName != '' ">
and a.rules_name = #{req.rulesName} and a.rules_name = #{req.rulesName}
@ -22,4 +23,7 @@
<select id="selectJobSmart" resultType="com.ruoyi.docking.entity.request.JAddJobSmart"> <select id="selectJobSmart" resultType="com.ruoyi.docking.entity.request.JAddJobSmart">
select * from job_smart where smart_id = #{id} select * from job_smart where smart_id = #{id}
</select> </select>
<update id="isRead">
update smart_declaration set is_read = 2 where id = #{id}
</update>
</mapper> </mapper>

@ -2,7 +2,7 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.gysl.mapper.WysmxInformationMapper"> <mapper namespace="com.ruoyi.gysl.mapper.WysmxInformationMapper">
<select id="list" resultType="com.ruoyi.gysl.entity.WysmxInformation"> <select id="list" resultType="com.ruoyi.gysl.entity.WysmxInformation">
select * from wysmx_information select * from gysl_wysmx_information
<where> <where>
<if test="req.xmId != null and req.xmId != ''"> <if test="req.xmId != null and req.xmId != ''">
AND xm_id = #{req.xmId} AND xm_id = #{req.xmId}

@ -2,6 +2,6 @@
<!DOCTYPE mapper <!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.gysl.mapper.WysmxInformationDao"> <mapper namespace="com.ruoyi.gysl.mapper.WysmxInformationMapper">
</mapper> </mapper>

@ -2,7 +2,7 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.gysl.mapper.XfcyglMapper"> <mapper namespace="com.ruoyi.gysl.mapper.XfcyglMapper">
<select id="page" resultType="com.ruoyi.gysl.entity.Xfcygl"> <select id="page" resultType="com.ruoyi.gysl.entity.Xfcygl">
select * from xfcygl select * from gysl_xfcygl
<where> <where>
<if test="req.cylb != null and req.cylb!= ''"> <if test="req.cylb != null and req.cylb!= ''">
AND cylb like concat('%',#{req.cylb},'%') AND cylb like concat('%',#{req.cylb},'%')

@ -12,7 +12,7 @@
a.xmfrdwxz, a.xmfrdwxz,
a.ztze, a.ztze,
COUNT(*) OVER () AS count COUNT(*) OVER () AS count
FROM basic_information a FROM gysl_basic_information a
<where> <where>
<if test="req.xzfl != null"> <if test="req.xzfl != null">
AND xzfl = #{req.xzfl} AND xzfl = #{req.xzfl}
@ -50,7 +50,7 @@
a.ztze, a.ztze,
COUNT(*) OVER () AS total_count COUNT(*) OVER () AS total_count
FROM FROM
basic_information a gysl_basic_information a
GROUP BY GROUP BY
a.id a.id
) c ) c
@ -60,7 +60,7 @@
<select id="oneXmhx" resultType="com.ruoyi.gysl.entity.response.XmhxDetail.XmhxDetail"> <select id="oneXmhx" resultType="com.ruoyi.gysl.entity.response.XmhxDetail.XmhxDetail">
select ztze as pjpm, select ztze as pjpm,
'总投资额' as ysmc '总投资额' as ysmc
from basic_information from gysl_basic_information
where id = #{id} where id = #{id}
</select> </select>
<select id="zwsXmhx" resultType="com.ruoyi.gysl.entity.response.XmhxDetail.XmhxDetail"> <select id="zwsXmhx" resultType="com.ruoyi.gysl.entity.response.XmhxDetail.XmhxDetail">
@ -71,7 +71,7 @@
ztze, ztze,
ROW_NUMBER() OVER (ORDER BY ztze) AS row_num, ROW_NUMBER() OVER (ORDER BY ztze) AS row_num,
COUNT(*) OVER () AS total_rows COUNT(*) OVER () AS total_rows
FROM basic_information FROM gysl_basic_information
) AS ranked ) AS ranked
WHERE row_num IN ( WHERE row_num IN (
(total_rows + 1) DIV 2, (total_rows + 1) DIV 2,
@ -81,7 +81,7 @@
<select id="maxXmhx" resultType="com.ruoyi.gysl.entity.response.XmhxDetail.XmhxDetail"> <select id="maxXmhx" resultType="com.ruoyi.gysl.entity.response.XmhxDetail.XmhxDetail">
select MAX(ztze) as pjpm, select MAX(ztze) as pjpm,
'总投资额' as ysmc '总投资额' as ysmc
from basic_information from gysl_basic_information
</select> </select>
</mapper> </mapper>

@ -2,7 +2,7 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.gysl.mapper.XmxlMapper"> <mapper namespace="com.ruoyi.gysl.mapper.XmxlMapper">
<select id="list" resultType="com.ruoyi.gysl.entity.Xmxl"> <select id="list" resultType="com.ruoyi.gysl.entity.Xmxl">
select * from xmxl select * from gysl_xmxl
<where> <where>
<if test="req.xmId != null and req.xmId != ''"> <if test="req.xmId != null and req.xmId != ''">
AND xm_id = #{req.xmId} AND xm_id = #{req.xmId}

@ -2,7 +2,7 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.gysl.mapper.XmzskMapper"> <mapper namespace="com.ruoyi.gysl.mapper.XmzskMapper">
<select id="page" resultType="com.ruoyi.gysl.entity.Xmzsk"> <select id="page" resultType="com.ruoyi.gysl.entity.Xmzsk">
select * from xmzsk select * from gysl_xmzsk
<where> <where>
<if test="req.name != null and req.name != ''"> <if test="req.name != null and req.name != ''">
AND name like concat('%',#{req.name},'%') AND name like concat('%',#{req.name},'%')

@ -22,30 +22,31 @@
SUM(CASE WHEN a.xzfl = 2 AND YEAR ( a.create_time ) = YEAR ( CURRENT_DATE ()) THEN 1 ELSE 0 END ), SUM(CASE WHEN a.xzfl = 2 AND YEAR ( a.create_time ) = YEAR ( CURRENT_DATE ()) THEN 1 ELSE 0 END ),
0 0
) AS currentYearBuilding2 ) AS currentYearBuilding2
FROM basic_information a FROM gysl_basic_information a
LEFT JOIN plan_information b ON a.id = b.xm_id LEFT JOIN gysl_plan_information b ON a.id = b.xm_id
</select> </select>
<select id="ribbon" resultType="com.ruoyi.gysl.entity.stats.RibbonResponse"> <select id="ribbon" resultType="com.ruoyi.gysl.entity.stats.RibbonResponse">
SELECT count(*) AS count,ssgnq SELECT count(*) AS count,ssgnq
FROM FROM
basic_information gysl_basic_information
where ssgnq is not null
GROUP BY GROUP BY
ssgnq ssgnq
</select> </select>
<select id="investors" resultType="com.ruoyi.gysl.entity.stats.RibbonResponse"> <select id="investors" resultType="com.ruoyi.gysl.entity.stats.RibbonResponse">
SELECT count(*) AS count,nature SELECT count(*) AS count,nature
FROM FROM
basic_information gysl_basic_information
GROUP BY GROUP BY
nature nature
</select> </select>
<select id="zwNotice" resultType="com.ruoyi.gysl.entity.Notice"> <select id="zwNotice" resultType="com.ruoyi.docking.entity.SmartDeclaration">
select * from notice select * from gysl_smart_declaration
where type = 1 and is_read = 0 where zw_id = #{userId} and is_read = 1
</select> </select>
<select id="zwNoticeCount" resultType="java.lang.Integer"> <select id="zwNoticeCount" resultType="java.lang.Integer">
select count(*) from notice select count(*) from gysl_smart_declaration
where type = 1 and is_read = 0 where zw_id = #{userId} and is_read = 1
</select> </select>
</mapper> </mapper>

Loading…
Cancel
Save