main
dongdingding 12 months ago
parent 186b6eb96e
commit 9655ef7820

@ -0,0 +1,355 @@
package com.mudu.entity;
import com.baomidou.mybatisplus.annotation.TableField;
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.util.Date;
/**
* (Enterprise)
*
* @author wu
* @since 2024-02-22 16:14:24
*/
@Data
@ApiModel("企业基本信息表实体类")
@TableName(value = "enterprise")
public class Enterprise implements Serializable {
private static final long serialVersionUID = 801806350790350898L;
@TableField(value = "ID")
private String id;
/**
* ID
*/
@ApiModelProperty(value = "所属园区ID")
private String parkid;
/**
*
*/
@ApiModelProperty(value = "所属园区")
private String parkname;
/**
*
*/
@ApiModelProperty(value = "企业名称")
private String name;
/**
* ID
*/
@ApiModelProperty(value = "企业类型ID")
private String typeid;
/**
*
*/
@ApiModelProperty(value = "企业类型")
private String typename;
/**
*
*/
@ApiModelProperty(value = "机构代码证")
private String certificatecode;
/**
* ID
*/
@ApiModelProperty(value = "所属行业ID")
private String industryid;
/**
*
*/
@ApiModelProperty(value = "所属行业")
private String industryname;
/**
* 宿ID
*/
@ApiModelProperty(value = "归宿地ID")
private String locationid;
/**
*
*/
@ApiModelProperty(value = "归属地")
private String locationname;
/**
*
*/
@ApiModelProperty(value = "法人")
private String legalperson;
/**
*
*/
@ApiModelProperty(value = "法人电话")
private String legalpersonphone;
/**
*
*/
@ApiModelProperty(value = "注册地")
private String registeraddress;
/**
*
*/
@ApiModelProperty(value = "经营地")
private String businessaddress;
/**
*
*/
@ApiModelProperty(value = "经度")
private String longitude;
/**
*
*/
@ApiModelProperty(value = "纬度")
private String latitude;
/**
*
*/
@ApiModelProperty(value = "租用面积")
private Double rentspace;
/**
*
*/
@ApiModelProperty(value = "具体楼层位置")
private String floor;
/**
*
*/
@ApiModelProperty(value = "人数")
private Integer person;
/**
*
*/
@ApiModelProperty(value = "描述")
private String description;
/**
*
*/
@ApiModelProperty(value = "状态")
private Integer status;
/**
* ID
*/
@ApiModelProperty(value = "企业图片关联ID")
private String imagerelationid;
/**
* ID
*/
@ApiModelProperty(value = "企业产证关联ID")
private String imagecertificateid;
/**
* ID
*/
@ApiModelProperty(value = "环评文件照片关联ID")
private String imageenvironmentalprotectionid;
/**
* ID
*/
@ApiModelProperty(value = "营业执照关联ID")
private String imagebusinesslicenseid;
/**
* ID
*/
@ApiModelProperty(value = "土地证关联ID")
private String imagelandcertificateid;
/**
* ID
*/
@ApiModelProperty(value = "消防验收证明关联ID")
private String imagefiresafetyid;
/**
* ID
*/
@ApiModelProperty(value = "安全证书关联ID")
private String imagesafetyid;
/**
* ID
*/
@ApiModelProperty(value = "经营产品ID")
private String businessscopeid;
/**
*
*/
@ApiModelProperty(value = "经营产品")
private String businessscope;
/**
* ID
*/
@ApiModelProperty(value = "风险等级ID")
private String risklevelid;
/**
*
*/
@ApiModelProperty(value = "风险等级")
private String risklevel;
/**
* ID
*/
@ApiModelProperty(value = "风险源等级ID")
private String risksourcelevelid;
/**
*
*/
@ApiModelProperty(value = "风险源等级")
private String risksourcelevel;
/**
* ID
*/
@ApiModelProperty(value = "风险源类型ID")
private String risksourcetypeid;
/**
*
*/
@ApiModelProperty(value = "风险源类型")
private String risksourcetype;
/**
*
*/
@ApiModelProperty(value = "入驻日期")
private Date indatetime;
/**
*
*/
@ApiModelProperty(value = "合同结束日期")
private Date enddatetime;
/**
*
*/
@ApiModelProperty(value = "搬离日期")
private Date leavedatetime;
/**
*
*/
@ApiModelProperty(value = "是否重点监管")
private Integer iskeysupervision;
/**
* ID
*/
@ApiModelProperty(value = "安全等级管理ID")
private String safelevelid;
/**
*
*/
@ApiModelProperty(value = "安全登记管理")
private String safelevelname;
/**
* ID
*/
@ApiModelProperty(value = "标准化等级ID")
private String standardlevelid;
/**
*
*/
@ApiModelProperty(value = "标准化等级")
private String standardlevel;
/**
* ID
*/
@ApiModelProperty(value = "网格员ID")
private String networkuserid;
/**
*
*/
@ApiModelProperty(value = "网格员名称")
private String networkusername;
/**
* ID
*/
@ApiModelProperty(value = "分管领导ID")
private String masteruserid;
/**
*
*/
@ApiModelProperty(value = "分管领导")
private String masterusername;
/**
*
*/
@ApiModelProperty(value = "空间数据")
private String mapshape;
private String adduserid;
private String addusername;
private Date adddatetime;
private String edituserid;
private String editusername;
private Date editdatetime;
private Integer isdel;
/**
* (0/1)
*/
@ApiModelProperty(value = "是否规上企业(0/1)")
private Integer standardsized;
/**
* 亿(0/1)
*/
@ApiModelProperty(value = "是否上亿企业(0/1)")
private Integer onehundredmillion;
/**
* (0,1)
*/
@ApiModelProperty(value = "标记(默认0未标记,1已标记)")
private Integer lab;
}

@ -113,6 +113,10 @@ public class ASafeBqbhpxRequest implements Serializable {
*/ */
@ApiModelProperty(value = "企业信息编号") @ApiModelProperty(value = "企业信息编号")
private String qyxxbh; private String qyxxbh;
/**
*
*/
@ApiModelProperty(value = "企业信用代码")
private String entCode;
} }

@ -139,5 +139,13 @@ public class ASafeQyzypglRequest implements Serializable {
*/ */
@ApiModelProperty(value = "企业信息编号") @ApiModelProperty(value = "企业信息编号")
private String qyxxbh; private String qyxxbh;
/**
*
*/
@ApiModelProperty(value = "企业信用代码")
private String entCode;
} }

@ -0,0 +1,24 @@
package com.mudu.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mudu.entity.Enterprise;
import com.mudu.entity.dto.response.EnterpriseResponse;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* (Enterprise)访
*
* @author wu
* @since 2024-02-22 16:14:23
*/
public interface EnterpriseMapper extends BaseMapper<Enterprise> {
EnterpriseResponse findByQybh(@Param("qybh") String qybh);
}

@ -40,11 +40,16 @@ import com.mudu.service.ASafeZcrwjlService;
import com.mudu.service.ASafeZcrwwzService; import com.mudu.service.ASafeZcrwwzService;
import com.mudu.service.SzsASafeZcyhxxService; import com.mudu.service.SzsASafeZcyhxxService;
import com.mudu.service.impl.LoginService; import com.mudu.service.impl.LoginService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled; import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.text.ParseException; import java.text.ParseException;
@ -57,12 +62,12 @@ import java.util.UUID;
* @author dong * @author dong
* @since 2024/3/12 16:37 * @since 2024/3/12 16:37
*/ */
//@RestController @RestController
//@RequestMapping("pharmaceuticals/aCheck") @RequestMapping("pharmaceuticals/aCheck")
//@Api(tags = "新增") @Api(tags = "新增")
@Transactional(rollbackFor = Exception.class) //@Transactional(rollbackFor = Exception.class)
@Configuration //@Configuration
@EnableScheduling //@EnableScheduling
public class AcheckTaskQuartz { public class AcheckTaskQuartz {
/** /**
@ -163,10 +168,10 @@ public class AcheckTaskQuartz {
* *
* @Param qymc * @Param qymc
*/ */
@Scheduled(cron = "0 0 4 * * ? ") // @Scheduled(cron = "0 0 4 * * ? ")
// @Scheduled(cron = "0 0/5 * * * ?") // @Scheduled(cron = "0 0/5 * * * ?")
// @PostMapping("/insert") @PostMapping("/insert")
// @ApiOperation(value = "新增创建时间为昨天且处于审批通过的工单数据") @ApiOperation(value = "新增创建时间为昨天且处于审批通过的工单数据")
public void selectAll() throws ParseException { public void selectAll() throws ParseException {
// 获取token // 获取token
@ -661,11 +666,11 @@ public class AcheckTaskQuartz {
} }
@Scheduled(cron = "0 0 4 * * ? ") // @Scheduled(cron = "0 0 4 * * ? ")
// @Scheduled(cron = "0 0/5 * * * ?") // @Scheduled(cron = "0 0/5 * * * ?")
//@Scheduled(cron = "0 58 18 * * ?") //@Scheduled(cron = "0 58 18 * * ?")
// @PostMapping("/zicha") @PostMapping("/zicha")
// @ApiOperation(value = "自查") @ApiOperation(value = "自查")
public void zicha() throws ParseException { public void zicha() throws ParseException {
//自己查任务周期id //自己查任务周期id
@ -1059,10 +1064,10 @@ public class AcheckTaskQuartz {
/** /**
* *
*/ */
@Scheduled(cron = "0 0 4 * * ? ") // @Scheduled(cron = "0 0 4 * * ? ")
// @Scheduled(cron = "0 0/5 * * * ?") // @Scheduled(cron = "0 0/5 * * * ?")
// @PostMapping("/tfg") @PostMapping("/tfg")
// @ApiOperation(value = "停复工表") @ApiOperation(value = "停复工表")
public void tfg() { public void tfg() {
//当前时间 //当前时间
Date currentDate = new Date(); Date currentDate = new Date();

@ -12,16 +12,23 @@ import com.mudu.entity.ASafeQyjcxx;
import com.mudu.entity.ASafeQyzypgl; import com.mudu.entity.ASafeQyzypgl;
import com.mudu.entity.dto.request.ASafeBqbhpxRequest; import com.mudu.entity.dto.request.ASafeBqbhpxRequest;
import com.mudu.entity.dto.request.ASafeQyzypglRequest; import com.mudu.entity.dto.request.ASafeQyzypglRequest;
import com.mudu.entity.dto.response.EnterpriseResponse;
import com.mudu.entity.dto.response.XcTpResponse; import com.mudu.entity.dto.response.XcTpResponse;
import com.mudu.service.ASafeBqbhpxService; import com.mudu.service.ASafeBqbhpxService;
import com.mudu.service.ASafeQyjcxxService; import com.mudu.service.ASafeQyjcxxService;
import com.mudu.service.ASafeQyzypglService; import com.mudu.service.ASafeQyzypglService;
import com.mudu.service.EnterpriseService;
import com.mudu.service.impl.LoginService; import com.mudu.service.impl.LoginService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled; import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.ArrayList; import java.util.ArrayList;
@ -50,6 +57,8 @@ public class BqbhTszyQuartz {
@Resource @Resource
private ASafeQyjcxxService aSafeQyjcxxService; private ASafeQyjcxxService aSafeQyjcxxService;
@Resource
private EnterpriseService enterpriseService;
@Value("${bqbhUrl}") @Value("${bqbhUrl}")
private String bqbhUrl; private String bqbhUrl;
@ -87,10 +96,6 @@ public class BqbhTszyQuartz {
for (ASafeBqbhpxRequest x : list) { for (ASafeBqbhpxRequest x : list) {
ASafeBqbhpx aSafeBqbhpx = BeanUtil.copyProperties(x, ASafeBqbhpx.class); ASafeBqbhpx aSafeBqbhpx = BeanUtil.copyProperties(x, ASafeBqbhpx.class);
XcTpResponse xcTpResponse = new XcTpResponse(); XcTpResponse xcTpResponse = new XcTpResponse();
ASafeQyjcxx aSafeQyjcxx = aSafeQyjcxxService.findOneByqymcOrXybm(null, x.getQyxxbh());
if (aSafeQyjcxx==null){
continue;
}
if (StrUtil.isNotEmpty(aSafeBqbhpx.getPxxctp())) { if (StrUtil.isNotEmpty(aSafeBqbhpx.getPxxctp())) {
xcTpResponse.setFJDZ(api + aSafeBqbhpx.getPxxctp()); xcTpResponse.setFJDZ(api + aSafeBqbhpx.getPxxctp());
xcTpResponse.setFJHZ(aSafeBqbhpx.getPxxctp().substring(aSafeBqbhpx.getPxxctp().lastIndexOf(".") + 1)); xcTpResponse.setFJHZ(aSafeBqbhpx.getPxxctp().substring(aSafeBqbhpx.getPxxctp().lastIndexOf(".") + 1));
@ -100,6 +105,17 @@ public class BqbhTszyQuartz {
JSONArray jsonArray = new JSONArray(xcTpResponse); JSONArray jsonArray = new JSONArray(xcTpResponse);
aSafeBqbhpx.setPxxctp(String.valueOf(jsonArray)); aSafeBqbhpx.setPxxctp(String.valueOf(jsonArray));
} }
// EnterpriseResponse a = enterpriseService.findByQybh(aSafeBqbhpx.getQybh());
// if (a!=null){
// ASafeQyjcxx aSafeQyjcxx = aSafeQyjcxxService.findOneByqymcOrXybm(a.getName(), a.getCertificateCode());
// if (aSafeQyjcxx==null){
// continue;
// }
// aSafeBqbhpx.setQybh(aSafeQyjcxx.getXxbh());
// aSafeBqbhpxes.add(aSafeBqbhpx);
// }
ASafeQyjcxx aSafeQyjcxx = aSafeQyjcxxService.findOneByqymcOrXybm(null, x.getEntCode());
aSafeBqbhpx.setQybh(aSafeQyjcxx.getXxbh()); aSafeBqbhpx.setQybh(aSafeQyjcxx.getXxbh());
aSafeBqbhpxes.add(aSafeBqbhpx); aSafeBqbhpxes.add(aSafeBqbhpx);
} }
@ -128,14 +144,18 @@ public class BqbhTszyQuartz {
List<ASafeQyzypgl> aSafeQyzypgls = new ArrayList<>(); List<ASafeQyzypgl> aSafeQyzypgls = new ArrayList<>();
List<ASafeQyzypglRequest> list = JSON.parseArray(dataList, ASafeQyzypglRequest.class); List<ASafeQyzypglRequest> list = JSON.parseArray(dataList, ASafeQyzypglRequest.class);
for (ASafeQyzypglRequest x : list) { for (ASafeQyzypglRequest x : list) {
// EnterpriseResponse a = enterpriseService.findByQybh(x.getQybh());
ASafeQyjcxx aSafeQyjcxx = aSafeQyjcxxService.findOneByqymcOrXybm(null, x.getQyxxbh()); // if (a!=null){
if (aSafeQyjcxx==null){ // ASafeQyjcxx aSafeQyjcxx = aSafeQyjcxxService.findOneByqymcOrXybm(a.getName(), a.getCertificateCode());
continue; // if (aSafeQyjcxx==null){
} // continue;
// }
//
// }
ASafeQyjcxx aSafeQyjcxx = aSafeQyjcxxService.findOneByqymcOrXybm(x.getQymc(), x.getEntCode());
ASafeQyzypgl aSafeQyzypgl = BeanUtil.copyProperties(x, ASafeQyzypgl.class); ASafeQyzypgl aSafeQyzypgl = BeanUtil.copyProperties(x, ASafeQyzypgl.class);
aSafeQyzypgl.setQybh(aSafeQyjcxx.getXxbh()); aSafeQyzypgl.setQybh(aSafeQyjcxx.getXxbh());
aSafeQyzypgls.add(aSafeQyzypgl); aSafeQyzypgls.add(aSafeQyzypgl);
} }
if (CollectionUtil.isNotEmpty(aSafeQyzypgls)) { if (CollectionUtil.isNotEmpty(aSafeQyzypgls)) {
safeQyzypglService.saveBatch(aSafeQyzypgls); safeQyzypglService.saveBatch(aSafeQyzypgls);

@ -0,0 +1,33 @@
package com.mudu.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mudu.entity.Enterprise;
import com.mudu.entity.dto.response.EnterpriseResponse;
import java.util.List;
/**
* (Enterprise)
*
* @author wu
* @since 2024-02-22 16:14:24
*/
public interface EnterpriseService extends IService<Enterprise> {
/**
*
*
* @return
*/
EnterpriseResponse findByQybh(String qybh);
}

@ -0,0 +1,32 @@
package com.mudu.service.impl;
import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mudu.entity.Enterprise;
import com.mudu.entity.dto.response.EnterpriseResponse;
import com.mudu.mapper.EnterpriseMapper;
import com.mudu.service.EnterpriseService;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* (Enterprise)
*
* @author wu
* @since 2024-02-22 16:14:24
*/
@Service("enterpriseService")
public class EnterpriseServiceImpl extends ServiceImpl<EnterpriseMapper, Enterprise> implements EnterpriseService {
@Override
public EnterpriseResponse findByQybh(String qybh) {
return baseMapper.findByQybh(qybh);
}
}

@ -4,7 +4,7 @@ spring:
profiles: profiles:
active: prod active: prod
#获取token #获取token
getToken: http://221.229.220.83:9028/loginnocaptcha getToken: https://www.jichuanglanhai.com:88/loginnocaptcha
# 日志配置 # 日志配置

@ -0,0 +1,17 @@
<?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.mudu.mapper.EnterpriseMapper">
<select id="findByQybh" resultType="com.mudu.entity.dto.response.EnterpriseResponse"
parameterType="java.lang.String">
select * from enterprise
<where>
<if test="qybh !=null and qybh!=''">
id =#{qybh}
</if>
</where>
</select>
</mapper>
Loading…
Cancel
Save