第一次提交

main
吴顺杰 12 months ago
commit a8d7f52f5f

39
.gitignore vendored

@ -0,0 +1,39 @@
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/
### IntelliJ IDEA ###
.idea/modules.xml
.idea/jarRepositories.xml
.idea/compiler.xml
.idea/libraries/
*.iws
*.iml
*.ipr
/.idea
### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/
### VS Code ###
.vscode/
### Mac OS ###
.DS_Store

@ -0,0 +1,100 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.mudu</groupId>
<artifactId>mudu</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>mudu</name>
<description>木渎数据同步中间服务</description>
<properties>
<java.version>1.8</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<spring-boot.version>2.7.6</spring-boot.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
<!-- https://mvnrepository.com/artifact/com.baomidou/mybatis-plus-boot-starter -->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.5.5</version>
</dependency>
<dependency>
<groupId>com.github.xiaoymin</groupId>
<artifactId>knife4j-openapi2-spring-boot-starter</artifactId>
<version>4.4.0</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/cn.hutool/hutool-all -->
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>5.8.16</version>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring-boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring-boot.version}</version>
<configuration>
<mainClass>com.mudu.mudu.MuduApplication</mainClass>
<skip>true</skip>
</configuration>
<executions>
<execution>
<id>repackage</id>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

@ -0,0 +1,19 @@
package com.mudu;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* @author wu
* @since 2024/2/26 10:24
*/
@SpringBootApplication
@MapperScan("com.mudu.mapper")
public class MuduApplication {
public static void main(String[] args) {
SpringApplication.run(MuduApplication.class, args);
}
}

@ -0,0 +1,93 @@
package com.mudu.base.constant;
/**
*
*
* @author ruoyi
*/
public class HttpStatus {
/**
*
*/
public static final int SUCCESS = 200;
/**
*
*/
public static final int CREATED = 201;
/**
*
*/
public static final int ACCEPTED = 202;
/**
*
*/
public static final int NO_CONTENT = 204;
/**
*
*/
public static final int MOVED_PERM = 301;
/**
*
*/
public static final int SEE_OTHER = 303;
/**
*
*/
public static final int NOT_MODIFIED = 304;
/**
*
*/
public static final int BAD_REQUEST = 400;
/**
*
*/
public static final int UNAUTHORIZED = 401;
/**
* 访
*/
public static final int FORBIDDEN = 403;
/**
*
*/
public static final int NOT_FOUND = 404;
/**
* http
*/
public static final int BAD_METHOD = 405;
/**
*
*/
public static final int CONFLICT = 409;
/**
*
*/
public static final int UNSUPPORTED_TYPE = 415;
/**
*
*/
public static final int ERROR = 500;
/**
*
*/
public static final int NOT_IMPLEMENTED = 501;
/**
*
*/
public static final int WARN = 601;
}

@ -0,0 +1,78 @@
package com.mudu.base.controller;
import com.mudu.base.domain.AjaxResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* web
*
* @author ruoyi
*/
public class BaseController {
protected final Logger logger = LoggerFactory.getLogger(this.getClass());
/**
*
*/
public AjaxResult success() {
return AjaxResult.success();
}
/**
*
*/
public AjaxResult error() {
return AjaxResult.error();
}
/**
*
*/
public AjaxResult success(String message) {
return AjaxResult.success(message);
}
/**
*
*/
public AjaxResult success(Object data) {
return AjaxResult.success(data);
}
/**
*
*/
public AjaxResult error(String message) {
return AjaxResult.error(message);
}
/**
*
*/
public AjaxResult warn(String message) {
return AjaxResult.warn(message);
}
/**
*
*
* @param rows
* @return
*/
protected AjaxResult toAjax(int rows) {
return rows > 0 ? AjaxResult.success() : AjaxResult.error();
}
/**
*
*
* @param result
* @return
*/
protected AjaxResult toAjax(boolean result) {
return result ? success() : error();
}
}

@ -0,0 +1,202 @@
package com.mudu.base.domain;
import cn.hutool.core.bean.BeanUtil;
import com.mudu.base.constant.HttpStatus;
import java.util.HashMap;
import java.util.Objects;
/**
*
*
* @author ruoyi
*/
public class AjaxResult extends HashMap<String, Object> {
/**
*
*/
public static final String CODE_TAG = "code";
/**
*
*/
public static final String MSG_TAG = "msg";
/**
*
*/
public static final String DATA_TAG = "data";
private static final long serialVersionUID = 1L;
/**
* AjaxResult 使
*/
public AjaxResult() {
}
/**
* AjaxResult
*
* @param code
* @param msg
*/
public AjaxResult(int code, String msg) {
super.put(CODE_TAG, code);
super.put(MSG_TAG, msg);
}
/**
* AjaxResult
*
* @param code
* @param msg
* @param data
*/
public AjaxResult(int code, String msg, Object data) {
super.put(CODE_TAG, code);
super.put(MSG_TAG, msg);
if (BeanUtil.isNotEmpty(data)) {
super.put(DATA_TAG, data);
}
}
/**
*
*
* @return
*/
public static AjaxResult success() {
return AjaxResult.success("操作成功");
}
/**
*
*
* @return
*/
public static AjaxResult success(Object data) {
return AjaxResult.success("操作成功", data);
}
/**
*
*
* @param msg
* @return
*/
public static AjaxResult success(String msg) {
return AjaxResult.success(msg, null);
}
/**
*
*
* @param msg
* @param data
* @return
*/
public static AjaxResult success(String msg, Object data) {
return new AjaxResult(HttpStatus.SUCCESS, msg, data);
}
/**
*
*
* @param msg
* @return
*/
public static AjaxResult warn(String msg) {
return AjaxResult.warn(msg, null);
}
/**
*
*
* @param msg
* @param data
* @return
*/
public static AjaxResult warn(String msg, Object data) {
return new AjaxResult(HttpStatus.WARN, msg, data);
}
/**
*
*
* @return
*/
public static AjaxResult error() {
return AjaxResult.error("操作失败");
}
/**
*
*
* @param msg
* @return
*/
public static AjaxResult error(String msg) {
return AjaxResult.error(msg, null);
}
/**
*
*
* @param msg
* @param data
* @return
*/
public static AjaxResult error(String msg, Object data) {
return new AjaxResult(HttpStatus.ERROR, msg, data);
}
/**
*
*
* @param code
* @param msg
* @return
*/
public static AjaxResult error(int code, String msg) {
return new AjaxResult(code, msg, null);
}
/**
*
*
* @return
*/
public boolean isSuccess() {
return Objects.equals(HttpStatus.SUCCESS, this.get(CODE_TAG));
}
/**
*
*
* @return
*/
public boolean isWarn() {
return Objects.equals(HttpStatus.WARN, this.get(CODE_TAG));
}
/**
*
*
* @return
*/
public boolean isError() {
return Objects.equals(HttpStatus.ERROR, this.get(CODE_TAG));
}
/**
* 便
*
* @param key
* @param value
* @return
*/
@Override
public AjaxResult put(String key, Object value) {
super.put(key, value);
return this;
}
}

@ -0,0 +1,26 @@
package com.mudu.config;
import com.baomidou.mybatisplus.annotation.DbType;
import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;
import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* @author wu
* @since 2024/2/26 11:28
*/
@Configuration
public class MybatisPlusConfig {
/**
*
*/
@Bean
public MybatisPlusInterceptor mybatisPlusInterceptor() {
MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor();
interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.MYSQL));//如果配置多个插件,切记分页最后添加
//interceptor.addInnerInterceptor(new PaginationInnerInterceptor()); 如果有多数据源可以不配具体类型 否则都建议配上具体的DbType
return interceptor;
}
}

@ -0,0 +1,105 @@
package com.mudu.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mudu.base.controller.BaseController;
import com.mudu.base.domain.AjaxResult;
import com.mudu.entity.ASafeBmxx;
import com.mudu.service.ASafeBmxxService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;
/**
* (ASafeBmxx)
*
* @author wu
* @since 2024-02-26 10:43:21
*/
@RestController
@RequestMapping("pharmaceuticals/aSafeBmxx")
@Api(tags = "风险库部门信息表")
@Transactional(rollbackFor = Exception.class)
public class ASafeBmxxController extends BaseController {
/**
*
*/
@Resource
private ASafeBmxxService aSafeBmxxService;
/**
*
*
* @param page
* @param aSafeBmxx
* @return
*/
@GetMapping
@ApiOperation(value = "分页条件查询风险库部门信息表", response = ASafeBmxx.class)
public AjaxResult page(Page<ASafeBmxx> page, ASafeBmxx aSafeBmxx) {
return success(aSafeBmxxService.page(page, new QueryWrapper<>(aSafeBmxx)));
}
/**
*
*
* @param id
* @return
*/
@GetMapping("{id}")
@ApiOperation(value = "通过主键查询单条风险库部门信息表", response = ASafeBmxx.class)
public AjaxResult getById(@PathVariable Serializable id) {
return success(aSafeBmxxService.getById(id));
}
/**
*
*
* @param aSafeBmxx
* @return
*/
@PostMapping
@ApiOperation(value = "新增风险库部门信息表", response = ASafeBmxx.class)
public AjaxResult insert(@RequestBody ASafeBmxx aSafeBmxx) {
return success(aSafeBmxxService.save(aSafeBmxx));
}
/**
*
*
* @param aSafeBmxx
* @return
*/
@PutMapping
@ApiOperation(value = "修改风险库部门信息表")
public AjaxResult update(@RequestBody ASafeBmxx aSafeBmxx) {
return success(aSafeBmxxService.updateById(aSafeBmxx));
}
/**
*
*
* @param idList
* @return
*/
@DeleteMapping
@ApiOperation(value = "删除风险库部门信息表")
public AjaxResult delete(@RequestParam("idList") List<Long> idList) {
return success(aSafeBmxxService.removeByIds(idList));
}
}

@ -0,0 +1,50 @@
package com.mudu.controller;
import com.mudu.base.controller.BaseController;
import com.mudu.base.domain.AjaxResult;
import com.mudu.entity.ASafeFxd;
import com.mudu.service.ASafeFxdService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.io.Serializable;
/**
* (ASafeFxd)
*
* @author wu
* @since 2024-02-26 10:43:22
*/
@RestController
@RequestMapping("pharmaceuticals/aSafeFxd")
@Api(tags = "")
@Transactional(rollbackFor = Exception.class)
public class ASafeFxdController extends BaseController {
/**
*
*/
@Resource
private ASafeFxdService aSafeFxdService;
/**
*
*
* @param id
* @return
*/
@GetMapping("{id}")
@ApiOperation(value = "通过主键查询单条", response = ASafeFxd.class)
public AjaxResult getById(@PathVariable Serializable id) {
return success(aSafeFxdService.getById(id));
}
}

@ -0,0 +1,105 @@
package com.mudu.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.mudu.base.controller.BaseController;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mudu.base.domain.AjaxResult;
import com.mudu.entity.ASafeFxdwz;
import com.mudu.service.ASafeFxdwzService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;
/**
* (ASafeFxdwz)
*
* @author wu
* @since 2024-02-26 10:43:22
*/
@RestController
@RequestMapping("pharmaceuticals/aSafeFxdwz")
@Api(tags = "")
@Transactional(rollbackFor = Exception.class)
public class ASafeFxdwzController extends BaseController {
/**
*
*/
@Resource
private ASafeFxdwzService aSafeFxdwzService;
/**
*
*
* @param page
* @param aSafeFxdwz
* @return
*/
@GetMapping
@ApiOperation(value = "分页条件查询", response = ASafeFxdwz.class)
public AjaxResult page(Page<ASafeFxdwz> page, ASafeFxdwz aSafeFxdwz) {
return success(aSafeFxdwzService.page(page, new QueryWrapper<>(aSafeFxdwz)));
}
/**
*
*
* @param id
* @return
*/
@GetMapping("{id}")
@ApiOperation(value = "通过主键查询单条", response = ASafeFxdwz.class)
public AjaxResult getById(@PathVariable Serializable id) {
return success(aSafeFxdwzService.getById(id));
}
/**
*
*
* @param aSafeFxdwz
* @return
*/
@PostMapping
@ApiOperation(value = "新增", response = ASafeFxdwz.class)
public AjaxResult insert(@RequestBody ASafeFxdwz aSafeFxdwz) {
return success(aSafeFxdwzService.save(aSafeFxdwz));
}
/**
*
*
* @param aSafeFxdwz
* @return
*/
@PutMapping
@ApiOperation(value = "修改")
public AjaxResult update(@RequestBody ASafeFxdwz aSafeFxdwz) {
return success(aSafeFxdwzService.updateById(aSafeFxdwz));
}
/**
*
*
* @param idList
* @return
*/
@DeleteMapping
@ApiOperation(value = "删除")
public AjaxResult delete(@RequestParam("idList") List<Long> idList) {
return success(aSafeFxdwzService.removeByIds(idList));
}
}

@ -0,0 +1,105 @@
package com.mudu.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.mudu.base.controller.BaseController;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mudu.base.domain.AjaxResult;
import com.mudu.entity.ASafeFxk;
import com.mudu.service.ASafeFxkService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;
/**
* (ASafeFxk)
*
* @author wu
* @since 2024-02-26 10:43:22
*/
@RestController
@RequestMapping("pharmaceuticals/aSafeFxk")
@Api(tags = "")
@Transactional(rollbackFor = Exception.class)
public class ASafeFxkController extends BaseController {
/**
*
*/
@Resource
private ASafeFxkService aSafeFxkService;
/**
*
*
* @param page
* @param aSafeFxk
* @return
*/
@GetMapping
@ApiOperation(value = "分页条件查询", response = ASafeFxk.class)
public AjaxResult page(Page<ASafeFxk> page, ASafeFxk aSafeFxk) {
return success(aSafeFxkService.page(page, new QueryWrapper<>(aSafeFxk)));
}
/**
*
*
* @param id
* @return
*/
@GetMapping("{id}")
@ApiOperation(value = "通过主键查询单条", response = ASafeFxk.class)
public AjaxResult getById(@PathVariable Serializable id) {
return success(aSafeFxkService.getById(id));
}
/**
*
*
* @param aSafeFxk
* @return
*/
@PostMapping
@ApiOperation(value = "新增", response = ASafeFxk.class)
public AjaxResult insert(@RequestBody ASafeFxk aSafeFxk) {
return success(aSafeFxkService.save(aSafeFxk));
}
/**
*
*
* @param aSafeFxk
* @return
*/
@PutMapping
@ApiOperation(value = "修改")
public AjaxResult update(@RequestBody ASafeFxk aSafeFxk) {
return success(aSafeFxkService.updateById(aSafeFxk));
}
/**
*
*
* @param idList
* @return
*/
@DeleteMapping
@ApiOperation(value = "删除")
public AjaxResult delete(@RequestParam("idList") List<Long> idList) {
return success(aSafeFxkService.removeByIds(idList));
}
}

@ -0,0 +1,105 @@
package com.mudu.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.mudu.base.controller.BaseController;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mudu.base.domain.AjaxResult;
import com.mudu.entity.ASafeGllb;
import com.mudu.service.ASafeGllbService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;
/**
* (ASafeGllb)
*
* @author wu
* @since 2024-02-26 10:43:23
*/
@RestController
@RequestMapping("pharmaceuticals/aSafeGllb")
@Api(tags = "")
@Transactional(rollbackFor = Exception.class)
public class ASafeGllbController extends BaseController {
/**
*
*/
@Resource
private ASafeGllbService aSafeGllbService;
/**
*
*
* @param page
* @param aSafeGllb
* @return
*/
@GetMapping
@ApiOperation(value = "分页条件查询", response = ASafeGllb.class)
public AjaxResult page(Page<ASafeGllb> page, ASafeGllb aSafeGllb) {
return success(aSafeGllbService.page(page, new QueryWrapper<>(aSafeGllb)));
}
/**
*
*
* @param id
* @return
*/
@GetMapping("{id}")
@ApiOperation(value = "通过主键查询单条", response = ASafeGllb.class)
public AjaxResult getById(@PathVariable Serializable id) {
return success(aSafeGllbService.getById(id));
}
/**
*
*
* @param aSafeGllb
* @return
*/
@PostMapping
@ApiOperation(value = "新增", response = ASafeGllb.class)
public AjaxResult insert(@RequestBody ASafeGllb aSafeGllb) {
return success(aSafeGllbService.save(aSafeGllb));
}
/**
*
*
* @param aSafeGllb
* @return
*/
@PutMapping
@ApiOperation(value = "修改")
public AjaxResult update(@RequestBody ASafeGllb aSafeGllb) {
return success(aSafeGllbService.updateById(aSafeGllb));
}
/**
*
*
* @param idList
* @return
*/
@DeleteMapping
@ApiOperation(value = "删除")
public AjaxResult delete(@RequestParam("idList") List<Long> idList) {
return success(aSafeGllbService.removeByIds(idList));
}
}

@ -0,0 +1,105 @@
package com.mudu.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.mudu.base.controller.BaseController;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mudu.base.domain.AjaxResult;
import com.mudu.entity.ASafeJcyd;
import com.mudu.service.ASafeJcydService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;
/**
* (ASafeJcyd)
*
* @author wu
* @since 2024-02-26 10:43:23
*/
@RestController
@RequestMapping("pharmaceuticals/aSafeJcyd")
@Api(tags = "")
@Transactional(rollbackFor = Exception.class)
public class ASafeJcydController extends BaseController {
/**
*
*/
@Resource
private ASafeJcydService aSafeJcydService;
/**
*
*
* @param page
* @param aSafeJcyd
* @return
*/
@GetMapping
@ApiOperation(value = "分页条件查询", response = ASafeJcyd.class)
public AjaxResult page(Page<ASafeJcyd> page, ASafeJcyd aSafeJcyd) {
return success(aSafeJcydService.page(page, new QueryWrapper<>(aSafeJcyd)));
}
/**
*
*
* @param id
* @return
*/
@GetMapping("{id}")
@ApiOperation(value = "通过主键查询单条", response = ASafeJcyd.class)
public AjaxResult getById(@PathVariable Serializable id) {
return success(aSafeJcydService.getById(id));
}
/**
*
*
* @param aSafeJcyd
* @return
*/
@PostMapping
@ApiOperation(value = "新增", response = ASafeJcyd.class)
public AjaxResult insert(@RequestBody ASafeJcyd aSafeJcyd) {
return success(aSafeJcydService.save(aSafeJcyd));
}
/**
*
*
* @param aSafeJcyd
* @return
*/
@PutMapping
@ApiOperation(value = "修改")
public AjaxResult update(@RequestBody ASafeJcyd aSafeJcyd) {
return success(aSafeJcydService.updateById(aSafeJcyd));
}
/**
*
*
* @param idList
* @return
*/
@DeleteMapping
@ApiOperation(value = "删除")
public AjaxResult delete(@RequestParam("idList") List<Long> idList) {
return success(aSafeJcydService.removeByIds(idList));
}
}

@ -0,0 +1,105 @@
package com.mudu.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.mudu.base.controller.BaseController;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mudu.base.domain.AjaxResult;
import com.mudu.entity.ASafeQybhysb;
import com.mudu.service.ASafeQybhysbService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;
/**
* (ASafeQybhysb)
*
* @author wu
* @since 2024-02-26 10:43:23
*/
@RestController
@RequestMapping("pharmaceuticals/aSafeQybhysb")
@Api(tags = "企业编号映射表")
@Transactional(rollbackFor = Exception.class)
public class ASafeQybhysbController extends BaseController {
/**
*
*/
@Resource
private ASafeQybhysbService aSafeQybhysbService;
/**
*
*
* @param page
* @param aSafeQybhysb
* @return
*/
@GetMapping
@ApiOperation(value = "分页条件查询企业编号映射表", response = ASafeQybhysb.class)
public AjaxResult page(Page<ASafeQybhysb> page, ASafeQybhysb aSafeQybhysb) {
return success(aSafeQybhysbService.page(page, new QueryWrapper<>(aSafeQybhysb)));
}
/**
*
*
* @param id
* @return
*/
@GetMapping("{id}")
@ApiOperation(value = "通过主键查询单条企业编号映射表", response = ASafeQybhysb.class)
public AjaxResult getById(@PathVariable Serializable id) {
return success(aSafeQybhysbService.getById(id));
}
/**
*
*
* @param aSafeQybhysb
* @return
*/
@PostMapping
@ApiOperation(value = "新增企业编号映射表", response = ASafeQybhysb.class)
public AjaxResult insert(@RequestBody ASafeQybhysb aSafeQybhysb) {
return success(aSafeQybhysbService.save(aSafeQybhysb));
}
/**
*
*
* @param aSafeQybhysb
* @return
*/
@PutMapping
@ApiOperation(value = "修改企业编号映射表")
public AjaxResult update(@RequestBody ASafeQybhysb aSafeQybhysb) {
return success(aSafeQybhysbService.updateById(aSafeQybhysb));
}
/**
*
*
* @param idList
* @return
*/
@DeleteMapping
@ApiOperation(value = "删除企业编号映射表")
public AjaxResult delete(@RequestParam("idList") List<Long> idList) {
return success(aSafeQybhysbService.removeByIds(idList));
}
}

@ -0,0 +1,105 @@
package com.mudu.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.mudu.base.controller.BaseController;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mudu.base.domain.AjaxResult;
import com.mudu.entity.ASafeQyfxwz;
import com.mudu.service.ASafeQyfxwzService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;
/**
* (ASafeQyfxwz)
*
* @author wu
* @since 2024-02-26 10:43:23
*/
@RestController
@RequestMapping("pharmaceuticals/aSafeQyfxwz")
@Api(tags = "")
@Transactional(rollbackFor = Exception.class)
public class ASafeQyfxwzController extends BaseController {
/**
*
*/
@Resource
private ASafeQyfxwzService aSafeQyfxwzService;
/**
*
*
* @param page
* @param aSafeQyfxwz
* @return
*/
@GetMapping
@ApiOperation(value = "分页条件查询", response = ASafeQyfxwz.class)
public AjaxResult page(Page<ASafeQyfxwz> page, ASafeQyfxwz aSafeQyfxwz) {
return success(aSafeQyfxwzService.page(page, new QueryWrapper<>(aSafeQyfxwz)));
}
/**
*
*
* @param id
* @return
*/
@GetMapping("{id}")
@ApiOperation(value = "通过主键查询单条", response = ASafeQyfxwz.class)
public AjaxResult getById(@PathVariable Serializable id) {
return success(aSafeQyfxwzService.getById(id));
}
/**
*
*
* @param aSafeQyfxwz
* @return
*/
@PostMapping
@ApiOperation(value = "新增", response = ASafeQyfxwz.class)
public AjaxResult insert(@RequestBody ASafeQyfxwz aSafeQyfxwz) {
return success(aSafeQyfxwzService.save(aSafeQyfxwz));
}
/**
*
*
* @param aSafeQyfxwz
* @return
*/
@PutMapping
@ApiOperation(value = "修改")
public AjaxResult update(@RequestBody ASafeQyfxwz aSafeQyfxwz) {
return success(aSafeQyfxwzService.updateById(aSafeQyfxwz));
}
/**
*
*
* @param idList
* @return
*/
@DeleteMapping
@ApiOperation(value = "删除")
public AjaxResult delete(@RequestParam("idList") List<Long> idList) {
return success(aSafeQyfxwzService.removeByIds(idList));
}
}

@ -0,0 +1,117 @@
package com.mudu.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mudu.base.controller.BaseController;
import com.mudu.base.domain.AjaxResult;
import com.mudu.entity.ASafeQyjcxx;
import com.mudu.service.ASafeQyjcxxService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;
/**
* (ASafeQyjcxx)
*
* @author wu
* @since 2024-02-26 10:43:24
*/
@RestController
@RequestMapping("pharmaceuticals/aSafeQyjcxx")
@Api(tags = "企业信息")
@Transactional(rollbackFor = Exception.class)
public class ASafeQyjcxxController extends BaseController {
/**
*
*/
@Resource
private ASafeQyjcxxService aSafeQyjcxxService;
/**
*
*
* @param page
* @param aSafeQyjcxx
* @return
*/
@GetMapping
@ApiOperation(value = "分页条件查询", response = ASafeQyjcxx.class)
public AjaxResult page(Page<ASafeQyjcxx> page, ASafeQyjcxx aSafeQyjcxx) {
return success(aSafeQyjcxxService.page(page, new QueryWrapper<>(aSafeQyjcxx)));
}
/**
*
*
* @param id
* @return
*/
@GetMapping("{id}")
@ApiOperation(value = "通过主键查询单条", response = ASafeQyjcxx.class)
public AjaxResult getById(@PathVariable Serializable id) {
return success(aSafeQyjcxxService.getById(id));
}
/**
*
*
* @param aSafeQyjcxx
* @return
*/
@PostMapping
@ApiOperation(value = "新增", response = ASafeQyjcxx.class)
public AjaxResult insert(@RequestBody ASafeQyjcxx aSafeQyjcxx) {
return success(aSafeQyjcxxService.save(aSafeQyjcxx));
}
/**
*
*
* @param aSafeQyjcxx
* @return
*/
@PutMapping
@ApiOperation(value = "修改")
public AjaxResult update(@RequestBody ASafeQyjcxx aSafeQyjcxx) {
return success(aSafeQyjcxxService.updateById(aSafeQyjcxx));
}
/**
*
*
* @param idList
* @return
*/
@DeleteMapping
@ApiOperation(value = "删除")
public AjaxResult delete(@RequestParam("idList") List<Long> idList) {
return success(aSafeQyjcxxService.removeByIds(idList));
}
/**
*
*
* @return
*/
@GetMapping("/dataSynchronous")
@ApiOperation(value = "数据同步")
public AjaxResult dataSynchronous() {
aSafeQyjcxxService.dataSynchronous();
return success();
}
}

@ -0,0 +1,105 @@
package com.mudu.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.mudu.base.controller.BaseController;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mudu.base.domain.AjaxResult;
import com.mudu.entity.ASafeXcrw;
import com.mudu.service.ASafeXcrwService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;
/**
* (ASafeXcrw)
*
* @author wu
* @since 2024-02-26 10:43:24
*/
@RestController
@RequestMapping("pharmaceuticals/aSafeXcrw")
@Api(tags = "")
@Transactional(rollbackFor = Exception.class)
public class ASafeXcrwController extends BaseController {
/**
*
*/
@Resource
private ASafeXcrwService aSafeXcrwService;
/**
*
*
* @param page
* @param aSafeXcrw
* @return
*/
@GetMapping
@ApiOperation(value = "分页条件查询", response = ASafeXcrw.class)
public AjaxResult page(Page<ASafeXcrw> page, ASafeXcrw aSafeXcrw) {
return success(aSafeXcrwService.page(page, new QueryWrapper<>(aSafeXcrw)));
}
/**
*
*
* @param id
* @return
*/
@GetMapping("{id}")
@ApiOperation(value = "通过主键查询单条", response = ASafeXcrw.class)
public AjaxResult getById(@PathVariable Serializable id) {
return success(aSafeXcrwService.getById(id));
}
/**
*
*
* @param aSafeXcrw
* @return
*/
@PostMapping
@ApiOperation(value = "新增", response = ASafeXcrw.class)
public AjaxResult insert(@RequestBody ASafeXcrw aSafeXcrw) {
return success(aSafeXcrwService.save(aSafeXcrw));
}
/**
*
*
* @param aSafeXcrw
* @return
*/
@PutMapping
@ApiOperation(value = "修改")
public AjaxResult update(@RequestBody ASafeXcrw aSafeXcrw) {
return success(aSafeXcrwService.updateById(aSafeXcrw));
}
/**
*
*
* @param idList
* @return
*/
@DeleteMapping
@ApiOperation(value = "删除")
public AjaxResult delete(@RequestParam("idList") List<Long> idList) {
return success(aSafeXcrwService.removeByIds(idList));
}
}

@ -0,0 +1,105 @@
package com.mudu.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.mudu.base.controller.BaseController;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mudu.base.domain.AjaxResult;
import com.mudu.entity.ASafeXcrwjcx;
import com.mudu.service.ASafeXcrwjcxService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;
/**
* (ASafeXcrwjcx)
*
* @author wu
* @since 2024-02-26 10:43:24
*/
@RestController
@RequestMapping("pharmaceuticals/aSafeXcrwjcx")
@Api(tags = "")
@Transactional(rollbackFor = Exception.class)
public class ASafeXcrwjcxController extends BaseController {
/**
*
*/
@Resource
private ASafeXcrwjcxService aSafeXcrwjcxService;
/**
*
*
* @param page
* @param aSafeXcrwjcx
* @return
*/
@GetMapping
@ApiOperation(value = "分页条件查询", response = ASafeXcrwjcx.class)
public AjaxResult page(Page<ASafeXcrwjcx> page, ASafeXcrwjcx aSafeXcrwjcx) {
return success(aSafeXcrwjcxService.page(page, new QueryWrapper<>(aSafeXcrwjcx)));
}
/**
*
*
* @param id
* @return
*/
@GetMapping("{id}")
@ApiOperation(value = "通过主键查询单条", response = ASafeXcrwjcx.class)
public AjaxResult getById(@PathVariable Serializable id) {
return success(aSafeXcrwjcxService.getById(id));
}
/**
*
*
* @param aSafeXcrwjcx
* @return
*/
@PostMapping
@ApiOperation(value = "新增", response = ASafeXcrwjcx.class)
public AjaxResult insert(@RequestBody ASafeXcrwjcx aSafeXcrwjcx) {
return success(aSafeXcrwjcxService.save(aSafeXcrwjcx));
}
/**
*
*
* @param aSafeXcrwjcx
* @return
*/
@PutMapping
@ApiOperation(value = "修改")
public AjaxResult update(@RequestBody ASafeXcrwjcx aSafeXcrwjcx) {
return success(aSafeXcrwjcxService.updateById(aSafeXcrwjcx));
}
/**
*
*
* @param idList
* @return
*/
@DeleteMapping
@ApiOperation(value = "删除")
public AjaxResult delete(@RequestParam("idList") List<Long> idList) {
return success(aSafeXcrwjcxService.removeByIds(idList));
}
}

@ -0,0 +1,105 @@
package com.mudu.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.mudu.base.controller.BaseController;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mudu.base.domain.AjaxResult;
import com.mudu.entity.ASafeXcrwjcxzgxx;
import com.mudu.service.ASafeXcrwjcxzgxxService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;
/**
* (ASafeXcrwjcxzgxx)
*
* @author wu
* @since 2024-02-26 10:43:24
*/
@RestController
@RequestMapping("pharmaceuticals/aSafeXcrwjcxzgxx")
@Api(tags = "")
@Transactional(rollbackFor = Exception.class)
public class ASafeXcrwjcxzgxxController extends BaseController {
/**
*
*/
@Resource
private ASafeXcrwjcxzgxxService aSafeXcrwjcxzgxxService;
/**
*
*
* @param page
* @param aSafeXcrwjcxzgxx
* @return
*/
@GetMapping
@ApiOperation(value = "分页条件查询", response = ASafeXcrwjcxzgxx.class)
public AjaxResult page(Page<ASafeXcrwjcxzgxx> page, ASafeXcrwjcxzgxx aSafeXcrwjcxzgxx) {
return success(aSafeXcrwjcxzgxxService.page(page, new QueryWrapper<>(aSafeXcrwjcxzgxx)));
}
/**
*
*
* @param id
* @return
*/
@GetMapping("{id}")
@ApiOperation(value = "通过主键查询单条", response = ASafeXcrwjcxzgxx.class)
public AjaxResult getById(@PathVariable Serializable id) {
return success(aSafeXcrwjcxzgxxService.getById(id));
}
/**
*
*
* @param aSafeXcrwjcxzgxx
* @return
*/
@PostMapping
@ApiOperation(value = "新增", response = ASafeXcrwjcxzgxx.class)
public AjaxResult insert(@RequestBody ASafeXcrwjcxzgxx aSafeXcrwjcxzgxx) {
return success(aSafeXcrwjcxzgxxService.save(aSafeXcrwjcxzgxx));
}
/**
*
*
* @param aSafeXcrwjcxzgxx
* @return
*/
@PutMapping
@ApiOperation(value = "修改")
public AjaxResult update(@RequestBody ASafeXcrwjcxzgxx aSafeXcrwjcxzgxx) {
return success(aSafeXcrwjcxzgxxService.updateById(aSafeXcrwjcxzgxx));
}
/**
*
*
* @param idList
* @return
*/
@DeleteMapping
@ApiOperation(value = "删除")
public AjaxResult delete(@RequestParam("idList") List<Long> idList) {
return success(aSafeXcrwjcxzgxxService.removeByIds(idList));
}
}

@ -0,0 +1,105 @@
package com.mudu.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.mudu.base.controller.BaseController;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mudu.base.domain.AjaxResult;
import com.mudu.entity.ASafeYhzgxx;
import com.mudu.service.ASafeYhzgxxService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;
/**
* (ASafeYhzgxx)
*
* @author wu
* @since 2024-02-26 10:43:25
*/
@RestController
@RequestMapping("pharmaceuticals/aSafeYhzgxx")
@Api(tags = "")
@Transactional(rollbackFor = Exception.class)
public class ASafeYhzgxxController extends BaseController {
/**
*
*/
@Resource
private ASafeYhzgxxService aSafeYhzgxxService;
/**
*
*
* @param page
* @param aSafeYhzgxx
* @return
*/
@GetMapping
@ApiOperation(value = "分页条件查询", response = ASafeYhzgxx.class)
public AjaxResult page(Page<ASafeYhzgxx> page, ASafeYhzgxx aSafeYhzgxx) {
return success(aSafeYhzgxxService.page(page, new QueryWrapper<>(aSafeYhzgxx)));
}
/**
*
*
* @param id
* @return
*/
@GetMapping("{id}")
@ApiOperation(value = "通过主键查询单条", response = ASafeYhzgxx.class)
public AjaxResult getById(@PathVariable Serializable id) {
return success(aSafeYhzgxxService.getById(id));
}
/**
*
*
* @param aSafeYhzgxx
* @return
*/
@PostMapping
@ApiOperation(value = "新增", response = ASafeYhzgxx.class)
public AjaxResult insert(@RequestBody ASafeYhzgxx aSafeYhzgxx) {
return success(aSafeYhzgxxService.save(aSafeYhzgxx));
}
/**
*
*
* @param aSafeYhzgxx
* @return
*/
@PutMapping
@ApiOperation(value = "修改")
public AjaxResult update(@RequestBody ASafeYhzgxx aSafeYhzgxx) {
return success(aSafeYhzgxxService.updateById(aSafeYhzgxx));
}
/**
*
*
* @param idList
* @return
*/
@DeleteMapping
@ApiOperation(value = "删除")
public AjaxResult delete(@RequestParam("idList") List<Long> idList) {
return success(aSafeYhzgxxService.removeByIds(idList));
}
}

@ -0,0 +1,105 @@
package com.mudu.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.mudu.base.controller.BaseController;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mudu.base.domain.AjaxResult;
import com.mudu.entity.ASafeZcrw;
import com.mudu.service.ASafeZcrwService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;
/**
* (ASafeZcrw)
*
* @author wu
* @since 2024-02-26 10:43:25
*/
@RestController
@RequestMapping("pharmaceuticals/aSafeZcrw")
@Api(tags = "")
@Transactional(rollbackFor = Exception.class)
public class ASafeZcrwController extends BaseController {
/**
*
*/
@Resource
private ASafeZcrwService aSafeZcrwService;
/**
*
*
* @param page
* @param aSafeZcrw
* @return
*/
@GetMapping
@ApiOperation(value = "分页条件查询", response = ASafeZcrw.class)
public AjaxResult page(Page<ASafeZcrw> page, ASafeZcrw aSafeZcrw) {
return success(aSafeZcrwService.page(page, new QueryWrapper<>(aSafeZcrw)));
}
/**
*
*
* @param id
* @return
*/
@GetMapping("{id}")
@ApiOperation(value = "通过主键查询单条", response = ASafeZcrw.class)
public AjaxResult getById(@PathVariable Serializable id) {
return success(aSafeZcrwService.getById(id));
}
/**
*
*
* @param aSafeZcrw
* @return
*/
@PostMapping
@ApiOperation(value = "新增", response = ASafeZcrw.class)
public AjaxResult insert(@RequestBody ASafeZcrw aSafeZcrw) {
return success(aSafeZcrwService.save(aSafeZcrw));
}
/**
*
*
* @param aSafeZcrw
* @return
*/
@PutMapping
@ApiOperation(value = "修改")
public AjaxResult update(@RequestBody ASafeZcrw aSafeZcrw) {
return success(aSafeZcrwService.updateById(aSafeZcrw));
}
/**
*
*
* @param idList
* @return
*/
@DeleteMapping
@ApiOperation(value = "删除")
public AjaxResult delete(@RequestParam("idList") List<Long> idList) {
return success(aSafeZcrwService.removeByIds(idList));
}
}

@ -0,0 +1,105 @@
package com.mudu.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.mudu.base.controller.BaseController;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mudu.base.domain.AjaxResult;
import com.mudu.entity.ASafeZcrwjl;
import com.mudu.service.ASafeZcrwjlService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;
/**
* (ASafeZcrwjl)
*
* @author wu
* @since 2024-02-26 10:43:25
*/
@RestController
@RequestMapping("pharmaceuticals/aSafeZcrwjl")
@Api(tags = "")
@Transactional(rollbackFor = Exception.class)
public class ASafeZcrwjlController extends BaseController {
/**
*
*/
@Resource
private ASafeZcrwjlService aSafeZcrwjlService;
/**
*
*
* @param page
* @param aSafeZcrwjl
* @return
*/
@GetMapping
@ApiOperation(value = "分页条件查询", response = ASafeZcrwjl.class)
public AjaxResult page(Page<ASafeZcrwjl> page, ASafeZcrwjl aSafeZcrwjl) {
return success(aSafeZcrwjlService.page(page, new QueryWrapper<>(aSafeZcrwjl)));
}
/**
*
*
* @param id
* @return
*/
@GetMapping("{id}")
@ApiOperation(value = "通过主键查询单条", response = ASafeZcrwjl.class)
public AjaxResult getById(@PathVariable Serializable id) {
return success(aSafeZcrwjlService.getById(id));
}
/**
*
*
* @param aSafeZcrwjl
* @return
*/
@PostMapping
@ApiOperation(value = "新增", response = ASafeZcrwjl.class)
public AjaxResult insert(@RequestBody ASafeZcrwjl aSafeZcrwjl) {
return success(aSafeZcrwjlService.save(aSafeZcrwjl));
}
/**
*
*
* @param aSafeZcrwjl
* @return
*/
@PutMapping
@ApiOperation(value = "修改")
public AjaxResult update(@RequestBody ASafeZcrwjl aSafeZcrwjl) {
return success(aSafeZcrwjlService.updateById(aSafeZcrwjl));
}
/**
*
*
* @param idList
* @return
*/
@DeleteMapping
@ApiOperation(value = "删除")
public AjaxResult delete(@RequestParam("idList") List<Long> idList) {
return success(aSafeZcrwjlService.removeByIds(idList));
}
}

@ -0,0 +1,69 @@
package com.mudu.entity;
import java.util.Date;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;
/**
* (ASafeBmxx)
*
* @author wu
* @since 2024-02-26 10:43:22
*/
@Data
@ApiModel("风险库部门信息表实体类")
@TableName(value = "a_safe_bmxx")
public class ASafeBmxx implements Serializable {
private static final long serialVersionUID = -12700076800046848L;
/**
*
*/
@ApiModelProperty(value = "信息编号")
private String xxbh;
/**
*
*/
@ApiModelProperty(value = "部门编号")
private String bmbh;
/**
*
*/
@ApiModelProperty(value = "部门名称")
private String bmmc;
/**
*
*/
@ApiModelProperty(value = "父级编号")
private String pid;
/**
* 0 1
*/
@ApiModelProperty(value = "记录状态 0弃用 1正常")
private Integer jlzt;
/**
*
*/
@ApiModelProperty(value = "入库时间")
private Date rksj;
private String gxry;
private String rkry;
/**
*
*/
@ApiModelProperty(value = "更新时间")
private Date gxsj;
/**
*
*/
@ApiModelProperty(value = "顺序")
private Integer xssx;
}

@ -0,0 +1,129 @@
package com.mudu.entity;
import java.util.Date;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;
/**
* (ASafeFxd)
*
* @author wu
* @since 2024-02-26 10:43:22
*/
@Data
@ApiModel("实体类")
@TableName(value = "a_safe_fxd")
public class ASafeFxd implements Serializable {
private static final long serialVersionUID = 524412765206425836L;
private String xxbh;
/**
*
*/
@ApiModelProperty(value = "企业编号")
private String qybh;
private String sfxdbh;
/**
*
*/
@ApiModelProperty(value = "风险点")
private String fxd;
/**
*
*/
@ApiModelProperty(value = "风险点编号")
private String fxdbh;
/**
*
*/
@ApiModelProperty(value = "风险名称")
private String fxmc;
/**
* ID
*/
@ApiModelProperty(value = "管理类别ID")
private String gllbbh;
/**
* VALUE
*/
@ApiModelProperty(value = "管理类别VALUE")
private String gllbvalue;
/**
* ID
*/
@ApiModelProperty(value = "风险等级ID")
private String fxdjid;
/**
* VALUE
*/
@ApiModelProperty(value = "风险等级VALUE")
private String fxdjvalue;
/**
*
*/
@ApiModelProperty(value = "事故类型")
private String sglx;
/**
*
*/
@ApiModelProperty(value = "具体管控措施")
private String jtgkcs;
/**
*
*/
@ApiModelProperty(value = "能否编辑")
private Integer nfbj;
/**
*
*/
@ApiModelProperty(value = "能否删除")
private Integer nfsc;
/**
*
*/
@ApiModelProperty(value = "是否基础库")
private Integer sfjck;
/**
*
*/
@ApiModelProperty(value = "启用状态")
private Integer qyzt;
/**
*
*/
@ApiModelProperty(value = "备注")
private String bz;
/**
*
*/
@ApiModelProperty(value = "入库人员")
private String rkry;
/**
*
*/
@ApiModelProperty(value = "更新人员")
private String gxry;
/**
*
*/
@ApiModelProperty(value = "入库时间")
private Date rksj;
/**
*
*/
@ApiModelProperty(value = "更新时间")
private Date gxsj;
/**
*
*/
@ApiModelProperty(value = "记录状态")
private Integer jlzt;
}

@ -0,0 +1,128 @@
package com.mudu.entity;
import java.util.Date;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;
/**
* (ASafeFxd20231220)
*
* @author wu
* @since 2024-02-26 10:43:22
*/
@Data
@ApiModel("实体类")
@TableName(value = "a_safe_fxd20231220")
public class ASafeFxd20231220 implements Serializable {
private static final long serialVersionUID = -22890239996510742L;
private String xxbh;
/**
*
*/
@ApiModelProperty(value = "企业编号")
private String qybh;
/**
*
*/
@ApiModelProperty(value = "风险点")
private String fxd;
/**
*
*/
@ApiModelProperty(value = "风险点编号")
private String fxdbh;
/**
*
*/
@ApiModelProperty(value = "风险名称")
private String fxmc;
/**
* ID
*/
@ApiModelProperty(value = "管理类别ID")
private String gllbbh;
/**
* VALUE
*/
@ApiModelProperty(value = "管理类别VALUE")
private String gllbvalue;
/**
* ID
*/
@ApiModelProperty(value = "风险等级ID")
private String fxdjid;
/**
* VALUE
*/
@ApiModelProperty(value = "风险等级VALUE")
private String fxdjvalue;
/**
*
*/
@ApiModelProperty(value = "事故类型")
private String sglx;
/**
*
*/
@ApiModelProperty(value = "具体管控措施")
private String jtgkcs;
/**
*
*/
@ApiModelProperty(value = "能否编辑")
private Integer nfbj;
/**
*
*/
@ApiModelProperty(value = "能否删除")
private Integer nfsc;
/**
*
*/
@ApiModelProperty(value = "是否基础库")
private Integer sfjck;
/**
*
*/
@ApiModelProperty(value = "启用状态")
private Integer qyzt;
/**
*
*/
@ApiModelProperty(value = "备注")
private String bz;
/**
*
*/
@ApiModelProperty(value = "入库人员")
private String rkry;
/**
*
*/
@ApiModelProperty(value = "更新人员")
private String gxry;
/**
*
*/
@ApiModelProperty(value = "入库时间")
private Date rksj;
/**
*
*/
@ApiModelProperty(value = "更新时间")
private Date gxsj;
/**
*
*/
@ApiModelProperty(value = "记录状态")
private Integer jlzt;
}

@ -0,0 +1,73 @@
package com.mudu.entity;
import java.util.Date;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;
/**
* (ASafeFxdwz)
*
* @author wu
* @since 2024-02-26 10:43:22
*/
@Data
@ApiModel("实体类")
@TableName(value = "a_safe_fxdwz")
public class ASafeFxdwz implements Serializable {
private static final long serialVersionUID = -84222585664561710L;
private String xxbh;
/**
*
*/
@ApiModelProperty(value = "企业风险点编号")
private String qyfxdbh;
/**
*
*/
@ApiModelProperty(value = "企业编号")
private String qybh;
/**
*
*/
@ApiModelProperty(value = "位置编号")
private String wzbh;
/**
*
*/
@ApiModelProperty(value = "设备数量")
private Integer sbsl;
/**
*
*/
@ApiModelProperty(value = "入库人员")
private String rkry;
/**
*
*/
@ApiModelProperty(value = "入库时间")
private Date rksj;
/**
*
*/
@ApiModelProperty(value = "更新人员")
private String gxry;
/**
*
*/
@ApiModelProperty(value = "更新时间")
private Date gxsj;
/**
*
*/
@ApiModelProperty(value = "记录状态")
private Integer jlzt;
}

@ -0,0 +1,133 @@
package com.mudu.entity;
import java.util.Date;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;
/**
* (ASafeFxk)
*
* @author wu
* @since 2024-02-26 10:43:23
*/
@Data
@ApiModel("实体类")
@TableName(value = "a_safe_fxk")
public class ASafeFxk implements Serializable {
private static final long serialVersionUID = 822617077832817726L;
private String xxbh;
/**
*
*/
@ApiModelProperty(value = "管理类别")
private String gllbbh;
/**
*
*/
@ApiModelProperty(value = "市风险点编号")
private String sfxdbh;
/**
*
*/
@ApiModelProperty(value = "风险名称")
private String fxd;
/**
*
*/
@ApiModelProperty(value = "风险点")
private String fxdm;
/**
* ID
*/
@ApiModelProperty(value = "风险等级ID")
private String fxdjid;
/**
* VALUE
*/
@ApiModelProperty(value = "风险等级VALUE")
private String fxdjvalue;
/**
*
*/
@ApiModelProperty(value = "事故类型")
private String sglx;
/**
*
*/
@ApiModelProperty(value = "整改期限")
private String zgqx;
/**
* id
*/
@ApiModelProperty(value = "关联企业类型id")
private String glqylxid;
/**
* value
*/
@ApiModelProperty(value = "关联企业类型value")
private String glqylxvalue;
/**
*
*/
@ApiModelProperty(value = "工程技术")
private String gcjs;
/**
*
*/
@ApiModelProperty(value = "安全管理")
private String aqgl;
/**
*
*/
@ApiModelProperty(value = "培训教育")
private String pxjy;
/**
*
*/
@ApiModelProperty(value = "应急处置")
private String yjcz;
/**
*
*/
@ApiModelProperty(value = "个体防护")
private String gtfh;
/**
*
*/
@ApiModelProperty(value = "法律依据")
private String flyj;
/**
*
*/
@ApiModelProperty(value = "入库时间")
private Date rksj;
/**
*
*/
@ApiModelProperty(value = "入库人员")
private String rkry;
/**
*
*/
@ApiModelProperty(value = "更新时间")
private Date gxsj;
/**
*
*/
@ApiModelProperty(value = "人性人员")
private String gxry;
/**
*
*/
@ApiModelProperty(value = "记录状态")
private Integer jlzt;
}

@ -0,0 +1,63 @@
package com.mudu.entity;
import java.util.Date;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;
/**
* (ASafeGllb)
*
* @author wu
* @since 2024-02-26 10:43:23
*/
@Data
@ApiModel("实体类")
@TableName(value = "a_safe_gllb")
public class ASafeGllb implements Serializable {
private static final long serialVersionUID = -76274677396325303L;
private String xxbh;
/**
*
*/
@ApiModelProperty(value = "管理类别编号")
private String gllbbh;
/**
*
*/
@ApiModelProperty(value = "管理类别")
private String gllb;
/**
*
*/
@ApiModelProperty(value = "记录状态")
private Integer jlzt;
/**
*
*/
@ApiModelProperty(value = "入库时间")
private Date rksj;
/**
*
*/
@ApiModelProperty(value = "跟新时间")
private Date gxsj;
/**
*
*/
@ApiModelProperty(value = "入库人员")
private String rkry;
/**
*
*/
@ApiModelProperty(value = "更新人员")
private String gxry;
}

@ -0,0 +1,85 @@
package com.mudu.entity;
import java.util.Date;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;
/**
* (ASafeJcyd)
*
* @author wu
* @since 2024-02-26 10:43:23
*/
@Data
@ApiModel("实体类")
@TableName(value = "a_safe_jcyd")
public class ASafeJcyd implements Serializable {
private static final long serialVersionUID = 878793166022196007L;
private String xxbh;
/**
*
*/
@ApiModelProperty(value = "检查要点")
private String jcyd;
/**
*
*/
@ApiModelProperty(value = "检查要点编号")
private String jcydbh;
/**
* 0 1
*/
@ApiModelProperty(value = "是否重点检查项 0否 1是")
private Object sfzdjcx;
/**
*
*/
@ApiModelProperty(value = "整改期限")
private String zgqx;
/**
*
*/
@ApiModelProperty(value = "检查依据")
private String jcyj;
/**
*
*/
@ApiModelProperty(value = "违法条款")
private String wftk;
/**
*
*/
@ApiModelProperty(value = "父级编号")
private String pid;
/**
*
*/
@ApiModelProperty(value = "入库时间")
private Date rksj;
/**
*
*/
@ApiModelProperty(value = "更新时间")
private Date gxsj;
private String rkry;
private String gxry;
/**
*
*/
@ApiModelProperty(value = "记录状态")
private Integer jlzt;
/**
*
*/
@ApiModelProperty(value = "顺序")
private Integer xssx;
}

@ -0,0 +1,63 @@
package com.mudu.entity;
import java.util.Date;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;
/**
* (ASafeQybhysb)
*
* @author wu
* @since 2024-02-26 10:43:23
*/
@Data
@ApiModel("企业编号映射表实体类")
@TableName(value = "a_safe_qybhysb")
public class ASafeQybhysb implements Serializable {
private static final long serialVersionUID = 167333084636450946L;
private String xxbh;
/**
*
*/
@ApiModelProperty(value = "企业编号")
private String qybh;
/**
*
*/
@ApiModelProperty(value = "企业名称")
private String qymc;
/**
*
*/
@ApiModelProperty(value = "入库人员")
private String rkry;
/**
*
*/
@ApiModelProperty(value = "更新人员")
private String gxry;
/**
*
*/
@ApiModelProperty(value = "入库时间")
private Date rksj;
/**
*
*/
@ApiModelProperty(value = "更新时间")
private Date gxsj;
/**
*
*/
@ApiModelProperty(value = "记录状态")
private Integer jlzt;
}

@ -0,0 +1,68 @@
package com.mudu.entity;
import java.util.Date;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;
/**
* (ASafeQyfxwz)
*
* @author wu
* @since 2024-02-26 10:43:23
*/
@Data
@ApiModel("实体类")
@TableName(value = "a_safe_qyfxwz")
public class ASafeQyfxwz implements Serializable {
private static final long serialVersionUID = 816018157701927273L;
private String xxbh;
/**
*
*/
@ApiModelProperty(value = "位置名称")
private String wzmc;
/**
*
*/
@ApiModelProperty(value = "企业编号")
private String qybh;
/**
*
*/
@ApiModelProperty(value = "显示顺序")
private Integer xssx;
/**
*
*/
@ApiModelProperty(value = "记录状态")
private Integer jlzt;
/**
*
*/
@ApiModelProperty(value = "入库人员")
private String rkry;
/**
*
*/
@ApiModelProperty(value = "入库时间")
private String gxry;
/**
*
*/
@ApiModelProperty(value = "更新时间")
private Date rksj;
/**
*
*/
@ApiModelProperty(value = "更新人员")
private Date gxsj;
}

@ -0,0 +1,609 @@
package com.mudu.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mudu.entity.dto.response.EnterpriseResponse;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import java.io.Serializable;
import java.text.NumberFormat;
import java.util.Date;
/**
* (ASafeQyjcxx)
*
* @author wu
* @since 2024-02-26 10:43:24
*/
@Getter
@Setter
@ApiModel("实体类")
@TableName(value = "a_safe_qyjcxx")
public class ASafeQyjcxx implements Serializable {
private static final long serialVersionUID = -50281110442061251L;
private String xxbh;
/**
*
*/
@ApiModelProperty(value = "企业名称")
private String qymc;
/**
*
*/
@ApiModelProperty(value = "其他名称")
private String qtmc;
/**
*
*/
@ApiModelProperty(value = "统一社会信用编码")
private String tyshxybm;
/**
*
*/
@ApiModelProperty(value = "经度")
private Double jd;
/**
*
*/
@ApiModelProperty(value = "纬度")
private Double 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;
/**
*
*/
@ApiModelProperty(value = "科达企业编号,用来对照")
private String kdqybh;
public ASafeQyjcxx() {
}
public ASafeQyjcxx(EnterpriseResponse res) {
this.jd = conversion(res.getLongitude());
this.wd = conversion(res.getLatitude());
this.zcdz = res.getRegisterAddress();
this.fdqymc = res.getParkName();
this.fdqylxr = res.getPersonInCharge();
this.fdqylxdh = res.getPersonInChargePhone();
this.xzqhbh = "320506103";
this.xzqhmc = "木渎镇";
this.xzqhnbbm = "1.320000.320500.320506.320506103";
this.wgbh = res.getLocationID();
this.wgmc = res.getLocationName();
// this.qyxzid = res.getTypeID();
// this.qyxzvalue = res.getTypeName();
// this.hylbmlid = res.getIndustryID();
// this.hylbmlvalue = res.getIndustryName();
// this.qyzt = res.getStatus();
this.cyrysl = String.valueOf(res.getPerson());
this.frdbxm = res.getPersonName();
this.frdbdh = res.getPhone();
}
/**
* double
*
* @param number
* @return double
*/
private Double conversion(String number) {
double num = Double.parseDouble(number);
// 使用 NumberFormat 格式化保留 5 位小数
NumberFormat nf = NumberFormat.getInstance();
nf.setMaximumFractionDigits(5);
return Double.parseDouble(nf.format(num));
}
}

@ -0,0 +1,103 @@
package com.mudu.entity;
import java.util.Date;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;
/**
* (ASafeXcrw)
*
* @author wu
* @since 2024-02-26 10:43:24
*/
@Data
@ApiModel("实体类")
@TableName(value = "a_safe_xcrw")
public class ASafeXcrw implements Serializable {
private static final long serialVersionUID = -36857779780957488L;
private String xxbh;
/**
*
*/
@ApiModelProperty(value = "周期编号")
private String zqbh;
/**
*
*/
@ApiModelProperty(value = "企业编号")
private String qybh;
/**
*
*/
@ApiModelProperty(value = "巡查项")
private Integer xcx;
/**
*
*/
@ApiModelProperty(value = "完成项")
private Integer wcx;
/**
*
*/
@ApiModelProperty(value = "发现隐患树")
private Integer fxyhs;
/**
*
*/
@ApiModelProperty(value = "完成状态")
private Integer wczt;
/**
*
*/
@ApiModelProperty(value = "检查时间")
private Date jcsj;
/**
*
*/
@ApiModelProperty(value = "其他人员")
private String qtry;
/**
*
*/
@ApiModelProperty(value = "专家意见")
private String zjyj;
/**
*
*/
@ApiModelProperty(value = "任务类型")
private String rwlx;
/**
*
*/
@ApiModelProperty(value = "入库时间")
private Date rksj;
/**
*
*/
@ApiModelProperty(value = "入库人员")
private String rkry;
/**
*
*/
@ApiModelProperty(value = "更新时间")
private Date gxsj;
/**
*
*/
@ApiModelProperty(value = "更新人员")
private String gxry;
/**
*
*/
@ApiModelProperty(value = "记录状态")
private Integer jlzt;
}

@ -0,0 +1,217 @@
package com.mudu.entity;
import java.util.Date;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;
/**
* (ASafeXcrwjcx)
*
* @author wu
* @since 2024-02-26 10:43:24
*/
@Data
@ApiModel("实体类")
@TableName(value = "a_safe_xcrwjcx")
public class ASafeXcrwjcx implements Serializable {
private static final long serialVersionUID = 253429016629233219L;
/**
*
*/
@ApiModelProperty(value = "信息编号")
private String xxbh;
/**
*
*/
@ApiModelProperty(value = "企业编号")
private String qybh;
/**
*
*/
@ApiModelProperty(value = "企业风险点编号")
private String qyfxdbh;
/**
*
*/
@ApiModelProperty(value = "周期编号")
private String zqbh;
/**
*
*/
@ApiModelProperty(value = "任务编号")
private String rwbh;
/**
*
*/
@ApiModelProperty(value = "检查时间")
private Date jcsj;
/**
*
*/
@ApiModelProperty(value = "检查项结果")
private String jcxjg;
/**
*
*/
@ApiModelProperty(value = "检查要点")
private String jcyd;
/**
*
*/
@ApiModelProperty(value = "检查要点编号")
private String jcydbh;
/**
* 0 1
*/
@ApiModelProperty(value = "是否重点检查项 0否 1 是")
private Integer sfzdjcx;
/**
*
*/
@ApiModelProperty(value = "整改期限")
private Date zgqx;
/**
*
*/
@ApiModelProperty(value = "整改状态")
private Integer zgzt;
/**
*
*/
@ApiModelProperty(value = "完成状态")
private Integer wczt;
/**
*
*/
@ApiModelProperty(value = "整改时间")
private Date zgsj;
/**
*
*/
@ApiModelProperty(value = "整改描述")
private String zgms;
/**
*
*/
@ApiModelProperty(value = "整改逾期")
private Integer zgyq;
/**
*
*/
@ApiModelProperty(value = "历史整改逾期")
private Integer lszgyq;
/**
*
*/
@ApiModelProperty(value = "复查状态")
private Integer fczt;
/**
*
*/
@ApiModelProperty(value = "复查历史逾期")
private Integer fclsyq;
/**
*
*/
@ApiModelProperty(value = "复查信息")
private String fcxx;
/**
*
*/
@ApiModelProperty(value = "复查逾期")
private Integer fcyq;
/**
*
*/
@ApiModelProperty(value = "复查时间")
private Date fcsj;
/**
*
*/
@ApiModelProperty(value = "复查期限")
private Date fcqx;
/**
*
*/
@ApiModelProperty(value = "复查是否合格")
private Integer fcsfhg;
/**
*
*/
@ApiModelProperty(value = "复查不合格")
private Integer fcbhg;
/**
*
*/
@ApiModelProperty(value = "位置编号")
private String wzbh;
/**
*
*/
@ApiModelProperty(value = "隐患描述")
private String yhms;
/**
*
*/
@ApiModelProperty(value = "备注")
private String bz;
/**
*
*/
@ApiModelProperty(value = "是否多次发生隐患")
private Integer sfdcfsyh;
/**
*
*/
@ApiModelProperty(value = "是否展示")
private Integer sfzs;
/**
*
*/
@ApiModelProperty(value = "巡查位置编号")
private String xcwzbh;
/**
*
*/
@ApiModelProperty(value = "巡查风险点编号")
private String xcfxdbh;
/**
*
*/
@ApiModelProperty(value = "任务类型")
private Integer rwlx;
/**
*
*/
@ApiModelProperty(value = "入库时间")
private Date rksj;
/**
*
*/
@ApiModelProperty(value = "入库人员")
private String rkry;
/**
*
*/
@ApiModelProperty(value = "更新时间")
private Date gxsj;
/**
*
*/
@ApiModelProperty(value = "更新人员")
private String gxry;
/**
*
*/
@ApiModelProperty(value = "记录状态")
private Integer jlzt;
}

@ -0,0 +1,93 @@
package com.mudu.entity;
import java.util.Date;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;
/**
* (ASafeXcrwjcxzgxx)
*
* @author wu
* @since 2024-02-26 10:43:25
*/
@Data
@ApiModel("实体类")
@TableName(value = "a_safe_xcrwjcxzgxx")
public class ASafeXcrwjcxzgxx implements Serializable {
private static final long serialVersionUID = 973627969644943727L;
private String xxbh;
/**
*
*/
@ApiModelProperty(value = "周期编号")
private String zqbh;
/**
*
*/
@ApiModelProperty(value = "任务编号")
private String rwbh;
/**
*
*/
@ApiModelProperty(value = "巡查检查项编号")
private String xcjcxbh;
/**
*
*/
@ApiModelProperty(value = "描述")
private String ms;
/**
*
*/
@ApiModelProperty(value = "数据来源")
private String sjlx;
/**
*
*/
@ApiModelProperty(value = "时间")
private Date sj;
/**
*
*/
@ApiModelProperty(value = "是否合格")
private Integer sfhg;
/**
*
*/
@ApiModelProperty(value = "到期日期")
private Date dqrq;
/**
*
*/
@ApiModelProperty(value = "记录状态")
private Integer jlzt;
/**
*
*/
@ApiModelProperty(value = "入库时间")
private Date rksj;
/**
*
*/
@ApiModelProperty(value = "跟新时间")
private Date gxsj;
/**
*
*/
@ApiModelProperty(value = "入库人员")
private String rkry;
/**
*
*/
@ApiModelProperty(value = "跟新人员")
private String gxry;
}

@ -0,0 +1,148 @@
package com.mudu.entity;
import java.util.Date;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;
/**
* (ASafeYhzgxx)
*
* @author wu
* @since 2024-02-26 10:43:25
*/
@Data
@ApiModel("实体类")
@TableName(value = "a_safe_yhzgxx")
public class ASafeYhzgxx implements Serializable {
private static final long serialVersionUID = -41863728980427289L;
private String xxbh;
/**
*
*/
@ApiModelProperty(value = "企业编号")
private String qybh;
/**
*
*/
@ApiModelProperty(value = "企业风险点编号")
private String qyfxdbh;
/**
*
*/
@ApiModelProperty(value = "位置编号")
private String wzbh;
/**
*
*/
@ApiModelProperty(value = "隐患来源")
private String yhly;
/**
*
*/
@ApiModelProperty(value = "检查时间")
private Date jcsj;
/**
*
*/
@ApiModelProperty(value = "整改期限")
private Date zgqx;
/**
*
*/
@ApiModelProperty(value = "不合格检查项")
private Integer bhgjcx;
/**
*
*/
@ApiModelProperty(value = "整改状态")
private Integer zgzt;
/**
*
*/
@ApiModelProperty(value = "是否展示")
private Integer sfzs;
/**
*
*/
@ApiModelProperty(value = "自查记录编号")
private String zcjlbh;
/**
*
*/
@ApiModelProperty(value = "任务编号")
private String rwbh;
/**
*
*/
@ApiModelProperty(value = "巡查位置编号")
private String xcwzbh;
/**
*
*/
@ApiModelProperty(value = "复查是否合格")
private Integer fcsfhg;
/**
*
*/
@ApiModelProperty(value = "隐患描述")
private String yhms;
/**
*
*/
@ApiModelProperty(value = "整改结果")
private String zgjg;
/**
*
*/
@ApiModelProperty(value = "整改时间")
private Date zgsj;
/**
*
*/
@ApiModelProperty(value = "历史逾期")
private Integer lsyq;
/**
*
*/
@ApiModelProperty(value = "周期编号")
private String zqbh;
/**
*
*/
@ApiModelProperty(value = "完成状态")
private Integer wczt;
/**
*
*/
@ApiModelProperty(value = "入库时间")
private Date rksj;
/**
*
*/
@ApiModelProperty(value = "入库人员")
private String rkry;
/**
*
*/
@ApiModelProperty(value = "更新时间")
private Date gxsj;
/**
*
*/
@ApiModelProperty(value = "跟新人员")
private String gxry;
/**
*
*/
@ApiModelProperty(value = "记录状态")
private Integer jlzt;
}

@ -0,0 +1,83 @@
package com.mudu.entity;
import java.util.Date;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;
/**
* (ASafeZcrw)
*
* @author wu
* @since 2024-02-26 10:43:25
*/
@Data
@ApiModel("实体类")
@TableName(value = "a_safe_zcrw")
public class ASafeZcrw implements Serializable {
private static final long serialVersionUID = 958781896969860908L;
private String xxbh;
/**
*
*/
@ApiModelProperty(value = "周期编号")
private String zqbh;
/**
*
*/
@ApiModelProperty(value = "企业编号")
private String qybh;
/**
*
*/
@ApiModelProperty(value = "自查项")
private Integer zcx;
/**
*
*/
@ApiModelProperty(value = "完成项")
private Integer wcx;
/**
*
*/
@ApiModelProperty(value = "发现隐患数")
private Integer fxyhs;
/**
*
*/
@ApiModelProperty(value = "完成状态")
private Integer wczt;
/**
*
*/
@ApiModelProperty(value = "入库时间")
private Date rksj;
/**
*
*/
@ApiModelProperty(value = "入库人员")
private String rkry;
/**
*
*/
@ApiModelProperty(value = "更新时间")
private Date gxsj;
/**
*
*/
@ApiModelProperty(value = "更新人员")
private String gxry;
/**
*
*/
@ApiModelProperty(value = "记录状态")
private Integer jlzt;
}

@ -0,0 +1,133 @@
package com.mudu.entity;
import java.util.Date;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;
/**
* (ASafeZcrwjl)
*
* @author wu
* @since 2024-02-26 10:43:25
*/
@Data
@ApiModel("实体类")
@TableName(value = "a_safe_zcrwjl")
public class ASafeZcrwjl implements Serializable {
private static final long serialVersionUID = -25715805175164681L;
private String xxbh;
/**
*
*/
@ApiModelProperty(value = "周期编号")
private String zqbh;
/**
*
*/
@ApiModelProperty(value = "任务编号")
private String rwbh;
/**
*
*/
@ApiModelProperty(value = "企业编号")
private String qybh;
/**
*
*/
@ApiModelProperty(value = "企业风险点编号")
private String qyfxdbh;
/**
*
*/
@ApiModelProperty(value = "企业风险点位置编号")
private String qyfxdwzbh;
/**
*
*/
@ApiModelProperty(value = "位置编号")
private String wzbh;
/**
*
*/
@ApiModelProperty(value = "自查任务位置编号")
private String zcrwwzbh;
/**
*
*/
@ApiModelProperty(value = "设备数量")
private Integer sbsl;
/**
*
*/
@ApiModelProperty(value = "检查状态")
private Integer jczt;
/**
*
*/
@ApiModelProperty(value = "完成状态")
private Integer wczt;
/**
*
*/
@ApiModelProperty(value = "是否检查")
private Integer sfjc;
/**
*
*/
@ApiModelProperty(value = "检查时间")
private Date jcsj;
/**
*
*/
@ApiModelProperty(value = "是否采取有限管控措施")
private Integer sfcqyxgkcs;
/**
*
*/
@ApiModelProperty(value = "具体管控措施")
private String jtgkcs;
/**
*
*/
@ApiModelProperty(value = "是否发现隐患")
private Integer sffxyh;
/**
*
*/
@ApiModelProperty(value = "隐患描述")
private String yhms;
/**
*
*/
@ApiModelProperty(value = "入库时间")
private Date rksj;
/**
*
*/
@ApiModelProperty(value = "入库人员")
private String rkry;
/**
*
*/
@ApiModelProperty(value = "跟新时间")
private Date gxsj;
/**
*
*/
@ApiModelProperty(value = "跟新人员")
private String gxry;
/**
*
*/
@ApiModelProperty(value = "记录状态")
private Integer jlzt;
}

@ -0,0 +1,145 @@
package com.mudu.entity.dto.response;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
/**
*
*
* @author wu
* @since 2024/2/22 16:48
*/
@Data
@ApiModel(value = "企业信息响应类")
public class EnterpriseResponse implements Serializable {
private static final long serialVersionUID = -2964947748678034353L;
/**
* id
*/
@ApiModelProperty(value = "主键id")
private String id;
/**
*
*/
@ApiModelProperty(value = "企业名称")
private String name;
/**
*
*/
@ApiModelProperty(value = "机构代码证")
private String certificateCode;
/**
*
*/
@ApiModelProperty(value = "经度")
private String longitude;
/**
*
*/
@ApiModelProperty(value = "维度")
private String latitude;
/**
*
*/
@ApiModelProperty(value = "注册地")
private String registerAddress;
/**
*
*/
@ApiModelProperty(value = "经营地")
private String businessAddress;
/**
*
*/
@ApiModelProperty(value = "所属园区")
private String parkName;
/**
*
*/
@ApiModelProperty(value = "房东企业联系人")
private String personInCharge;
/**
*
*/
@ApiModelProperty(value = "房东企业联系电话")
private String personInChargePhone;
/**
*
*/
@ApiModelProperty(value = "网格编号")
private String locationID;
/**
*
*/
@ApiModelProperty(value = "网格名称")
private String locationName;
/**
*
*/
@ApiModelProperty(value = "企业性质类别")
private String typeID;
/**
*
*/
@ApiModelProperty(value = "企业性质")
private String typeName;
/**
*
*/
@ApiModelProperty(value = "行业列表代码")
private String industryID;
/**
*
*/
@ApiModelProperty(value = "行业类别门类")
private String industryName;
/**
*
*/
@ApiModelProperty(value = "从业人员数量")
private Integer person;
/**
*
*/
@ApiModelProperty(value = "主营产品")
private String businessScope;
/**
*
*/
@ApiModelProperty(value = "企业状态")
private String Status;
/**
*
*/
@ApiModelProperty(value = "法人代表")
private String personName;
/**
*
*/
@ApiModelProperty(value = "法人电话")
private String phone;
}

@ -0,0 +1,37 @@
package com.mudu.entity.dto.response;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
/**
*
*
* @author wu
* @since 2024/2/26 14:23
*/
@Data
@ApiModel(value = "通用响应类")
public class GeneralResponse implements Serializable {
private static final long serialVersionUID = 6094594534125452950L;
/**
*
*/
@ApiModelProperty(value = "接口响应消息")
private String msg;
/**
*
*/
@ApiModelProperty(value = "响应数据")
private Object data;
/**
*
*/
@ApiModelProperty(value = "响应代码")
private String code;
}

@ -0,0 +1,15 @@
package com.mudu.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mudu.entity.ASafeBmxx;
/**
* (ASafeBmxx)访
*
* @author wu
* @since 2024-02-26 10:43:22
*/
public interface ASafeBmxxMapper extends BaseMapper<ASafeBmxx> {
}

@ -0,0 +1,15 @@
package com.mudu.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mudu.entity.ASafeFxd;
/**
* (ASafeFxd)访
*
* @author wu
* @since 2024-02-26 10:43:22
*/
public interface ASafeFxdMapper extends BaseMapper<ASafeFxd> {
}

@ -0,0 +1,15 @@
package com.mudu.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mudu.entity.ASafeFxdwz;
/**
* (ASafeFxdwz)访
*
* @author wu
* @since 2024-02-26 10:43:22
*/
public interface ASafeFxdwzMapper extends BaseMapper<ASafeFxdwz> {
}

@ -0,0 +1,15 @@
package com.mudu.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mudu.entity.ASafeFxk;
/**
* (ASafeFxk)访
*
* @author wu
* @since 2024-02-26 10:43:23
*/
public interface ASafeFxkMapper extends BaseMapper<ASafeFxk> {
}

@ -0,0 +1,15 @@
package com.mudu.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mudu.entity.ASafeGllb;
/**
* (ASafeGllb)访
*
* @author wu
* @since 2024-02-26 10:43:23
*/
public interface ASafeGllbMapper extends BaseMapper<ASafeGllb> {
}

@ -0,0 +1,15 @@
package com.mudu.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mudu.entity.ASafeJcyd;
/**
* (ASafeJcyd)访
*
* @author wu
* @since 2024-02-26 10:43:23
*/
public interface ASafeJcydMapper extends BaseMapper<ASafeJcyd> {
}

@ -0,0 +1,15 @@
package com.mudu.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mudu.entity.ASafeQybhysb;
/**
* (ASafeQybhysb)访
*
* @author wu
* @since 2024-02-26 10:43:23
*/
public interface ASafeQybhysbMapper extends BaseMapper<ASafeQybhysb> {
}

@ -0,0 +1,15 @@
package com.mudu.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mudu.entity.ASafeQyfxwz;
/**
* (ASafeQyfxwz)访
*
* @author wu
* @since 2024-02-26 10:43:23
*/
public interface ASafeQyfxwzMapper extends BaseMapper<ASafeQyfxwz> {
}

@ -0,0 +1,24 @@
package com.mudu.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mudu.entity.ASafeQyjcxx;
import org.apache.ibatis.annotations.Param;
/**
* (ASafeQyjcxx)访
*
* @author wu
* @since 2024-02-26 10:43:24
*/
public interface ASafeQyjcxxMapper extends BaseMapper<ASafeQyjcxx> {
/**
*
*
* @param qymc
* @param xybm
* @return
*/
ASafeQyjcxx findOneByqymcOrXybm(@Param("qymc") String qymc, @Param("xybm") String xybm);
}

@ -0,0 +1,15 @@
package com.mudu.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mudu.entity.ASafeXcrw;
/**
* (ASafeXcrw)访
*
* @author wu
* @since 2024-02-26 10:43:24
*/
public interface ASafeXcrwMapper extends BaseMapper<ASafeXcrw> {
}

@ -0,0 +1,15 @@
package com.mudu.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mudu.entity.ASafeXcrwjcx;
/**
* (ASafeXcrwjcx)访
*
* @author wu
* @since 2024-02-26 10:43:24
*/
public interface ASafeXcrwjcxMapper extends BaseMapper<ASafeXcrwjcx> {
}

@ -0,0 +1,15 @@
package com.mudu.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mudu.entity.ASafeXcrwjcxzgxx;
/**
* (ASafeXcrwjcxzgxx)访
*
* @author wu
* @since 2024-02-26 10:43:25
*/
public interface ASafeXcrwjcxzgxxMapper extends BaseMapper<ASafeXcrwjcxzgxx> {
}

@ -0,0 +1,15 @@
package com.mudu.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mudu.entity.ASafeYhzgxx;
/**
* (ASafeYhzgxx)访
*
* @author wu
* @since 2024-02-26 10:43:25
*/
public interface ASafeYhzgxxMapper extends BaseMapper<ASafeYhzgxx> {
}

@ -0,0 +1,15 @@
package com.mudu.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mudu.entity.ASafeZcrw;
/**
* (ASafeZcrw)访
*
* @author wu
* @since 2024-02-26 10:43:25
*/
public interface ASafeZcrwMapper extends BaseMapper<ASafeZcrw> {
}

@ -0,0 +1,15 @@
package com.mudu.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mudu.entity.ASafeZcrwjl;
/**
* (ASafeZcrwjl)访
*
* @author wu
* @since 2024-02-26 10:43:25
*/
public interface ASafeZcrwjlMapper extends BaseMapper<ASafeZcrwjl> {
}

@ -0,0 +1,15 @@
package com.mudu.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mudu.entity.ASafeBmxx;
/**
* (ASafeBmxx)
*
* @author wu
* @since 2024-02-26 10:43:22
*/
public interface ASafeBmxxService extends IService<ASafeBmxx> {
}

@ -0,0 +1,15 @@
package com.mudu.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mudu.entity.ASafeFxd;
/**
* (ASafeFxd)
*
* @author wu
* @since 2024-02-26 10:43:22
*/
public interface ASafeFxdService extends IService<ASafeFxd> {
}

@ -0,0 +1,15 @@
package com.mudu.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mudu.entity.ASafeFxdwz;
/**
* (ASafeFxdwz)
*
* @author wu
* @since 2024-02-26 10:43:22
*/
public interface ASafeFxdwzService extends IService<ASafeFxdwz> {
}

@ -0,0 +1,15 @@
package com.mudu.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mudu.entity.ASafeFxk;
/**
* (ASafeFxk)
*
* @author wu
* @since 2024-02-26 10:43:23
*/
public interface ASafeFxkService extends IService<ASafeFxk> {
}

@ -0,0 +1,15 @@
package com.mudu.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mudu.entity.ASafeGllb;
/**
* (ASafeGllb)
*
* @author wu
* @since 2024-02-26 10:43:23
*/
public interface ASafeGllbService extends IService<ASafeGllb> {
}

@ -0,0 +1,15 @@
package com.mudu.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mudu.entity.ASafeJcyd;
/**
* (ASafeJcyd)
*
* @author wu
* @since 2024-02-26 10:43:23
*/
public interface ASafeJcydService extends IService<ASafeJcyd> {
}

@ -0,0 +1,15 @@
package com.mudu.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mudu.entity.ASafeQybhysb;
/**
* (ASafeQybhysb)
*
* @author wu
* @since 2024-02-26 10:43:23
*/
public interface ASafeQybhysbService extends IService<ASafeQybhysb> {
}

@ -0,0 +1,15 @@
package com.mudu.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mudu.entity.ASafeQyfxwz;
/**
* (ASafeQyfxwz)
*
* @author wu
* @since 2024-02-26 10:43:24
*/
public interface ASafeQyfxwzService extends IService<ASafeQyfxwz> {
}

@ -0,0 +1,28 @@
package com.mudu.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mudu.entity.ASafeQyjcxx;
/**
* (ASafeQyjcxx)
*
* @author wu
* @since 2024-02-26 10:43:24
*/
public interface ASafeQyjcxxService extends IService<ASafeQyjcxx> {
/**
*
*/
void dataSynchronous();
/**
*
*
* @param qymc
* @param xybm
* @return
*/
ASafeQyjcxx findOneByqymcOrXybm(String qymc, String xybm);
}

@ -0,0 +1,15 @@
package com.mudu.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mudu.entity.ASafeXcrw;
/**
* (ASafeXcrw)
*
* @author wu
* @since 2024-02-26 10:43:24
*/
public interface ASafeXcrwService extends IService<ASafeXcrw> {
}

@ -0,0 +1,15 @@
package com.mudu.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mudu.entity.ASafeXcrwjcx;
/**
* (ASafeXcrwjcx)
*
* @author wu
* @since 2024-02-26 10:43:24
*/
public interface ASafeXcrwjcxService extends IService<ASafeXcrwjcx> {
}

@ -0,0 +1,15 @@
package com.mudu.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mudu.entity.ASafeXcrwjcxzgxx;
/**
* (ASafeXcrwjcxzgxx)
*
* @author wu
* @since 2024-02-26 10:43:25
*/
public interface ASafeXcrwjcxzgxxService extends IService<ASafeXcrwjcxzgxx> {
}

@ -0,0 +1,15 @@
package com.mudu.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mudu.entity.ASafeYhzgxx;
/**
* (ASafeYhzgxx)
*
* @author wu
* @since 2024-02-26 10:43:25
*/
public interface ASafeYhzgxxService extends IService<ASafeYhzgxx> {
}

@ -0,0 +1,15 @@
package com.mudu.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mudu.entity.ASafeZcrw;
/**
* (ASafeZcrw)
*
* @author wu
* @since 2024-02-26 10:43:25
*/
public interface ASafeZcrwService extends IService<ASafeZcrw> {
}

@ -0,0 +1,15 @@
package com.mudu.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mudu.entity.ASafeZcrwjl;
/**
* (ASafeZcrwjl)
*
* @author wu
* @since 2024-02-26 10:43:25
*/
public interface ASafeZcrwjlService extends IService<ASafeZcrwjl> {
}

@ -0,0 +1,19 @@
package com.mudu.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mudu.mapper.ASafeBmxxMapper;
import com.mudu.entity.ASafeBmxx;
import com.mudu.service.ASafeBmxxService;
import org.springframework.stereotype.Service;
/**
* (ASafeBmxx)
*
* @author wu
* @since 2024-02-26 10:43:22
*/
@Service("aSafeBmxxService")
public class ASafeBmxxServiceImpl extends ServiceImpl<ASafeBmxxMapper, ASafeBmxx> implements ASafeBmxxService {
}

@ -0,0 +1,19 @@
package com.mudu.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mudu.mapper.ASafeFxdMapper;
import com.mudu.entity.ASafeFxd;
import com.mudu.service.ASafeFxdService;
import org.springframework.stereotype.Service;
/**
* (ASafeFxd)
*
* @author wu
* @since 2024-02-26 10:43:22
*/
@Service("aSafeFxdService")
public class ASafeFxdServiceImpl extends ServiceImpl<ASafeFxdMapper, ASafeFxd> implements ASafeFxdService {
}

@ -0,0 +1,19 @@
package com.mudu.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mudu.mapper.ASafeFxdwzMapper;
import com.mudu.entity.ASafeFxdwz;
import com.mudu.service.ASafeFxdwzService;
import org.springframework.stereotype.Service;
/**
* (ASafeFxdwz)
*
* @author wu
* @since 2024-02-26 10:43:22
*/
@Service("aSafeFxdwzService")
public class ASafeFxdwzServiceImpl extends ServiceImpl<ASafeFxdwzMapper, ASafeFxdwz> implements ASafeFxdwzService {
}

@ -0,0 +1,19 @@
package com.mudu.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mudu.mapper.ASafeFxkMapper;
import com.mudu.entity.ASafeFxk;
import com.mudu.service.ASafeFxkService;
import org.springframework.stereotype.Service;
/**
* (ASafeFxk)
*
* @author wu
* @since 2024-02-26 10:43:23
*/
@Service("aSafeFxkService")
public class ASafeFxkServiceImpl extends ServiceImpl<ASafeFxkMapper, ASafeFxk> implements ASafeFxkService {
}

@ -0,0 +1,19 @@
package com.mudu.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mudu.mapper.ASafeGllbMapper;
import com.mudu.entity.ASafeGllb;
import com.mudu.service.ASafeGllbService;
import org.springframework.stereotype.Service;
/**
* (ASafeGllb)
*
* @author wu
* @since 2024-02-26 10:43:23
*/
@Service("aSafeGllbService")
public class ASafeGllbServiceImpl extends ServiceImpl<ASafeGllbMapper, ASafeGllb> implements ASafeGllbService {
}

@ -0,0 +1,19 @@
package com.mudu.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mudu.mapper.ASafeJcydMapper;
import com.mudu.entity.ASafeJcyd;
import com.mudu.service.ASafeJcydService;
import org.springframework.stereotype.Service;
/**
* (ASafeJcyd)
*
* @author wu
* @since 2024-02-26 10:43:23
*/
@Service("aSafeJcydService")
public class ASafeJcydServiceImpl extends ServiceImpl<ASafeJcydMapper, ASafeJcyd> implements ASafeJcydService {
}

@ -0,0 +1,19 @@
package com.mudu.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mudu.mapper.ASafeQybhysbMapper;
import com.mudu.entity.ASafeQybhysb;
import com.mudu.service.ASafeQybhysbService;
import org.springframework.stereotype.Service;
/**
* (ASafeQybhysb)
*
* @author wu
* @since 2024-02-26 10:43:23
*/
@Service("aSafeQybhysbService")
public class ASafeQybhysbServiceImpl extends ServiceImpl<ASafeQybhysbMapper, ASafeQybhysb> implements ASafeQybhysbService {
}

@ -0,0 +1,19 @@
package com.mudu.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mudu.mapper.ASafeQyfxwzMapper;
import com.mudu.entity.ASafeQyfxwz;
import com.mudu.service.ASafeQyfxwzService;
import org.springframework.stereotype.Service;
/**
* (ASafeQyfxwz)
*
* @author wu
* @since 2024-02-26 10:43:24
*/
@Service("aSafeQyfxwzService")
public class ASafeQyfxwzServiceImpl extends ServiceImpl<ASafeQyfxwzMapper, ASafeQyfxwz> implements ASafeQyfxwzService {
}

@ -0,0 +1,90 @@
package com.mudu.service.impl;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.util.StrUtil;
import cn.hutool.http.HttpRequest;
import cn.hutool.json.JSONUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mudu.entity.ASafeQyjcxx;
import com.mudu.entity.dto.response.EnterpriseResponse;
import com.mudu.entity.dto.response.GeneralResponse;
import com.mudu.mapper.ASafeQyjcxxMapper;
import com.mudu.service.ASafeQyjcxxService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
/**
* (ASafeQyjcxx)
*
* @author wu
* @since 2024-02-26 10:43:24
*/
@Service("aSafeQyjcxxService")
public class ASafeQyjcxxServiceImpl extends ServiceImpl<ASafeQyjcxxMapper, ASafeQyjcxx> implements ASafeQyjcxxService {
@Value("${url}")
private String url;
/**
*
*
* @param str
* @return
*/
public static String replaceChineseBrackets(String str) {
if (StrUtil.isNotEmpty(str)) {
// 左括号 Unicode 编码:\uFF08
str = str.replace("\uFF08", "(");
// 右括号 Unicode 编码:\uFF09
str = str.replace("\uFF09", ")");
}
return str;
}
/**
*
*/
@Override
public void dataSynchronous() {
// 获取木渎企业数据
String body = HttpRequest.get(url + "/mudu/enterprise/findAll").execute().body();
GeneralResponse res = JSONUtil.toBean(body, GeneralResponse.class);
if (BeanUtil.isNotEmpty(res.getData())) {
String jsonStr = JSONUtil.toJsonStr(res.getData());
List<EnterpriseResponse> list = JSONUtil.toList(jsonStr, EnterpriseResponse.class);
// 相同的企业
List<ASafeQyjcxx> arr = new ArrayList<>();
// 只有木渎存在的企业
List<EnterpriseResponse> entList = new ArrayList<>();
// 遍历企业数据对比
list.forEach(x -> {
ASafeQyjcxx safeQyjcxx = findOneByqymcOrXybm(replaceChineseBrackets(x.getName()), x.getCertificateCode());
if (BeanUtil.isNotEmpty(safeQyjcxx)) {
arr.add(safeQyjcxx);
} else {
entList.add(x);
}
});
System.out.println("重复的数据" + arr.size());
System.out.println("不重复的数据" + entList.size());
}
// 填补我们ent表所有有点位的企业
}
/**
*
*
* @param qymc
* @param xybm
* @return
*/
@Override
public ASafeQyjcxx findOneByqymcOrXybm(String qymc, String xybm) {
return baseMapper.findOneByqymcOrXybm(qymc, xybm);
}
}

@ -0,0 +1,19 @@
package com.mudu.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mudu.mapper.ASafeXcrwMapper;
import com.mudu.entity.ASafeXcrw;
import com.mudu.service.ASafeXcrwService;
import org.springframework.stereotype.Service;
/**
* (ASafeXcrw)
*
* @author wu
* @since 2024-02-26 10:43:24
*/
@Service("aSafeXcrwService")
public class ASafeXcrwServiceImpl extends ServiceImpl<ASafeXcrwMapper, ASafeXcrw> implements ASafeXcrwService {
}

@ -0,0 +1,19 @@
package com.mudu.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mudu.mapper.ASafeXcrwjcxMapper;
import com.mudu.entity.ASafeXcrwjcx;
import com.mudu.service.ASafeXcrwjcxService;
import org.springframework.stereotype.Service;
/**
* (ASafeXcrwjcx)
*
* @author wu
* @since 2024-02-26 10:43:24
*/
@Service("aSafeXcrwjcxService")
public class ASafeXcrwjcxServiceImpl extends ServiceImpl<ASafeXcrwjcxMapper, ASafeXcrwjcx> implements ASafeXcrwjcxService {
}

@ -0,0 +1,19 @@
package com.mudu.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mudu.mapper.ASafeXcrwjcxzgxxMapper;
import com.mudu.entity.ASafeXcrwjcxzgxx;
import com.mudu.service.ASafeXcrwjcxzgxxService;
import org.springframework.stereotype.Service;
/**
* (ASafeXcrwjcxzgxx)
*
* @author wu
* @since 2024-02-26 10:43:25
*/
@Service("aSafeXcrwjcxzgxxService")
public class ASafeXcrwjcxzgxxServiceImpl extends ServiceImpl<ASafeXcrwjcxzgxxMapper, ASafeXcrwjcxzgxx> implements ASafeXcrwjcxzgxxService {
}

@ -0,0 +1,19 @@
package com.mudu.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mudu.mapper.ASafeYhzgxxMapper;
import com.mudu.entity.ASafeYhzgxx;
import com.mudu.service.ASafeYhzgxxService;
import org.springframework.stereotype.Service;
/**
* (ASafeYhzgxx)
*
* @author wu
* @since 2024-02-26 10:43:25
*/
@Service("aSafeYhzgxxService")
public class ASafeYhzgxxServiceImpl extends ServiceImpl<ASafeYhzgxxMapper, ASafeYhzgxx> implements ASafeYhzgxxService {
}

@ -0,0 +1,19 @@
package com.mudu.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mudu.mapper.ASafeZcrwMapper;
import com.mudu.entity.ASafeZcrw;
import com.mudu.service.ASafeZcrwService;
import org.springframework.stereotype.Service;
/**
* (ASafeZcrw)
*
* @author wu
* @since 2024-02-26 10:43:25
*/
@Service("aSafeZcrwService")
public class ASafeZcrwServiceImpl extends ServiceImpl<ASafeZcrwMapper, ASafeZcrw> implements ASafeZcrwService {
}

@ -0,0 +1,19 @@
package com.mudu.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mudu.mapper.ASafeZcrwjlMapper;
import com.mudu.entity.ASafeZcrwjl;
import com.mudu.service.ASafeZcrwjlService;
import org.springframework.stereotype.Service;
/**
* (ASafeZcrwjl)
*
* @author wu
* @since 2024-02-26 10:43:25
*/
@Service("aSafeZcrwjlService")
public class ASafeZcrwjlServiceImpl extends ServiceImpl<ASafeZcrwjlMapper, ASafeZcrwjl> implements ASafeZcrwjlService {
}

@ -0,0 +1,32 @@
server:
port: 9998
# DataSource Config
spring:
datasource:
url: jdbc:mysql://localhost:3306/wzawb?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: root
password: 123456
driverClassName: com.mysql.cj.jdbc.Driver
# 日志配置
logging:
level:
com.mudu: debug
org.springframework: warn
# MyBatis配置
mybatis-plus:
# 指定实体类所在包的路径MyBatis-Plus 会自动扫描该路径下的实体类
typeAliasesPackage: com.mudu.entity
# 指定 Mapper 接口所在包的路径MyBatis-Plus 会自动扫描该路径下的 Mapper 接口
mapperLocations: classpath*:mapper/mudu/*Mapper.xml
knife4j:
enable: true
openapi:
group:
test1:
group-name: 木渎
url: http://localhost:9028

@ -0,0 +1,33 @@
<?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.ASafeQyjcxxMapper">
<select id="findOneByqymcOrXybm" resultType="com.mudu.entity.ASafeQyjcxx">
SELECT asq.*
FROM a_safe_qyjcxx asq
<where>
<if test="qymc != null and qymc.trim() != ''">
<if test="xybm == null and xybm.trim() == ''">
and (REPLACE ( REPLACE ( asq.qymc, '', '(' ), '', ')' ) like concat('%',REPLACE ( REPLACE (
#{qymc}, '', '(' ), '', ')' ),'%'))
</if>
<if test="xybm != null and xybm.trim() != ''">
and (REPLACE ( REPLACE ( asq.qymc, '', '(' ), '', ')' ) like concat('%', REPLACE ( REPLACE (
#{qymc},
'', '(' ), '', ')' ),'%') or asq.tyshxybm like concat('%',#{xybm},'%'))
</if>
</if>
<if test="qymc == null or qymc.trim() == ''">
<if test="xybm != null and xybm.trim() != ''">
and (REPLACE ( REPLACE ( asq.tyshxybm, '', '(' ), '', ')' ) like concat('%',REPLACE ( REPLACE (
#{xybm}, '', '(' ), '', ')' ),'%'))
</if>
</if>
</where>
GROUP BY asq.XXBH
limit 1
</select>
</mapper>
Loading…
Cancel
Save