From 07ff2ad9f4ca587b68f4d1b92f899380d672aea1 Mon Sep 17 00:00:00 2001 From: wu Date: Thu, 17 Oct 2024 16:16:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BC=81=E4=B8=9A=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1;=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E4=BC=81=E4=B8=9A=E6=9B=B4=E6=96=B0=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/mudu/entity/ASafeQyjcxx.java | 2 + .../com/mudu/entity/ASafeQyjcxxMdLog.java | 673 ++++++++++++++++++ .../com/mudu/mapper/ASafeQyjcxxMapper.java | 7 + .../mudu/mapper/ASafeQyjcxxMdLogMapper.java | 15 + .../java/com/mudu/quartz/BqbhTszyQuartz.java | 4 - src/main/java/com/mudu/quartz/EntQuartz.java | 40 +- .../mudu/service/ASafeQyjcxxMdLogService.java | 15 + .../com/mudu/service/ASafeQyjcxxService.java | 7 + .../impl/ASafeQyjcxxMdLogServiceImpl.java | 19 + .../service/impl/ASafeQyjcxxServiceImpl.java | 10 + src/main/resources/application-dev.yml | 6 +- src/main/resources/application-prod.yml | 2 +- .../mapper/mudu/ASafeQyjcxxMapper.xml | 8 +- 13 files changed, 792 insertions(+), 16 deletions(-) create mode 100644 src/main/java/com/mudu/entity/ASafeQyjcxxMdLog.java create mode 100644 src/main/java/com/mudu/mapper/ASafeQyjcxxMdLogMapper.java create mode 100644 src/main/java/com/mudu/service/ASafeQyjcxxMdLogService.java create mode 100644 src/main/java/com/mudu/service/impl/ASafeQyjcxxMdLogServiceImpl.java diff --git a/src/main/java/com/mudu/entity/ASafeQyjcxx.java b/src/main/java/com/mudu/entity/ASafeQyjcxx.java index 334b298..cdbe8ae 100644 --- a/src/main/java/com/mudu/entity/ASafeQyjcxx.java +++ b/src/main/java/com/mudu/entity/ASafeQyjcxx.java @@ -1,6 +1,7 @@ package com.mudu.entity; import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import com.mudu.entity.dto.response.EnterpriseResponse; import io.swagger.annotations.ApiModel; @@ -24,6 +25,7 @@ import java.util.Date; public class ASafeQyjcxx implements Serializable { private static final long serialVersionUID = -50281110442061251L; + @TableId private String xxbh; /** * 企业名称 diff --git a/src/main/java/com/mudu/entity/ASafeQyjcxxMdLog.java b/src/main/java/com/mudu/entity/ASafeQyjcxxMdLog.java new file mode 100644 index 0000000..98a0277 --- /dev/null +++ b/src/main/java/com/mudu/entity/ASafeQyjcxxMdLog.java @@ -0,0 +1,673 @@ +package com.mudu.entity; + +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; +import java.math.BigDecimal; +import java.util.Date; + + +/** + * (ASafeQyjcxxMdLog)表实体类 + * + * @author wu + * @since 2024-10-17 16:11:03 + */ +@Data +@ApiModel("实体类") +@TableName(value = "a_safe_qyjcxx_md_log") +public class ASafeQyjcxxMdLog implements Serializable { + + private static final long serialVersionUID = 761032740346727183L; + + @TableId + private String xxbh; + + /** + * 企业名称 + */ + @ApiModelProperty(value = "企业名称") + private String qymc; + + /** + * 其他名称 + */ + @ApiModelProperty(value = "其他名称") + private String qtmc; + + /** + * 统一社会信用编码 + */ + @ApiModelProperty(value = "统一社会信用编码") + private String tyshxybm; + + /** + * 经度 + */ + @ApiModelProperty(value = "经度") + private BigDecimal jd; + + /** + * 纬度 + */ + @ApiModelProperty(value = "纬度") + private BigDecimal wd; + + /** + * 注册地址 + */ + @ApiModelProperty(value = "注册地址") + private String zcdz; + + /** + * 经营地址 + */ + @ApiModelProperty(value = "经营地址") + private String jydz; + + /** + * 是否自有房屋 + */ + @ApiModelProperty(value = "是否自有房屋") + private Integer zyfw; + + /** + * 房东性质 + */ + @ApiModelProperty(value = "房东性质") + private String fdxz; + + /** + * 房东企业名称 + */ + @ApiModelProperty(value = "房东企业名称") + private String fdqymc; + + /** + * 房东企业信用代码 + */ + @ApiModelProperty(value = "房东企业信用代码") + private String fdqyxydm; + + /** + * 房东企业联系人 + */ + @ApiModelProperty(value = "房东企业联系人") + private String fdqylxr; + + /** + * 房东企业联系电话 + */ + @ApiModelProperty(value = "房东企业联系电话") + private String fdqylxdh; + + /** + * 是否发包出租 + */ + @ApiModelProperty(value = "是否发包出租") + private Integer sffbcz; + + /** + * 是否异地经营 + */ + @ApiModelProperty(value = "是否异地经营") + private Integer sfydjy; + + /** + * 行政区划编号 + */ + @ApiModelProperty(value = "行政区划编号") + private String xzqhbh; + + /** + * 行政区划名称 + */ + @ApiModelProperty(value = "行政区划名称") + private String xzqhmc; + + /** + * 行政区划内部编码 + */ + @ApiModelProperty(value = "行政区划内部编码") + private String xzqhnbbm; + + /** + * 网格编号 + */ + @ApiModelProperty(value = "网格编号") + private String wgbh; + + /** + * 网格名称 + */ + @ApiModelProperty(value = "网格名称") + private String wgmc; + + /** + * 成立日期 + */ + @ApiModelProperty(value = "成立日期") + private Date clrq; + + /** + * 企业性质ID + */ + @ApiModelProperty(value = "企业性质ID") + private String qyxzid; + + /** + * 企业性质VALUE + */ + @ApiModelProperty(value = "企业性质VALUE") + private String qyxzvalue; + + /** + * 行业类别门类ID + */ + @ApiModelProperty(value = "行业类别门类ID") + private String hylbmlid; + + /** + * 行业类别门类VALUE + */ + @ApiModelProperty(value = "行业类别门类VALUE") + private String hylbmlvalue; + + /** + * 行业类别大类ID + */ + @ApiModelProperty(value = "行业类别大类ID") + private String hylbdlid; + + /** + * 行业类别大类VALUE + */ + @ApiModelProperty(value = "行业类别大类VALUE") + private String hylbdlvalue; + + /** + * 行业类别中类ID + */ + @ApiModelProperty(value = "行业类别中类ID") + private String hylbzlid; + + /** + * 行业类别中类VALUE + */ + @ApiModelProperty(value = "行业类别中类VALUE") + private String hylbzlvalue; + + /** + * 行业类别小类ID + */ + @ApiModelProperty(value = "行业类别小类ID") + private String hylbxlid; + + /** + * 行业类别小类VALUE + */ + @ApiModelProperty(value = "行业类别小类VALUE") + private String hylbxlvalue; + + /** + * 注册资本 + */ + @ApiModelProperty(value = "注册资本") + private String zczb; + + /** + * 企业规模ID + */ + @ApiModelProperty(value = "企业规模ID") + private String qygmid; + + /** + * 企业国模VALUE + */ + @ApiModelProperty(value = "企业国模VALUE") + private String qygmvalue; + + /** + * 从业人员数量 + */ + @ApiModelProperty(value = "从业人员数量") + private String cyrysl; + + /** + * 行业监管大类id + */ + @ApiModelProperty(value = "行业监管大类id") + private String hyjgdlid; + + /** + * 行业监管大类value + */ + @ApiModelProperty(value = "行业监管大类value") + private String hyjgdlvalue; + + /** + * 行业监管种类ID + */ + @ApiModelProperty(value = "行业监管种类ID") + private String hyjgzlid; + + /** + * 行业监管种类VALUE + */ + @ApiModelProperty(value = "行业监管种类VALUE") + private String hyjgzlvalue; + + /** + * 行业监管小类ID + */ + @ApiModelProperty(value = "行业监管小类ID") + private String hyjgxlid; + + /** + * 行业监管小类VALUE + */ + @ApiModelProperty(value = "行业监管小类VALUE") + private String hyjgxlvalue; + + /** + * 安全生产标准化等级ID + */ + @ApiModelProperty(value = "安全生产标准化等级ID") + private String aqscdjid; + + /** + * 经营范围 + */ + @ApiModelProperty(value = "经营范围") + private String jyfw; + + /** + * 有限空间-主要危险因素 + */ + @ApiModelProperty(value = "有限空间-主要危险因素") + private String yxkjZywxys; + + /** + * 粉尘涉爆-粉尘种类 + */ + @ApiModelProperty(value = "粉尘涉爆-粉尘种类") + private String fcsbFczl; + + /** + * 粉尘涉爆-主要涉粉工艺 + */ + @ApiModelProperty(value = "粉尘涉爆-主要涉粉工艺") + private String fcsbZysffy; + + /** + * 粉尘涉爆-单班涉粉作业人数 + */ + @ApiModelProperty(value = "粉尘涉爆-单班涉粉作业人数") + private String fcsbDbsfzyrs; + + /** + * 粉尘涉爆-除尘器信息 + */ + @ApiModelProperty(value = "粉尘涉爆-除尘器信息") + private String fcsbCcqxx; + + /** + * 粉尘涉爆-除尘系统是否经过验收 + */ + @ApiModelProperty(value = "粉尘涉爆-除尘系统是否经过验收") + private String fcsbSfjgys; + + /** + * 粉尘涉爆-是否有安全评价 + */ + @ApiModelProperty(value = "粉尘涉爆-是否有安全评价") + private String fcsbSfyap; + + /** + * 企业标签 + */ + @ApiModelProperty(value = "企业标签") + private String qybq; + + /** + * 粉尘涉爆-备注 + */ + @ApiModelProperty(value = "粉尘涉爆-备注") + private String fcsbBz; + + /** + * 涉氨制冷-液氨储存、使用量 + */ + @ApiModelProperty(value = "涉氨制冷-液氨储存、使用量") + private String sazlYaccsyl; + + /** + * 涉案制冷-涉氨作业人数 + */ + @ApiModelProperty(value = "涉案制冷-涉氨作业人数") + private String sazlSazyrs; + + /** + * 涉案制冷-进行重大危险源安全评估 + */ + @ApiModelProperty(value = "涉案制冷-进行重大危险源安全评估") + private String sazlZdwxyaqpg; + + /** + * 机械铸造-年产量 + */ + @ApiModelProperty(value = "机械铸造-年产量") + private String jxzzNcl; + + /** + * 机械铸造-主要产品/重点产品 + */ + @ApiModelProperty(value = "机械铸造-主要产品/重点产品") + private String jxzzZycpzdpz; + + /** + * 机械铸造-高温熔融金属类型 + */ + @ApiModelProperty(value = "机械铸造-高温熔融金属类型") + private String jxzzGwrrjslx; + + /** + * 机械铸造-涉高温熔融金属岗位人数 + */ + @ApiModelProperty(value = "机械铸造-涉高温熔融金属岗位人数") + private String jxzzSgwrrjsgwrs; + + /** + * 机械铸造-吊运熔融金属起重机-数量 + */ + @ApiModelProperty(value = "机械铸造-吊运熔融金属起重机-数量") + private String jxzzQzjsl; + + /** + * 机械铸造-是否检验 + */ + @ApiModelProperty(value = "机械铸造-是否检验") + private String jxzzSfjy; + + /** + * 机械铸造-熔炼炉信息 + */ + @ApiModelProperty(value = "机械铸造-熔炼炉信息") + private String jxzzRlljrxx; + + /** + * 机械铸造-铸造信息 + */ + @ApiModelProperty(value = "机械铸造-铸造信息") + private String jxzzZzxx; + + /** + * 铝镁切削-废屑类型 + */ + @ApiModelProperty(value = "铝镁切削-废屑类型") + private String lmqxFxlx; + + /** + * 铝镁切削-涉粉作业人员人数 + */ + @ApiModelProperty(value = "铝镁切削-涉粉作业人员人数") + private String lmqxSfzyryrs; + + /** + * 铝镁切削-清理频次 + */ + @ApiModelProperty(value = "铝镁切削-清理频次") + private String lmqxQlpc; + + /** + * 旅美切削-粉尘/废屑储存方式 + */ + @ApiModelProperty(value = "旅美切削-粉尘/废屑储存方式") + private String lmqxCcfs; + + /** + * 旅美切削-粉尘/废屑回收单位 + */ + @ApiModelProperty(value = "旅美切削-粉尘/废屑回收单位") + private String lmqxFcfxhsdw; + + /** + * 旅美切削-回收频次 + */ + @ApiModelProperty(value = "旅美切削-回收频次") + private String lmqxHspc; + + /** + * 高镁合金-高美含量信息 + */ + @ApiModelProperty(value = "高镁合金-高美含量信息") + private String gmhjMhl; + + /** + * 危险化学品-是否有安全三同时手续 + */ + @ApiModelProperty(value = "危险化学品-是否有安全三同时手续") + private String wxhxpSfyaqstssx; + + /** + * 危险化学品-是否做安全评价 + */ + @ApiModelProperty(value = "危险化学品-是否做安全评价") + private String wxhxpSfzaqpj; + + /** + * 危险化学品-开展安全评价及备案情况日期 + */ + @ApiModelProperty(value = "危险化学品-开展安全评价及备案情况日期") + private String wxhxpKzaqpjjbaqkrq; + + /** + * 有色企业-年产量 + */ + @ApiModelProperty(value = "有色企业-年产量") + private String ysqyNcl; + + /** + * 有色企业-主要产品/重点产品 + */ + @ApiModelProperty(value = "有色企业-主要产品/重点产品") + private String ysqyZycp; + + /** + * 有色企业-高温熔融金属类型 + */ + @ApiModelProperty(value = "有色企业-高温熔融金属类型") + private String ysqyGwrrjslx; + + /** + * 有色企业-涉高温熔融金属岗位人数 + */ + @ApiModelProperty(value = "有色企业-涉高温熔融金属岗位人数") + private String ysqySgwrrjsgwrs; + + /** + * 有色企业-熔炼炉信息 + */ + @ApiModelProperty(value = "有色企业-熔炼炉信息") + private String ysqyRlljrxx; + + /** + * 有色企业-铸造信息 + */ + @ApiModelProperty(value = "有色企业-铸造信息") + private String ysqyZzxx; + + /** + * 入库时间 + */ + @ApiModelProperty(value = "入库时间") + private Date rksj; + + /** + * 更新时间 + */ + @ApiModelProperty(value = "更新时间") + private Date gxsj; + + /** + * 入库人员 + */ + @ApiModelProperty(value = "入库人员") + private String rkry; + + /** + * 更新人员 + */ + @ApiModelProperty(value = "更新人员") + private String gxry; + + /** + * 记录状态 + */ + @ApiModelProperty(value = "记录状态") + private Integer jlzt; + + /** + * 安监办企业列表 + */ + @ApiModelProperty(value = "安监办企业列表") + private String ajbqylb; + + /** + * 局内人员企业列表 + */ + @ApiModelProperty(value = "局内人员企业列表") + private String jnryqylb; + + /** + * 安全生产标准化等级VALUE + */ + @ApiModelProperty(value = "安全生产标准化等级VALUE") + private String aqscdjvalue; + + /** + * 启用状态 + */ + @ApiModelProperty(value = "启用状态") + private String qyzt; + + /** + * 数据来源 + */ + @ApiModelProperty(value = "数据来源") + private String sjly; + + /** + * 登陆账号 + */ + @ApiModelProperty(value = "登陆账号") + private String dlzh; + + /** + * 风险评估等级 + */ + @ApiModelProperty(value = "风险评估等级") + private String fxpgdj; + + /** + * 重大危险源等级id + */ + @ApiModelProperty(value = "重大危险源等级id") + private String zdwxydjid; + + /** + * 重大危险源等级value + */ + @ApiModelProperty(value = "重大危险源等级value") + private String zdwxydjvalue; + + /** + * 企业分类id + */ + @ApiModelProperty(value = "企业分类id") + private String qyflid; + + /** + * 企业分类value + */ + @ApiModelProperty(value = "企业分类value") + private String qyflvalue; + + /** + * 诚信管理-诚信等级 + */ + @ApiModelProperty(value = "诚信管理-诚信等级") + private String cxglcxdj; + + /** + * 诚信管理-是否黑名单 + */ + @ApiModelProperty(value = "诚信管理-是否黑名单") + private String cxglsfhmd; + + /** + * 诚信管理-不良记录数 + */ + @ApiModelProperty(value = "诚信管理-不良记录数") + private Integer cxglbljls; + + /** + * 诚信管理-跟新时间 + */ + @ApiModelProperty(value = "诚信管理-跟新时间") + private Date cxglgxsj; + + /** + * 法人代表姓名 + */ + @ApiModelProperty(value = "法人代表姓名") + private String frdbxm; + + /** + * 法人代表电话 + */ + @ApiModelProperty(value = "法人代表电话") + private String frdbdh; + + /** + * 房东姓名 + */ + @ApiModelProperty(value = "房东姓名") + private String fdxm; + + /** + * 房东联系方式 + */ + @ApiModelProperty(value = "房东联系方式") + private String fdlxfs; + + /** + * 所属部门 + */ + @ApiModelProperty(value = "所属部门") + private String ajbbmbh; + + /** + * 所属部门 + */ + @ApiModelProperty(value = "所属部门") + private String jnrybmbh; + + /** + * 是否推入市局 0否 1是 + */ + @ApiModelProperty(value = "是否推入市局 0否 1是") + private String sftrsj; + + /** + * 0为更新,1为新增 + */ + @ApiModelProperty(value = "0为更新,1为新增") + private Integer gxorxz; + +} + diff --git a/src/main/java/com/mudu/mapper/ASafeQyjcxxMapper.java b/src/main/java/com/mudu/mapper/ASafeQyjcxxMapper.java index 258a95c..81922b4 100644 --- a/src/main/java/com/mudu/mapper/ASafeQyjcxxMapper.java +++ b/src/main/java/com/mudu/mapper/ASafeQyjcxxMapper.java @@ -40,5 +40,12 @@ public interface ASafeQyjcxxMapper extends BaseMapper { * @return */ FxdwzResponse findByEnterPeriseId(@Param("enterPriseId") String enterPriseId); + + /** + * 根据信息编号修改jlzt + * + * @param xxbh 信息编号 + */ + void updateJlztById(String xxbh); } diff --git a/src/main/java/com/mudu/mapper/ASafeQyjcxxMdLogMapper.java b/src/main/java/com/mudu/mapper/ASafeQyjcxxMdLogMapper.java new file mode 100644 index 0000000..322cea8 --- /dev/null +++ b/src/main/java/com/mudu/mapper/ASafeQyjcxxMdLogMapper.java @@ -0,0 +1,15 @@ +package com.mudu.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.mudu.entity.ASafeQyjcxxMdLog; + +/** + * (ASafeQyjcxxMdLog)表数据库访问层 + * + * @author wu + * @since 2024-10-17 16:11:03 + */ +public interface ASafeQyjcxxMdLogMapper extends BaseMapper { + +} + diff --git a/src/main/java/com/mudu/quartz/BqbhTszyQuartz.java b/src/main/java/com/mudu/quartz/BqbhTszyQuartz.java index 3377e57..ecff0c7 100644 --- a/src/main/java/com/mudu/quartz/BqbhTszyQuartz.java +++ b/src/main/java/com/mudu/quartz/BqbhTszyQuartz.java @@ -16,7 +16,6 @@ import com.mudu.entity.dto.response.XcTpResponse; import com.mudu.service.ASafeBqbhpxService; import com.mudu.service.ASafeQyjcxxService; import com.mudu.service.ASafeQyzypglService; -import com.mudu.service.EnterpriseService; import com.mudu.service.impl.LoginService; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Configuration; @@ -52,9 +51,6 @@ public class BqbhTszyQuartz { @Resource private ASafeQyjcxxService aSafeQyjcxxService; - @Resource - private EnterpriseService enterpriseService; - @Value("${bqbhUrl}") private String bqbhUrl; diff --git a/src/main/java/com/mudu/quartz/EntQuartz.java b/src/main/java/com/mudu/quartz/EntQuartz.java index 9967060..f4f4e39 100644 --- a/src/main/java/com/mudu/quartz/EntQuartz.java +++ b/src/main/java/com/mudu/quartz/EntQuartz.java @@ -1,11 +1,14 @@ package com.mudu.quartz; +import cn.hutool.core.bean.BeanUtil; +import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.util.StrUtil; import cn.hutool.http.HttpRequest; import com.alibaba.fastjson2.JSON; import com.alibaba.fastjson2.JSONObject; import com.mudu.entity.ASafeQyjcxx; -import com.mudu.entity.ASafeWgcy; +import com.mudu.entity.ASafeQyjcxxMdLog; +import com.mudu.service.ASafeQyjcxxMdLogService; import com.mudu.service.ASafeQyjcxxService; import com.mudu.service.ASafeWgcyService; import com.mudu.service.impl.LoginService; @@ -17,7 +20,6 @@ import org.springframework.transaction.annotation.Transactional; import javax.annotation.Resource; import java.util.List; -import java.util.stream.Collectors; /** * 获取木渎新增企业定时任务 @@ -39,6 +41,9 @@ public class EntQuartz { @Resource private LoginService loginService; + @Resource + private ASafeQyjcxxMdLogService qyjcxxMdLogService; + @Value("${addEntUrl}") private String addEntUrl; @@ -53,7 +58,7 @@ public class EntQuartz { /** * 新增昨天木渎新增的企业 */ - @Scheduled(cron = "0 30 12 * * ? ") + @Scheduled(cron = "0 30 00 * * ? ") public void addqyjcxxAndWgcy() { // 获取token String token = getToken(); @@ -68,16 +73,33 @@ public class EntQuartz { return; } List qyjcxxList = JSON.parseArray(dataList, ASafeQyjcxx.class); - qyjcxxService.saveBatch(qyjcxxList); - List wgcyList = qyjcxxList.stream().map(ASafeQyjcxx::getASafeWgcy).collect(Collectors.toList()); - wgcyService.saveBatch(wgcyList); + for (ASafeQyjcxx x : qyjcxxList) { + ASafeQyjcxx entity = qyjcxxService.findOneByqymcOrXybm(null, x.getTyshxybm()); + if (BeanUtil.isNotEmpty(entity)) { + if (entity.getJlzt() == 0) { + qyjcxxService.updateJlztById(entity.getXxbh()); + // 添加更新日志 + ASafeQyjcxxMdLog qyjcxxMdLog = BeanUtil.copyProperties(entity, ASafeQyjcxxMdLog.class); + qyjcxxMdLog.setGxorxz(0); + qyjcxxMdLogService.save(qyjcxxMdLog); + } + } else { + qyjcxxService.save(x); + // 添加新增日志 + ASafeQyjcxxMdLog qyjcxxMdLog = BeanUtil.copyProperties(x, ASafeQyjcxxMdLog.class); + qyjcxxMdLog.setGxorxz(0); + qyjcxxMdLogService.save(qyjcxxMdLog); + } + } +// List wgcyList = qyjcxxList.stream().map(ASafeQyjcxx::getASafeWgcy).collect(Collectors.toList()); +// wgcyService.saveBatch(wgcyList); } /** * 删除昨天木渎删除的企业 */ - @Scheduled(cron = "0 30 12 * * ? ") + @Scheduled(cron = "0 30 00 * * ? ") public void findEntDel() { // 获取token String token = getToken(); @@ -92,6 +114,8 @@ public class EntQuartz { return; } List tyshxybmList = JSON.parseArray(dataList, String.class); - qyjcxxService.updateByTyshxybm(tyshxybmList); + if (CollectionUtil.isNotEmpty(tyshxybmList)) { + qyjcxxService.updateByTyshxybm(tyshxybmList); + } } } diff --git a/src/main/java/com/mudu/service/ASafeQyjcxxMdLogService.java b/src/main/java/com/mudu/service/ASafeQyjcxxMdLogService.java new file mode 100644 index 0000000..c3de79f --- /dev/null +++ b/src/main/java/com/mudu/service/ASafeQyjcxxMdLogService.java @@ -0,0 +1,15 @@ +package com.mudu.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.mudu.entity.ASafeQyjcxxMdLog; + +/** + * (ASafeQyjcxxMdLog)表服务接口 + * + * @author wu + * @since 2024-10-17 16:11:04 + */ +public interface ASafeQyjcxxMdLogService extends IService { + +} + diff --git a/src/main/java/com/mudu/service/ASafeQyjcxxService.java b/src/main/java/com/mudu/service/ASafeQyjcxxService.java index 021f25e..c5bbbb8 100644 --- a/src/main/java/com/mudu/service/ASafeQyjcxxService.java +++ b/src/main/java/com/mudu/service/ASafeQyjcxxService.java @@ -43,5 +43,12 @@ public interface ASafeQyjcxxService extends IService { * @return */ FxdwzResponse findByEnterPeriseId(String enterPriseId); + + /** + * 根据信息编号修改jlzt + * + * @param xxbh 信息编号 + */ + void updateJlztById(String xxbh); } diff --git a/src/main/java/com/mudu/service/impl/ASafeQyjcxxMdLogServiceImpl.java b/src/main/java/com/mudu/service/impl/ASafeQyjcxxMdLogServiceImpl.java new file mode 100644 index 0000000..070ae3e --- /dev/null +++ b/src/main/java/com/mudu/service/impl/ASafeQyjcxxMdLogServiceImpl.java @@ -0,0 +1,19 @@ +package com.mudu.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.mudu.entity.ASafeQyjcxxMdLog; +import com.mudu.mapper.ASafeQyjcxxMdLogMapper; +import com.mudu.service.ASafeQyjcxxMdLogService; +import org.springframework.stereotype.Service; + +/** + * (ASafeQyjcxxMdLog)表服务实现类 + * + * @author wu + * @since 2024-10-17 16:11:04 + */ +@Service("aSafeQyjcxxMdLogService") +public class ASafeQyjcxxMdLogServiceImpl extends ServiceImpl implements ASafeQyjcxxMdLogService { + +} + diff --git a/src/main/java/com/mudu/service/impl/ASafeQyjcxxServiceImpl.java b/src/main/java/com/mudu/service/impl/ASafeQyjcxxServiceImpl.java index d6ee685..66933b0 100644 --- a/src/main/java/com/mudu/service/impl/ASafeQyjcxxServiceImpl.java +++ b/src/main/java/com/mudu/service/impl/ASafeQyjcxxServiceImpl.java @@ -101,5 +101,15 @@ public class ASafeQyjcxxServiceImpl extends ServiceImpl + + update a_safe_qyjcxx_md + set jlzt = 1, + gxsj = CURDATE() + where xxbh = #{xxbh} +