Browse Source

执法端-新增预告企业联系电话可以修改

dev-V1.10.2-temp
niujiyi 3 months ago
parent
commit
97ec328a91
  1. 3
      script/sql/zfjd-refactoring-v1/其他/njy/njy.sql
  2. 15
      zdxt-modules/zdxt-enforcement-code/src/main/java/com/zdxt/enforcementcode/service/impl/EfcodeCpNoticeServiceImpl.java

3
script/sql/zfjd-refactoring-v1/其他/njy/njy.sql

@ -13,3 +13,6 @@ ALTER TABLE siq_msg_info ADD error_msg varchar(500) NULL COMMENT '错误信息';
ALTER TABLE efcode_cp_task ADD is_read INT DEFAULT 0 NULL COMMENT '是否已读 0:未读 1:已读'; ALTER TABLE efcode_cp_task ADD is_read INT DEFAULT 0 NULL COMMENT '是否已读 0:未读 1:已读';
ALTER TABLE efcode_cp_reserve ADD is_read INT DEFAULT 0 NULL COMMENT '预约是否已读 0:未读 1:已读'; ALTER TABLE efcode_cp_reserve ADD is_read INT DEFAULT 0 NULL COMMENT '预约是否已读 0:未读 1:已读';
ALTER TABLE efcode_cp_notice ADD is_read INT DEFAULT 0 NULL COMMENT '预告是否已读 0:未读 1:已读'; ALTER TABLE efcode_cp_notice ADD is_read INT DEFAULT 0 NULL COMMENT '预告是否已读 0:未读 1:已读';
ALTER TABLE enterprise_information MODIFY COLUMN enterprise_tel varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '企业联系电话';

15
zdxt-modules/zdxt-enforcement-code/src/main/java/com/zdxt/enforcementcode/service/impl/EfcodeCpNoticeServiceImpl.java

@ -2,9 +2,12 @@ package com.zdxt.enforcementcode.service.impl;
import cn.hutool.core.util.IdUtil; import cn.hutool.core.util.IdUtil;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.zdxt.enforcementcode.common.commonenum.MsgSourceTypeEnum; import com.zdxt.enforcementcode.common.commonenum.MsgSourceTypeEnum;
import com.zdxt.enforcementcode.domain.EnterpriseInformation;
import com.zdxt.enforcementcode.domain.bean.EnforcementEducationServices; import com.zdxt.enforcementcode.domain.bean.EnforcementEducationServices;
import com.zdxt.enforcementcode.domain.bo.thirdparty.YuGaoMsgParamBo; import com.zdxt.enforcementcode.domain.bo.thirdparty.YuGaoMsgParamBo;
import com.zdxt.enforcementcode.mapper.EnterpriseInformationMapper;
import com.zdxt.enforcementcode.service.ISysMessageViewLogService; import com.zdxt.enforcementcode.service.ISysMessageViewLogService;
import com.zdxt.enforcementcode.service.thirdparty.ISIQService; import com.zdxt.enforcementcode.service.thirdparty.ISIQService;
import org.dromara.common.core.utils.MapstructUtils; import org.dromara.common.core.utils.MapstructUtils;
@ -47,6 +50,7 @@ public class EfcodeCpNoticeServiceImpl implements IEfcodeCpNoticeService {
private final EfcodeCpNoticeMessageMapper noticeMessageMapper; private final EfcodeCpNoticeMessageMapper noticeMessageMapper;
private final ISysMessageViewLogService sysMessageViewLogService; private final ISysMessageViewLogService sysMessageViewLogService;
private final ISIQService siqService; private final ISIQService siqService;
private final EnterpriseInformationMapper enterpriseInformationMapper;
/** /**
* 查询行政执法检查计划-预告 * 查询行政执法检查计划-预告
*/ */
@ -143,6 +147,11 @@ public class EfcodeCpNoticeServiceImpl implements IEfcodeCpNoticeService {
getSendYuGaoMsg(entity); getSendYuGaoMsg(entity);
} }
//同步更新企业电话
UpdateWrapper<EnterpriseInformation> updateWrapper = new UpdateWrapper<>();
updateWrapper.eq("enterprise_number",entity.getEnterpriseNumber());
updateWrapper.set("enterprise_tel",entity.getContactPhone());
enterpriseInformationMapper.update(updateWrapper);
return "操作成功"; return "操作成功";
} }
@ -186,6 +195,12 @@ public class EfcodeCpNoticeServiceImpl implements IEfcodeCpNoticeService {
if (update.getStatus() != null && update.getStatus() == 1L) { if (update.getStatus() != null && update.getStatus() == 1L) {
generateSystemMessage(update); generateSystemMessage(update);
} }
//同步更新企业电话
UpdateWrapper<EnterpriseInformation> updateWrapper = new UpdateWrapper<>();
updateWrapper.eq("enterprise_number",bo.getEnterpriseNumber());
updateWrapper.set("enterprise_tel",bo.getContactPhone());
enterpriseInformationMapper.update(updateWrapper);
return "操作成功"; return "操作成功";
} }

Loading…
Cancel
Save