首次提交
0 parents
Showing
35 changed files
with
1990 additions
and
0 deletions
.gitignore
0 → 100644
pom.xml
0 → 100644
This diff is collapsed.
Click to expand it.
src/main/java/com/pashanhoo/Application.java
0 → 100644
| 1 | package com.pashanhoo; | ||
| 2 | |||
| 3 | import org.mybatis.spring.annotation.MapperScan; | ||
| 4 | import org.springframework.boot.SpringApplication; | ||
| 5 | import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
| 6 | import org.springframework.transaction.annotation.EnableTransactionManagement; | ||
| 7 | |||
| 8 | @SpringBootApplication(scanBasePackages={"com.pashanhoo"}) | ||
| 9 | @EnableTransactionManagement | ||
| 10 | @MapperScan(basePackages = {"com.pashanhoo.**.mapper"}) | ||
| 11 | public class Application { | ||
| 12 | public static void main(String[] args) { | ||
| 13 | SpringApplication app = new SpringApplication(Application.class); | ||
| 14 | app.run(args); | ||
| 15 | } | ||
| 16 | } | 
| 1 | package com.pashanhoo; | ||
| 2 | |||
| 3 | import io.swagger.annotations.Api; | ||
| 4 | import org.springframework.context.annotation.Bean; | ||
| 5 | import org.springframework.context.annotation.Configuration; | ||
| 6 | import springfox.documentation.builders.ApiInfoBuilder; | ||
| 7 | import springfox.documentation.builders.PathSelectors; | ||
| 8 | import springfox.documentation.builders.RequestHandlerSelectors; | ||
| 9 | import springfox.documentation.service.ApiInfo; | ||
| 10 | import springfox.documentation.spi.DocumentationType; | ||
| 11 | import springfox.documentation.spring.web.plugins.Docket; | ||
| 12 | import springfox.documentation.swagger2.annotations.EnableSwagger2; | ||
| 13 | |||
| 14 | /** | ||
| 15 | * swagger配置类 | ||
| 16 | */ | ||
| 17 | @Configuration | ||
| 18 | @EnableSwagger2 | ||
| 19 | public class SwaggerConfig { | ||
| 20 | @Bean | ||
| 21 | public Docket createRestApi() { | ||
| 22 | return new Docket(DocumentationType.SWAGGER_2) | ||
| 23 | .apiInfo(apiInfo()) | ||
| 24 | .select() | ||
| 25 | // 为当前包路径 | ||
| 26 | .apis(RequestHandlerSelectors.basePackage("com.pashanhoo")) | ||
| 27 | .apis(RequestHandlerSelectors.withClassAnnotation(Api.class)) | ||
| 28 | .paths(PathSelectors.any()) | ||
| 29 | .build(); | ||
| 30 | } | ||
| 31 | |||
| 32 | // 构建 api文档的详细信息函数,注意这里的注解引用的是哪个 | ||
| 33 | private ApiInfo apiInfo() { | ||
| 34 | return new ApiInfoBuilder() | ||
| 35 | // 页面标题 | ||
| 36 | .title("接口文档") | ||
| 37 | // 版本号 | ||
| 38 | .version("1.0") | ||
| 39 | // 描述 | ||
| 40 | .description("API 描述") | ||
| 41 | .build(); | ||
| 42 | } | ||
| 43 | |||
| 44 | } | 
| 1 | package com.pashanhoo.common; | ||
| 2 | |||
| 3 | public interface CommonConstant { | ||
| 4 | |||
| 5 | /** | ||
| 6 | * 新增校验报错状态 | ||
| 7 | */ | ||
| 8 | Integer CHECK_ERROR_2002=2002; | ||
| 9 | /** | ||
| 10 | * {@code 500 Server Error} (HTTP/1.0 - RFC 1945) | ||
| 11 | */ | ||
| 12 | Integer SC_INTERNAL_SERVER_ERROR_500 = 500; | ||
| 13 | /** | ||
| 14 | * {@code 200 OK} (HTTP/1.0 - RFC 1945) | ||
| 15 | */ | ||
| 16 | Integer SC_OK_200 = 200; | ||
| 17 | |||
| 18 | /** | ||
| 19 | * {@code 200 OK} (HTTP/1.0 - RFC 1945) | ||
| 20 | */ | ||
| 21 | Integer SC_INFO_206 = 206; | ||
| 22 | |||
| 23 | /** | ||
| 24 | * {@code 200 OK} (HTTP/1.0 - RFC 1945) | ||
| 25 | */ | ||
| 26 | Integer SC_INFO_210 = 210; | ||
| 27 | |||
| 28 | /** | ||
| 29 | * 字典信息缓存 | ||
| 30 | */ | ||
| 31 | String SYS_DICT_NAME = "sys:dict:name:"; | ||
| 32 | |||
| 33 | /** | ||
| 34 | * 字典信息缓存 | ||
| 35 | */ | ||
| 36 | String SYS_DICT_ID = "sys:dict:id:"; | ||
| 37 | |||
| 38 | /** | ||
| 39 | * 字典信息单条 | ||
| 40 | */ | ||
| 41 | String SYS_DICT_ALL = "sys:dict:all:"; | ||
| 42 | |||
| 43 | /** | ||
| 44 | * 字典信息缓存 | ||
| 45 | */ | ||
| 46 | String SYS_DICT_CODE = "sys:dict:code:"; | ||
| 47 | |||
| 48 | /** | ||
| 49 | * 菜单列表 | ||
| 50 | */ | ||
| 51 | String MENU_TREE = "sys:menu:"; | ||
| 52 | |||
| 53 | |||
| 54 | } | 
| 1 | package com.pashanhoo.common; | ||
| 2 | |||
| 3 | import com.alibaba.fastjson.JSONObject; | ||
| 4 | import org.slf4j.Logger; | ||
| 5 | import org.slf4j.LoggerFactory; | ||
| 6 | import org.springframework.beans.factory.annotation.Value; | ||
| 7 | import org.springframework.stereotype.Component; | ||
| 8 | |||
| 9 | import java.io.*; | ||
| 10 | import java.net.HttpURLConnection; | ||
| 11 | import java.net.URL; | ||
| 12 | import java.text.SimpleDateFormat; | ||
| 13 | import java.util.Date; | ||
| 14 | import java.util.HashMap; | ||
| 15 | import java.util.Map; | ||
| 16 | @Component | ||
| 17 | public class EciHttpUtil { | ||
| 18 | |||
| 19 | private static Logger logger = LoggerFactory.getLogger(EciHttpUtil.class); | ||
| 20 | @Value("${app.AppToken}") | ||
| 21 | private String appToken; | ||
| 22 | @Value("${app.AppSecret}") | ||
| 23 | private String appSecret; | ||
| 24 | |||
| 25 | @Value("${app.hostUrl}") | ||
| 26 | private String hostUrl; | ||
| 27 | |||
| 28 | |||
| 29 | |||
| 30 | |||
| 31 | public Map doPostForNew(String url, String params) { | ||
| 32 | logger.info("http request url:" + url); | ||
| 33 | logger.info("http request url:" + params); | ||
| 34 | PrintWriter out = null; | ||
| 35 | BufferedReader in = null; | ||
| 36 | Map jsonObject = new HashMap(); | ||
| 37 | try{ | ||
| 38 | URL url1=new URL(url); | ||
| 39 | HttpURLConnection conn= (HttpURLConnection) url1.openConnection(); | ||
| 40 | conn.setRequestMethod("POST"); | ||
| 41 | conn.setRequestProperty("accept","*/*"); | ||
| 42 | conn.setRequestProperty("connection","Keep-Alive"); | ||
| 43 | conn.setDoInput(true); | ||
| 44 | conn.setDoOutput(true); | ||
| 45 | conn.setRequestProperty("Content-Type", "application/json;charset=utf-8"); | ||
| 46 | //x-qys-signature生成方式:Md5(AppToken + AppSecret + timestamp),获取32位小写值 | ||
| 47 | long times=System.currentTimeMillis(); | ||
| 48 | String unSignature = appToken + appSecret + times; | ||
| 49 | String signature = MD5Util.getMD5(unSignature); | ||
| 50 | conn.setRequestProperty("x-qys-accesstoken", appToken); | ||
| 51 | conn.setRequestProperty("x-qys-signature", signature); | ||
| 52 | conn.setRequestProperty("x-qys-timestamp", String.valueOf(times)); | ||
| 53 | |||
| 54 | logger.info("x-qys-accesstoken==="+appToken); | ||
| 55 | logger.info("x-qys-signature==="+signature); | ||
| 56 | logger.info("x-qys-timestamp==="+System.currentTimeMillis()); | ||
| 57 | |||
| 58 | |||
| 59 | out=new PrintWriter(new OutputStreamWriter(conn.getOutputStream(),"utf-8")); | ||
| 60 | out.print(params); | ||
| 61 | out.flush(); | ||
| 62 | in = new BufferedReader(new InputStreamReader(conn.getInputStream(),"UTF-8")); | ||
| 63 | String result=""; | ||
| 64 | String line; | ||
| 65 | while ((line = in.readLine()) != null) { | ||
| 66 | result += line; | ||
| 67 | } | ||
| 68 | jsonObject = JSONObject.parseObject(result, Map.class); | ||
| 69 | }catch (Exception ex){ | ||
| 70 | logger.info("发送 POST 请求出现异常!" + ex); | ||
| 71 | ex.printStackTrace(); | ||
| 72 | }finally { | ||
| 73 | try { | ||
| 74 | if (out != null) { | ||
| 75 | out.close(); | ||
| 76 | } | ||
| 77 | if (in != null) { | ||
| 78 | in.close(); | ||
| 79 | } | ||
| 80 | } catch (IOException ex) { | ||
| 81 | ex.printStackTrace(); | ||
| 82 | } | ||
| 83 | } | ||
| 84 | return jsonObject; | ||
| 85 | } | ||
| 86 | |||
| 87 | public Map doGetForNew(String url) { | ||
| 88 | logger.info("http request url:" + url); | ||
| 89 | BufferedReader in = null; | ||
| 90 | String result = ""; | ||
| 91 | Map jsonObject = new HashMap(); | ||
| 92 | try{ | ||
| 93 | URL url1=new URL(url); | ||
| 94 | HttpURLConnection conn= (HttpURLConnection) url1.openConnection(); | ||
| 95 | conn.setRequestMethod("GET"); | ||
| 96 | conn.setRequestProperty("accept","*/*"); | ||
| 97 | conn.setRequestProperty("connection","Keep-Alive"); | ||
| 98 | conn.setRequestProperty("Charset", "utf-8"); | ||
| 99 | conn.setDoInput(true); | ||
| 100 | conn.setDoOutput(false); | ||
| 101 | //x-qys-signature生成方式:Md5(AppToken + AppSecret + timestamp),获取32位小写值 | ||
| 102 | long times=System.currentTimeMillis(); | ||
| 103 | String unSignature = appToken +appSecret + times; | ||
| 104 | String signature = MD5Util.getMD5(unSignature); | ||
| 105 | conn.setRequestProperty("x-qys-accesstoken", appToken); | ||
| 106 | conn.setRequestProperty("x-qys-signature", signature); | ||
| 107 | conn.setRequestProperty("x-qys-timestamp", String.valueOf(times)); | ||
| 108 | |||
| 109 | logger.info("x-qys-accesstoken==="+appToken); | ||
| 110 | logger.info("x-qys-signature==="+signature); | ||
| 111 | logger.info("x-qys-timestamp==="+System.currentTimeMillis()); | ||
| 112 | |||
| 113 | conn.connect(); | ||
| 114 | in = new BufferedReader(new InputStreamReader(conn.getInputStream(),"UTF-8")); | ||
| 115 | String line; | ||
| 116 | while ((line = in.readLine()) != null) { | ||
| 117 | result += line; | ||
| 118 | } | ||
| 119 | jsonObject = JSONObject.parseObject(result, Map.class); | ||
| 120 | }catch (Exception ex){ | ||
| 121 | logger.info("发送 POST 请求出现异常!" + ex); | ||
| 122 | ex.printStackTrace(); | ||
| 123 | }finally { | ||
| 124 | try { | ||
| 125 | if (in != null) { | ||
| 126 | in.close(); | ||
| 127 | } | ||
| 128 | } catch (IOException ex) { | ||
| 129 | ex.printStackTrace(); | ||
| 130 | } | ||
| 131 | } | ||
| 132 | return jsonObject; | ||
| 133 | } | ||
| 134 | |||
| 135 | |||
| 136 | |||
| 137 | /** | ||
| 138 | * 文件下载 | ||
| 139 | * | ||
| 140 | * @param documentId 合同文档ID | ||
| 141 | * @return | ||
| 142 | */ | ||
| 143 | public String download(String documentId,String bh) { | ||
| 144 | String url = hostUrl + "/document/download" + "?documentId=" + documentId; | ||
| 145 | InputStream in = null; | ||
| 146 | String absolutePath = ""; | ||
| 147 | OutputStream out = null; | ||
| 148 | try{ | ||
| 149 | URL url1=new URL(url); | ||
| 150 | HttpURLConnection conn= (HttpURLConnection) url1.openConnection(); | ||
| 151 | conn.setRequestMethod("GET"); | ||
| 152 | conn.setRequestProperty("accept","*/*"); | ||
| 153 | conn.setRequestProperty("connection","Keep-Alive"); | ||
| 154 | conn.setRequestProperty("Charset", "utf-8"); | ||
| 155 | conn.setDoInput(true); | ||
| 156 | conn.setDoOutput(true); | ||
| 157 | long times=System.currentTimeMillis(); | ||
| 158 | //x-qys-signature生成方式:Md5(AppToken + AppSecret + timestamp),获取32位小写值 | ||
| 159 | String unSignature = appToken + appSecret + times; | ||
| 160 | String signature = MD5Util.getMD5(unSignature); | ||
| 161 | conn.setRequestProperty("x-qys-accesstoken", appToken); | ||
| 162 | conn.setRequestProperty("x-qys-signature", signature); | ||
| 163 | conn.setRequestProperty("x-qys-timestamp", String.valueOf(times)); | ||
| 164 | |||
| 165 | logger.info("x-qys-accesstoken==="+appToken); | ||
| 166 | logger.info("x-qys-signature==="+signature); | ||
| 167 | logger.info("x-qys-timestamp==="+System.currentTimeMillis()); | ||
| 168 | |||
| 169 | conn.connect(); | ||
| 170 | in =conn.getInputStream(); | ||
| 171 | SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy"); | ||
| 172 | String dateDir = simpleDateFormat.format(new Date()); | ||
| 173 | File savePath = new File("D:\\ECI\\" + dateDir+bh); | ||
| 174 | if (!savePath.exists()) { | ||
| 175 | savePath.mkdirs(); | ||
| 176 | } | ||
| 177 | File filePath = new File(savePath + "\\" + documentId+".ofd"); | ||
| 178 | if (!filePath.exists()){ | ||
| 179 | filePath.createNewFile(); | ||
| 180 | } | ||
| 181 | out = new FileOutputStream(filePath); | ||
| 182 | byte[] buffer = new byte[4096]; | ||
| 183 | int readLength = 0; | ||
| 184 | |||
| 185 | while ((readLength = in.read(buffer)) != -1) { | ||
| 186 | out.write(buffer, 0, readLength); | ||
| 187 | } | ||
| 188 | absolutePath = filePath.getAbsolutePath(); | ||
| 189 | out.flush(); | ||
| 190 | }catch (Exception ex){ | ||
| 191 | logger.info("发送 POST 请求出现异常!" + ex); | ||
| 192 | ex.printStackTrace(); | ||
| 193 | }finally { | ||
| 194 | try { | ||
| 195 | if (in != null) { | ||
| 196 | in.close(); | ||
| 197 | } | ||
| 198 | if(out != null) { | ||
| 199 | out.close(); | ||
| 200 | } | ||
| 201 | } catch (IOException ex) { | ||
| 202 | ex.printStackTrace(); | ||
| 203 | } | ||
| 204 | } | ||
| 205 | return absolutePath; | ||
| 206 | } | ||
| 207 | |||
| 208 | |||
| 209 | |||
| 210 | |||
| 211 | |||
| 212 | |||
| 213 | |||
| 214 | } | 
| 1 | package com.pashanhoo.common; | ||
| 2 | |||
| 3 | import java.security.MessageDigest; | ||
| 4 | |||
| 5 | public class MD5Util { | ||
| 6 | |||
| 7 | public static String getMD5(String unEncryption) { | ||
| 8 | char[] hexDigits = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'}; | ||
| 9 | |||
| 10 | try { | ||
| 11 | byte[] btInput = unEncryption.getBytes(); | ||
| 12 | // 获得MD5摘要算法的 MessageDigest 对象 | ||
| 13 | MessageDigest mdInst = MessageDigest.getInstance("MD5"); | ||
| 14 | // 使用指定的字节更新摘要 | ||
| 15 | mdInst.update(btInput); | ||
| 16 | // 获得密文 | ||
| 17 | byte[] md = mdInst.digest(); | ||
| 18 | // 把密文转换成十六进制的字符串形式 | ||
| 19 | char[] str = new char[md.length * 2]; | ||
| 20 | int k = 0; | ||
| 21 | for (byte byte0 : md) { | ||
| 22 | str[k++] = hexDigits[byte0 >>> 4 & 0xf]; | ||
| 23 | str[k++] = hexDigits[byte0 & 0xf]; | ||
| 24 | } | ||
| 25 | return new String(str).toLowerCase(); | ||
| 26 | } catch (Exception e) { | ||
| 27 | e.printStackTrace(); | ||
| 28 | return null; | ||
| 29 | } | ||
| 30 | } | ||
| 31 | } | 
| 1 | package com.pashanhoo.common; | ||
| 2 | |||
| 3 | import com.baomidou.mybatisplus.core.toolkit.StringUtils; | ||
| 4 | import io.swagger.annotations.ApiModelProperty; | ||
| 5 | import lombok.Data; | ||
| 6 | |||
| 7 | @Data | ||
| 8 | public class PageInfo { | ||
| 9 | @ApiModelProperty(name = "currentPage",value = "页码") | ||
| 10 | private Integer currentPage = 1; | ||
| 11 | |||
| 12 | @ApiModelProperty(name = "pageSize",value = "每页个数") | ||
| 13 | private Integer pageSize = 10; | ||
| 14 | |||
| 15 | @ApiModelProperty(name = "sortField",value = "排序字段" ) | ||
| 16 | private String sortField; | ||
| 17 | |||
| 18 | @ApiModelProperty(name = "sortOrder",value = "升序(asc)或降序(desc)") | ||
| 19 | private String sortOrder; | ||
| 20 | |||
| 21 | public void defaultFillPageProp(String sortField, String sortOrder) { | ||
| 22 | if(StringUtils.isBlank(this.sortField)) { | ||
| 23 | this.sortField = sortField; | ||
| 24 | this.sortOrder = sortOrder; | ||
| 25 | } | ||
| 26 | } | ||
| 27 | } | 
| 1 | package com.pashanhoo.common; | ||
| 2 | |||
| 3 | import com.baomidou.mybatisplus.core.toolkit.StringUtils; | ||
| 4 | import org.apache.commons.codec.binary.Base64; | ||
| 5 | |||
| 6 | import java.io.*; | ||
| 7 | |||
| 8 | public class PdfUtil { | ||
| 9 | |||
| 10 | |||
| 11 | /** | ||
| 12 | * 获取文件base64 | ||
| 13 | * | ||
| 14 | */ | ||
| 15 | public static String fileToBase64(InputStream in) { | ||
| 16 | String base64String=""; | ||
| 17 | try { | ||
| 18 | byte[] bytes = toByteArray(in); | ||
| 19 | in.read(bytes); | ||
| 20 | base64String = Base64.encodeBase64String(bytes); | ||
| 21 | |||
| 22 | } catch (FileNotFoundException e) { | ||
| 23 | e.printStackTrace(); | ||
| 24 | } catch (IOException e) { | ||
| 25 | e.printStackTrace(); | ||
| 26 | } finally { | ||
| 27 | if (null != in) { | ||
| 28 | try { | ||
| 29 | in.close(); | ||
| 30 | } catch (IOException e) { | ||
| 31 | e.printStackTrace(); | ||
| 32 | } | ||
| 33 | } | ||
| 34 | return base64String; | ||
| 35 | } | ||
| 36 | } | ||
| 37 | |||
| 38 | public static byte[] toByteArray(InputStream input) throws IOException { | ||
| 39 | ByteArrayOutputStream output = new ByteArrayOutputStream(); | ||
| 40 | byte[] buffer = new byte[1024*4]; | ||
| 41 | int n = 0; | ||
| 42 | while (-1 != (n = input.read(buffer))) { | ||
| 43 | output.write(buffer, 0, n); | ||
| 44 | } | ||
| 45 | return output.toByteArray(); | ||
| 46 | } | ||
| 47 | } | 
| 1 | package com.pashanhoo.common; | ||
| 2 | |||
| 3 | |||
| 4 | |||
| 5 | |||
| 6 | import net.glxn.qrgen.core.image.ImageType; | ||
| 7 | import net.glxn.qrgen.javase.QRCode; | ||
| 8 | |||
| 9 | import java.io.ByteArrayOutputStream; | ||
| 10 | import java.io.File; | ||
| 11 | import java.io.FileOutputStream; | ||
| 12 | import java.io.OutputStream; | ||
| 13 | |||
| 14 | public class QRCodeUtil { | ||
| 15 | |||
| 16 | |||
| 17 | public static void imgUrl(String url,String fileName) { | ||
| 18 | try{ | ||
| 19 | ByteArrayOutputStream out= QRCode.from(url).to(ImageType.PNG).stream(); | ||
| 20 | byte[] data = out.toByteArray(); | ||
| 21 | OutputStream oute = new FileOutputStream(new File("E:\\ewm\\"+fileName)); | ||
| 22 | oute.write(data); | ||
| 23 | oute.flush(); | ||
| 24 | oute.close(); | ||
| 25 | }catch(Exception ex){ | ||
| 26 | ex.printStackTrace(); | ||
| 27 | } | ||
| 28 | |||
| 29 | } | ||
| 30 | |||
| 31 | |||
| 32 | |||
| 33 | |||
| 34 | } | 
| 1 | package com.pashanhoo.common; | ||
| 2 | |||
| 3 | import com.pashanhoo.qys.service.EciService; | ||
| 4 | import org.springframework.beans.factory.annotation.Autowired; | ||
| 5 | import org.springframework.context.annotation.Configuration; | ||
| 6 | import org.springframework.scheduling.annotation.EnableScheduling; | ||
| 7 | import org.springframework.scheduling.annotation.Scheduled; | ||
| 8 | |||
| 9 | @Configuration | ||
| 10 | @EnableScheduling | ||
| 11 | public class QysTask { | ||
| 12 | @Autowired | ||
| 13 | private EciService eciService; | ||
| 14 | |||
| 15 | @Scheduled(cron="0 0/5 * * * ?") | ||
| 16 | public void accessCreateContract() { | ||
| 17 | System.out.println("===========创建合同定时任务进来了========="); | ||
| 18 | eciService.accessCreateContract(); | ||
| 19 | System.out.println("===========创建合同定时任务走了========="); | ||
| 20 | } | ||
| 21 | |||
| 22 | } | 
| 1 | package com.pashanhoo.common; | ||
| 2 | |||
| 3 | import com.fasterxml.jackson.annotation.JsonInclude; | ||
| 4 | import io.swagger.annotations.ApiModel; | ||
| 5 | import io.swagger.annotations.ApiModelProperty; | ||
| 6 | |||
| 7 | import java.io.Serializable; | ||
| 8 | |||
| 9 | @ApiModel(value = "接口返回对象", description = "接口返回对象") | ||
| 10 | @JsonInclude | ||
| 11 | public class Result<T> implements Serializable { | ||
| 12 | |||
| 13 | private static final long serialVersionUID = 1L; | ||
| 14 | |||
| 15 | /** | ||
| 16 | * 成功标志 | ||
| 17 | */ | ||
| 18 | @ApiModelProperty(value = "成功标志") | ||
| 19 | private boolean success = true; | ||
| 20 | |||
| 21 | /** | ||
| 22 | * 返回处理消息 | ||
| 23 | */ | ||
| 24 | @ApiModelProperty(value = "返回处理消息") | ||
| 25 | private String message = "操作成功!"; | ||
| 26 | |||
| 27 | /** | ||
| 28 | * 返回代码 | ||
| 29 | */ | ||
| 30 | @ApiModelProperty(value = "返回代码") | ||
| 31 | private Integer code = 0; | ||
| 32 | |||
| 33 | /** | ||
| 34 | * 返回数据对象 data | ||
| 35 | */ | ||
| 36 | @ApiModelProperty(value = "返回数据对象") | ||
| 37 | private T result; | ||
| 38 | |||
| 39 | /** | ||
| 40 | * 时间戳 | ||
| 41 | */ | ||
| 42 | @ApiModelProperty(value = "时间戳") | ||
| 43 | private long timestamp = System.currentTimeMillis(); | ||
| 44 | |||
| 45 | public Result() { | ||
| 46 | |||
| 47 | } | ||
| 48 | |||
| 49 | public Result<T> success(String message) { | ||
| 50 | this.message = message; | ||
| 51 | this.code = CommonConstant.SC_OK_200; | ||
| 52 | this.success = true; | ||
| 53 | return this; | ||
| 54 | } | ||
| 55 | |||
| 56 | |||
| 57 | public static Result<Object> ok() { | ||
| 58 | Result<Object> r = new Result<Object>(); | ||
| 59 | r.setSuccess(true); | ||
| 60 | r.setCode(CommonConstant.SC_OK_200); | ||
| 61 | r.setMessage("成功"); | ||
| 62 | return r; | ||
| 63 | } | ||
| 64 | |||
| 65 | public static Result<Object> ok(String msg) { | ||
| 66 | Result<Object> r = new Result<Object>(); | ||
| 67 | r.setSuccess(true); | ||
| 68 | r.setCode(CommonConstant.SC_OK_200); | ||
| 69 | r.setMessage(msg); | ||
| 70 | return r; | ||
| 71 | } | ||
| 72 | |||
| 73 | public static <T> Result<T> ok(T data) { | ||
| 74 | Result<T> r = new Result<T>(); | ||
| 75 | r.setSuccess(true); | ||
| 76 | r.setCode(CommonConstant.SC_OK_200); | ||
| 77 | r.setResult(data); | ||
| 78 | return r; | ||
| 79 | } | ||
| 80 | |||
| 81 | public static Result<String> content(String data) { | ||
| 82 | Result<String> r = new Result<String>(); | ||
| 83 | r.setSuccess(true); | ||
| 84 | r.setCode(CommonConstant.SC_OK_200); | ||
| 85 | r.setResult(data); | ||
| 86 | return r; | ||
| 87 | } | ||
| 88 | public static Result<Object> info(Object data) { | ||
| 89 | Result<Object> r = new Result<Object>(); | ||
| 90 | r.setSuccess(false); | ||
| 91 | r.setCode(CommonConstant.SC_INFO_206); | ||
| 92 | r.setResult(data); | ||
| 93 | return r; | ||
| 94 | } | ||
| 95 | |||
| 96 | public static Result<Object> exception(String data) { | ||
| 97 | Result<Object> r = new Result<Object>(); | ||
| 98 | r.setSuccess(false); | ||
| 99 | r.setCode(CommonConstant.SC_INFO_210); | ||
| 100 | r.setMessage(data); | ||
| 101 | return r; | ||
| 102 | } | ||
| 103 | |||
| 104 | public static <T> Result<T> ok(T data, String msg) { | ||
| 105 | Result<T> r = new Result<T>(); | ||
| 106 | r.setSuccess(true); | ||
| 107 | r.setMessage(msg); | ||
| 108 | r.setCode(CommonConstant.SC_OK_200); | ||
| 109 | r.setResult(data); | ||
| 110 | return r; | ||
| 111 | } | ||
| 112 | |||
| 113 | public static Result<String> error(String msg) { | ||
| 114 | return error(CommonConstant.SC_INTERNAL_SERVER_ERROR_500, msg); | ||
| 115 | } | ||
| 116 | public static Result<String> checkError(String msg) { | ||
| 117 | return error(CommonConstant.CHECK_ERROR_2002, msg); | ||
| 118 | } | ||
| 119 | |||
| 120 | public static Result<String> error(int code, String msg) { | ||
| 121 | Result<String> r = new Result<String>(); | ||
| 122 | r.setCode(code); | ||
| 123 | r.setMessage(msg); | ||
| 124 | r.setSuccess(false); | ||
| 125 | return r; | ||
| 126 | } | ||
| 127 | |||
| 128 | public static <T> Result<T> error(String message, T data) { | ||
| 129 | Result<T> r = new Result<T>(); | ||
| 130 | r.setMessage(message); | ||
| 131 | r.setResult(data); | ||
| 132 | r.setCode(CommonConstant.SC_INTERNAL_SERVER_ERROR_500); | ||
| 133 | r.setSuccess(false); | ||
| 134 | return r; | ||
| 135 | } | ||
| 136 | |||
| 137 | public Result<T> error500(String message) { | ||
| 138 | this.message = message; | ||
| 139 | this.code = CommonConstant.SC_INTERNAL_SERVER_ERROR_500; | ||
| 140 | this.success = false; | ||
| 141 | return this; | ||
| 142 | } | ||
| 143 | |||
| 144 | // /** | ||
| 145 | // * 无权限访问返回结果 | ||
| 146 | // */ | ||
| 147 | // public static Result<String> noauth(String msg) { | ||
| 148 | // return error(CommonConstant.SC_JEECG_NO_AUTHZ, msg); | ||
| 149 | // } | ||
| 150 | |||
| 151 | public static long getSerialVersionUID() { | ||
| 152 | return serialVersionUID; | ||
| 153 | } | ||
| 154 | |||
| 155 | public boolean getSuccess() { | ||
| 156 | return success; | ||
| 157 | } | ||
| 158 | |||
| 159 | public void setSuccess(boolean success) { | ||
| 160 | this.success = success; | ||
| 161 | } | ||
| 162 | |||
| 163 | public String getMessage() { | ||
| 164 | return message; | ||
| 165 | } | ||
| 166 | |||
| 167 | public void setMessage(String message) { | ||
| 168 | this.message = message; | ||
| 169 | } | ||
| 170 | |||
| 171 | public Integer getCode() { | ||
| 172 | return code; | ||
| 173 | } | ||
| 174 | |||
| 175 | public void setCode(Integer code) { | ||
| 176 | this.code = code; | ||
| 177 | } | ||
| 178 | |||
| 179 | public T getResult() { | ||
| 180 | return result; | ||
| 181 | } | ||
| 182 | |||
| 183 | public void setResult(T result) { | ||
| 184 | this.result = result; | ||
| 185 | } | ||
| 186 | |||
| 187 | public long getTimestamp() { | ||
| 188 | return timestamp; | ||
| 189 | } | ||
| 190 | |||
| 191 | public void setTimestamp(long timestamp) { | ||
| 192 | this.timestamp = timestamp; | ||
| 193 | } | ||
| 194 | |||
| 195 | } | 
| 1 | package com.pashanhoo.common; | ||
| 2 | |||
| 3 | |||
| 4 | import com.pashanhoo.zhj.service.ZhjDatasSynService; | ||
| 5 | import org.springframework.beans.factory.annotation.Autowired; | ||
| 6 | import org.springframework.context.annotation.Configuration; | ||
| 7 | import org.springframework.scheduling.annotation.EnableScheduling; | ||
| 8 | |||
| 9 | @Configuration | ||
| 10 | @EnableScheduling | ||
| 11 | |||
| 12 | public class ZhjTask { | ||
| 13 | |||
| 14 | @Autowired | ||
| 15 | private ZhjDatasSynService zhjDatasSynService; | ||
| 16 | //@Scheduled(cron="0 0 21 * * ? ") | ||
| 17 | public void execute() { | ||
| 18 | System.out.println("===========每天晚上九点定时任务进来了========="); | ||
| 19 | zhjDatasSynService.send_bdcYwInfo(); | ||
| 20 | System.out.println("===========每天晚上九点定时任务走了========="); | ||
| 21 | } | ||
| 22 | |||
| 23 | } | 
| 1 | package com.pashanhoo.config; | ||
| 2 | |||
| 3 | import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor; | ||
| 4 | import org.springframework.context.annotation.Bean; | ||
| 5 | import org.springframework.context.annotation.Configuration; | ||
| 6 | |||
| 7 | @Configuration | ||
| 8 | public class MybatisPlusConfig { | ||
| 9 | /** | ||
| 10 | * 分页插件 | ||
| 11 | */ | ||
| 12 | @Bean | ||
| 13 | public PaginationInterceptor paginationInterceptor() { | ||
| 14 | return new PaginationInterceptor(); | ||
| 15 | } | ||
| 16 | |||
| 17 | } | 
| 1 | package com.pashanhoo.qys.controller; | ||
| 2 | |||
| 3 | import com.pashanhoo.common.Result; | ||
| 4 | import com.pashanhoo.qys.service.EciService; | ||
| 5 | import io.swagger.annotations.Api; | ||
| 6 | import io.swagger.annotations.ApiOperation; | ||
| 7 | import io.swagger.annotations.ApiParam; | ||
| 8 | import org.springframework.beans.factory.annotation.Autowired; | ||
| 9 | import org.springframework.web.bind.annotation.*; | ||
| 10 | |||
| 11 | @RestController | ||
| 12 | @RequestMapping("/eci/") | ||
| 13 | @Api(tags = "电子证照相关接口") | ||
| 14 | public class EciController { | ||
| 15 | @Autowired | ||
| 16 | private EciService eciService; | ||
| 17 | |||
| 18 | @PostMapping("accessCreateContract") | ||
| 19 | @ApiOperation("创建合同接口") | ||
| 20 | public Result accessCreateContract(@ApiParam("不动产权基本信息id")@RequestParam String zsbs,@ApiParam("证件号码")@RequestParam String qlrzjh,@ApiParam("证书编号")@RequestParam String bh) { | ||
| 21 | eciService.createContractForHandle(zsbs,qlrzjh,bh); | ||
| 22 | return Result.ok(); | ||
| 23 | } | ||
| 24 | @GetMapping("accessDetails") | ||
| 25 | @ApiOperation("合同详情接口") | ||
| 26 | public Result accessDetails(@ApiParam("电子证照表主键ID")@RequestParam String biz_id) { | ||
| 27 | eciService.accessDetailsForHandle(biz_id); | ||
| 28 | return Result.ok(); | ||
| 29 | } | ||
| 30 | @GetMapping("accessDownload") | ||
| 31 | @ApiOperation("下载合同文档接口") | ||
| 32 | public Result accessDownload(@ApiParam("电子证照表主键ID")@RequestParam String biz_id) { | ||
| 33 | eciService.accessDownloadForHandle(biz_id); | ||
| 34 | return Result.ok(); | ||
| 35 | } | ||
| 36 | @GetMapping("convert") | ||
| 37 | @ApiOperation("ofd转换服务接口") | ||
| 38 | public Result convert(@ApiParam("电子证照表主键ID")@RequestParam String biz_id) { | ||
| 39 | eciService.convertElecForHandle(biz_id); | ||
| 40 | return Result.ok(); | ||
| 41 | } | ||
| 42 | |||
| 43 | } | 
| 1 | package com.pashanhoo.qys.entity; | ||
| 2 | |||
| 3 | import lombok.Data; | ||
| 4 | import lombok.EqualsAndHashCode; | ||
| 5 | |||
| 6 | import java.io.Serializable; | ||
| 7 | |||
| 8 | @Data | ||
| 9 | @EqualsAndHashCode(callSuper = false) | ||
| 10 | public class ActionRequest implements Serializable { | ||
| 11 | private static final long serialVersionUID = 1L; | ||
| 12 | |||
| 13 | /** | ||
| 14 | * 是 | ||
| 15 | * 签署动作类型:CORPORATE(企业签章),PERSONAL(个人签字),LP(法定代表人签字),AUDIT(审批) | ||
| 16 | */ | ||
| 17 | private String type; | ||
| 18 | |||
| 19 | /** | ||
| 20 | * 是 | ||
| 21 | * 签署动作名称 | ||
| 22 | */ | ||
| 23 | private String name; | ||
| 24 | |||
| 25 | /** | ||
| 26 | * 是 | ||
| 27 | * 签署动作名称 | ||
| 28 | */ | ||
| 29 | private String autoSign; | ||
| 30 | |||
| 31 | /** | ||
| 32 | * 是 | ||
| 33 | * 签署顺序(从1开始);如果想按顺序签署,则分别设置签署动作的serialNo为1,2,3;如果想无序签署,则设置签署动作的serialNo为1,1,1;设置签署动作顺序为1,2,2时,表示第一个先签署,后两个同时签署。 | ||
| 34 | */ | ||
| 35 | private Integer serialNo; | ||
| 36 | |||
| 37 | |||
| 38 | } | 
| 1 | package com.pashanhoo.qys.entity; | ||
| 2 | |||
| 3 | import lombok.Data; | ||
| 4 | import lombok.EqualsAndHashCode; | ||
| 5 | import org.springframework.web.multipart.MultipartFile; | ||
| 6 | |||
| 7 | import java.io.Serializable; | ||
| 8 | import java.util.List; | ||
| 9 | |||
| 10 | |||
| 11 | /** | ||
| 12 | * 创建合同请求实体 | ||
| 13 | */ | ||
| 14 | @Data | ||
| 15 | @EqualsAndHashCode(callSuper = false) | ||
| 16 | public class CreateContractRequest implements Serializable { | ||
| 17 | private static final long serialVersionUID = 1L; | ||
| 18 | /** | ||
| 19 | * 是 | ||
| 20 | * 合同名称 | ||
| 21 | */ | ||
| 22 | private String subject; | ||
| 23 | |||
| 24 | /** | ||
| 25 | * 否 | ||
| 26 | * 合同编号,对接方系统中的业务编号 | ||
| 27 | */ | ||
| 28 | private String sn; | ||
| 29 | |||
| 30 | |||
| 31 | |||
| 32 | /** | ||
| 33 | * 否 | ||
| 34 | * 用印流程ID | ||
| 35 | */ | ||
| 36 | private String categoryId; | ||
| 37 | |||
| 38 | |||
| 39 | |||
| 40 | /** | ||
| 41 | * 否 | ||
| 42 | * 是否发起合同,默认true。(true:立即发起;false:保存为草稿) | ||
| 43 | */ | ||
| 44 | private boolean send; | ||
| 45 | |||
| 46 | |||
| 47 | |||
| 48 | |||
| 49 | /** | ||
| 50 | * 否 | ||
| 51 | * 合同创建人姓名 | ||
| 52 | */ | ||
| 53 | private String creatorName; | ||
| 54 | |||
| 55 | /** | ||
| 56 | * 否 | ||
| 57 | * 合同创建人手机号码 | ||
| 58 | */ | ||
| 59 | private String creatorContact; | ||
| 60 | |||
| 61 | |||
| 62 | |||
| 63 | /** | ||
| 64 | * 否 | ||
| 65 | * 发起方名称 | ||
| 66 | */ | ||
| 67 | private String tenantName; | ||
| 68 | |||
| 69 | /** | ||
| 70 | * 受理申请pdf文件 | ||
| 71 | */ | ||
| 72 | private MultipartFile file; | ||
| 73 | |||
| 74 | /** | ||
| 75 | * title | ||
| 76 | */ | ||
| 77 | private String title; | ||
| 78 | |||
| 79 | /** | ||
| 80 | * title | ||
| 81 | */ | ||
| 82 | private String fileType; | ||
| 83 | |||
| 84 | |||
| 85 | /** | ||
| 86 | * 否 | ||
| 87 | * 签署方,为空时在合同签署完成后需要调用接口“封存合同”主动结束合同 | ||
| 88 | */ | ||
| 89 | private List<SignatoryRequest> signatories; | ||
| 90 | |||
| 91 | /** | ||
| 92 | * 否 | ||
| 93 | * 模板参数 | ||
| 94 | */ | ||
| 95 | private List<DocumentParam> documentParams; | ||
| 96 | |||
| 97 | |||
| 98 | |||
| 99 | |||
| 100 | |||
| 101 | } | 
| 1 | package com.pashanhoo.qys.entity; | ||
| 2 | |||
| 3 | import lombok.Data; | ||
| 4 | import lombok.EqualsAndHashCode; | ||
| 5 | |||
| 6 | import java.io.Serializable; | ||
| 7 | @Data | ||
| 8 | @EqualsAndHashCode(callSuper = false) | ||
| 9 | public class DocumentParam implements Serializable { | ||
| 10 | private static final long serialVersionUID = 1L; | ||
| 11 | |||
| 12 | /** | ||
| 13 | * 是 | ||
| 14 | * 模板参数名称 | ||
| 15 | */ | ||
| 16 | private String name; | ||
| 17 | |||
| 18 | /** | ||
| 19 | * 是 | ||
| 20 | * 模板参数值 | ||
| 21 | */ | ||
| 22 | private String value; | ||
| 23 | |||
| 24 | } | 
| 1 | package com.pashanhoo.qys.entity; | ||
| 2 | |||
| 3 | import com.baomidou.mybatisplus.annotation.IdType; | ||
| 4 | import com.baomidou.mybatisplus.annotation.TableField; | ||
| 5 | import com.baomidou.mybatisplus.annotation.TableId; | ||
| 6 | import com.baomidou.mybatisplus.annotation.TableName; | ||
| 7 | import lombok.Data; | ||
| 8 | import lombok.EqualsAndHashCode; | ||
| 9 | |||
| 10 | import java.util.Date; | ||
| 11 | /** | ||
| 12 | * 电子证照表实体 | ||
| 13 | */ | ||
| 14 | @Data | ||
| 15 | @EqualsAndHashCode(callSuper = false) | ||
| 16 | @TableName("ELEC_LICENSE_INFO") | ||
| 17 | public class ElecLicenseInfoDo { | ||
| 18 | /** | ||
| 19 | * 合同标识,主键,自己生成 | ||
| 20 | */ | ||
| 21 | /** | ||
| 22 | * 主键 | ||
| 23 | */ | ||
| 24 | @TableId(value = "BIZ_ID", type = IdType.UUID) | ||
| 25 | private String bizId; | ||
| 26 | |||
| 27 | /** | ||
| 28 | * 合同ID | ||
| 29 | */ | ||
| 30 | @TableField("CONTRACT_ID") | ||
| 31 | private Long contractId; | ||
| 32 | |||
| 33 | /** | ||
| 34 | * 模板参数 | ||
| 35 | */ | ||
| 36 | @TableField("DOCUMENT_PARAM") | ||
| 37 | private String documentParam; | ||
| 38 | |||
| 39 | /** | ||
| 40 | * 合同文档ID | ||
| 41 | */ | ||
| 42 | @TableField("DOCUMENT_ID") | ||
| 43 | private String documentId; | ||
| 44 | |||
| 45 | /** | ||
| 46 | * 合同类型.1:不动产登记证明.2:不动产权证书.3:不动产查询证明 | ||
| 47 | */ | ||
| 48 | @TableField("HTLX") | ||
| 49 | private String htlx; | ||
| 50 | |||
| 51 | /** | ||
| 52 | * 业务号 | ||
| 53 | */ | ||
| 54 | @TableField("YWH") | ||
| 55 | private String ywh; | ||
| 56 | |||
| 57 | /** | ||
| 58 | * 证书标识 | ||
| 59 | */ | ||
| 60 | @TableField("ZSBS") | ||
| 61 | private String zsbs; | ||
| 62 | |||
| 63 | /** | ||
| 64 | * 提交参数 | ||
| 65 | */ | ||
| 66 | @TableField("TJCS") | ||
| 67 | private String tjcs; | ||
| 68 | |||
| 69 | /** | ||
| 70 | * 返回结果 | ||
| 71 | */ | ||
| 72 | @TableField("FHJG") | ||
| 73 | private String fhjg; | ||
| 74 | |||
| 75 | /** | ||
| 76 | * 推送状态 | ||
| 77 | */ | ||
| 78 | @TableField("TSZT") | ||
| 79 | private String tszt; | ||
| 80 | |||
| 81 | /** | ||
| 82 | * 合同状态(DRAFT:草稿,FILLING:拟定中,SIGNING:签署中,COMPLETE:已完成,REJECTED:已退回,RECALLED:已撤回,EXPIRED:已过期,TERMINATING:作废中,TERMINATED:已作废,DELETE:已删除,FINISHED:强制完成) | ||
| 83 | */ | ||
| 84 | @TableField("HTZT") | ||
| 85 | private String htzt; | ||
| 86 | |||
| 87 | /** | ||
| 88 | * 推送时间 | ||
| 89 | */ | ||
| 90 | @TableField("TSSJ") | ||
| 91 | private Date tssj; | ||
| 92 | |||
| 93 | /** | ||
| 94 | * 是否下载 1是2否 | ||
| 95 | */ | ||
| 96 | @TableField("SFXZ") | ||
| 97 | private String sfxz; | ||
| 98 | |||
| 99 | /** | ||
| 100 | * ofd文件地址 | ||
| 101 | */ | ||
| 102 | @TableField("OFD_WJDZ") | ||
| 103 | private String ofdWjdz; | ||
| 104 | |||
| 105 | /** | ||
| 106 | * 是否转换1是2否 | ||
| 107 | */ | ||
| 108 | @TableField("SFZH") | ||
| 109 | private String sfzh; | ||
| 110 | |||
| 111 | /** | ||
| 112 | * jpg文件地址 | ||
| 113 | */ | ||
| 114 | @TableField("JPG_WJDZ") | ||
| 115 | private String jpgWjdz; | ||
| 116 | |||
| 117 | /** | ||
| 118 | * jpg文件地址 | ||
| 119 | */ | ||
| 120 | @TableField("SIGN_URL") | ||
| 121 | private String signUrl; | ||
| 122 | /** | ||
| 123 | * 备注 | ||
| 124 | */ | ||
| 125 | @TableField("BZ") | ||
| 126 | private String bz; | ||
| 127 | /** | ||
| 128 | * 二维码图片 | ||
| 129 | */ | ||
| 130 | @TableField("EWMIMAGE") | ||
| 131 | private byte[] ewmimage; | ||
| 132 | /** | ||
| 133 | * 0:临时状态,1:现势,2:历史状态 | ||
| 134 | */ | ||
| 135 | @TableField("DZZZ_STATE") | ||
| 136 | private String dzzz_state; | ||
| 137 | /** | ||
| 138 | * 0:正常,1:创建合同接口报错,2:合同详情接口报错,3:下载ofd接口报错,4:ofd转换接口报错 | ||
| 139 | */ | ||
| 140 | @TableField("ERR_STATE") | ||
| 141 | private String err_state; | ||
| 142 | /** | ||
| 143 | * 证书编号 | ||
| 144 | */ | ||
| 145 | @TableField("ZSBH") | ||
| 146 | private String zsbh; | ||
| 147 | /** | ||
| 148 | * 权利人名称 | ||
| 149 | */ | ||
| 150 | @TableField("QLRMC") | ||
| 151 | private String qlrmc; | ||
| 152 | /** | ||
| 153 | * 证件号 | ||
| 154 | */ | ||
| 155 | @TableField("ZJH") | ||
| 156 | private String zjh; | ||
| 157 | |||
| 158 | |||
| 159 | } | 
| 1 | package com.pashanhoo.qys.entity; | ||
| 2 | |||
| 3 | import lombok.Data; | ||
| 4 | import lombok.EqualsAndHashCode; | ||
| 5 | |||
| 6 | import java.io.Serializable; | ||
| 7 | import java.util.List; | ||
| 8 | |||
| 9 | @Data | ||
| 10 | @EqualsAndHashCode(callSuper = false) | ||
| 11 | public class SignatoryRequest implements Serializable { | ||
| 12 | private static final long serialVersionUID = 1L; | ||
| 13 | |||
| 14 | /** | ||
| 15 | * 是 | ||
| 16 | * 签约主体类型:COMPANY(外部企业),PERSONAL(个人) | ||
| 17 | */ | ||
| 18 | private String tenantType; | ||
| 19 | |||
| 20 | /** | ||
| 21 | * 是 | ||
| 22 | * 签约主体名称 | ||
| 23 | */ | ||
| 24 | private String tenantName; | ||
| 25 | |||
| 26 | |||
| 27 | /** | ||
| 28 | * 是 | ||
| 29 | * 签署顺序(从1开始);如果想按顺序签署,则分别设置签署方的serialNo为1,2,3;如果想无序签署,则设置签署方的serialNo为1,1,1;设置签署方顺序为1,2,2时,表示第一个先签署,后两个同时签署。 | ||
| 30 | */ | ||
| 31 | private Integer serialNo; | ||
| 32 | |||
| 33 | /** | ||
| 34 | * 是 | ||
| 35 | * 签约主体名称 | ||
| 36 | */ | ||
| 37 | private String contact; | ||
| 38 | |||
| 39 | |||
| 40 | /** | ||
| 41 | * 否 | ||
| 42 | * 签署动作,用印流程非预设且签署方为发起方时,使用用户传入的签署动作,其余情况使用用印流程的配置 | ||
| 43 | */ | ||
| 44 | private List<ActionRequest> actions; | ||
| 45 | } | 
| 1 | package com.pashanhoo.qys.mapper; | ||
| 2 | |||
| 3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||
| 4 | import com.pashanhoo.qys.entity.ElecLicenseInfoDo; | ||
| 5 | import org.apache.ibatis.annotations.Param; | ||
| 6 | |||
| 7 | import java.util.List; | ||
| 8 | |||
| 9 | public interface ElecLicenseInfoMapper extends BaseMapper<ElecLicenseInfoDo> { | ||
| 10 | |||
| 11 | List<ElecLicenseInfoDo> getEciInfoByZsbs(String zsbs); | ||
| 12 | |||
| 13 | |||
| 14 | List<ElecLicenseInfoDo> getDocumentIdIsNull(String ywh); | ||
| 15 | /** | ||
| 16 | * 获取合同文档ID已经入库并且还未下载集合 | ||
| 17 | * | ||
| 18 | * @return | ||
| 19 | */ | ||
| 20 | List<ElecLicenseInfoDo> getWaitForDownload(String ywh); | ||
| 21 | /** | ||
| 22 | * 获取已经下载还未转换的集合 | ||
| 23 | * | ||
| 24 | * @return | ||
| 25 | */ | ||
| 26 | List<ElecLicenseInfoDo> getWaitForConvert(String ywh); | ||
| 27 | /** | ||
| 28 | * 根据业务号和不动产单元号查询义务人名称 | ||
| 29 | */ | ||
| 30 | List<String> getYwrMcByCOnditon(@Param("ywh")String ywh, @Param("bdcdyh")String bdcdyh); | ||
| 31 | |||
| 32 | |||
| 33 | void updateEciInfo(@Param("bizId")String bizId); | ||
| 34 | |||
| 35 | |||
| 36 | ElecLicenseInfoDo getElecLicenseInfo(ElecLicenseInfoDo elecLicenseInfoDo); | ||
| 37 | |||
| 38 | |||
| 39 | |||
| 40 | |||
| 41 | } | 
| 1 | package com.pashanhoo.qys.service; | ||
| 2 | |||
| 3 | import com.baomidou.mybatisplus.extension.service.IService; | ||
| 4 | import com.pashanhoo.common.Result; | ||
| 5 | import com.pashanhoo.qys.entity.ElecLicenseInfoDo; | ||
| 6 | |||
| 7 | |||
| 8 | |||
| 9 | |||
| 10 | public interface EciService extends IService<ElecLicenseInfoDo> { | ||
| 11 | |||
| 12 | /** | ||
| 13 | * 定时任务执行接口 | ||
| 14 | */ | ||
| 15 | void accessCreateContract(); | ||
| 16 | |||
| 17 | /** | ||
| 18 | * 手动执行创建合同 | ||
| 19 | */ | ||
| 20 | Result createContractForHandle(String zsbs,String qlrzjh,String bh); | ||
| 21 | |||
| 22 | /** | ||
| 23 | * 手动执行获取详情 | ||
| 24 | */ | ||
| 25 | Result accessDetailsForHandle(String biz_id); | ||
| 26 | /** | ||
| 27 | * 手动执行下载合同 | ||
| 28 | */ | ||
| 29 | Result accessDownloadForHandle(String biz_id); | ||
| 30 | /** | ||
| 31 | * 手动执行ofd转换 | ||
| 32 | */ | ||
| 33 | Result convertElecForHandle(String biz_id); | ||
| 34 | |||
| 35 | |||
| 36 | } | 
This diff is collapsed.
Click to expand it.
| 1 | package com.pashanhoo.zhj.controller; | ||
| 2 | |||
| 3 | import com.pashanhoo.common.Result; | ||
| 4 | import com.pashanhoo.zhj.service.ZhjDatasSynService; | ||
| 5 | import io.swagger.annotations.Api; | ||
| 6 | import io.swagger.annotations.ApiOperation; | ||
| 7 | import io.swagger.annotations.ApiParam; | ||
| 8 | import org.springframework.beans.factory.annotation.Autowired; | ||
| 9 | import org.springframework.web.bind.annotation.PostMapping; | ||
| 10 | import org.springframework.web.bind.annotation.RequestMapping; | ||
| 11 | import org.springframework.web.bind.annotation.RequestParam; | ||
| 12 | import org.springframework.web.bind.annotation.RestController; | ||
| 13 | |||
| 14 | @RestController | ||
| 15 | @RequestMapping("/zhj/") | ||
| 16 | @Api(tags = "智慧局信息同步相关接口") | ||
| 17 | public class SynZhjInfoController { | ||
| 18 | |||
| 19 | @Autowired | ||
| 20 | private ZhjDatasSynService zhjDatasSynService; | ||
| 21 | |||
| 22 | @PostMapping("ZhjDatasSynInfo") | ||
| 23 | @ApiOperation("定时智慧局数据同步接口") | ||
| 24 | public Result ZhjDatasSynInfo() { | ||
| 25 | zhjDatasSynService.send_bdcYwInfo(); | ||
| 26 | return Result.ok(); | ||
| 27 | } | ||
| 28 | @PostMapping("synZdInfoByywh") | ||
| 29 | @ApiOperation("手动执行智慧局数据同步接口") | ||
| 30 | public Result synZdInfoByywh(@ApiParam("业务号")@RequestParam String ywh) { | ||
| 31 | zhjDatasSynService.synZdInfoByywh(ywh); | ||
| 32 | return Result.ok(); | ||
| 33 | } | ||
| 34 | @PostMapping("synHInfoByYwh") | ||
| 35 | @ApiOperation("手动执行智慧局数据同步接口") | ||
| 36 | public Result synHInfoByYwh(@ApiParam("业务号")@RequestParam String ywh) { | ||
| 37 | zhjDatasSynService.synHInfoByYwh(ywh); | ||
| 38 | return Result.ok(); | ||
| 39 | } | ||
| 40 | @PostMapping("synQSZTInfoByYwh") | ||
| 41 | @ApiOperation("手动执行智慧局数据同步接口") | ||
| 42 | public Result synQSZTInfoByYwh(@ApiParam("业务号")@RequestParam String ywh) { | ||
| 43 | zhjDatasSynService.synQSZTInfoByYwh(ywh); | ||
| 44 | return Result.ok(); | ||
| 45 | } | ||
| 46 | |||
| 47 | } | 
| 1 | package com.pashanhoo.zhj.entity; | ||
| 2 | |||
| 3 | import com.baomidou.mybatisplus.annotation.IdType; | ||
| 4 | import com.baomidou.mybatisplus.annotation.TableField; | ||
| 5 | import com.baomidou.mybatisplus.annotation.TableId; | ||
| 6 | import com.baomidou.mybatisplus.annotation.TableName; | ||
| 7 | import lombok.Data; | ||
| 8 | import lombok.EqualsAndHashCode; | ||
| 9 | |||
| 10 | import java.io.Serializable; | ||
| 11 | import java.util.Date; | ||
| 12 | |||
| 13 | @Data | ||
| 14 | @EqualsAndHashCode(callSuper = false) | ||
| 15 | @TableName("REG_BUS_BDCQZSDJXX") | ||
| 16 | public class RegBusBdcqzsdjxxDo implements Serializable { | ||
| 17 | private static final long serialVersionUID = 1L; | ||
| 18 | /** | ||
| 19 | * 主键 | ||
| 20 | */ | ||
| 21 | @TableId(value = "ID", type = IdType.UUID) | ||
| 22 | private String id; | ||
| 23 | /** | ||
| 24 | * 业务号 | ||
| 25 | */ | ||
| 26 | @TableField("YWH") | ||
| 27 | private String ywh; | ||
| 28 | /** | ||
| 29 | * 不动产权证号 | ||
| 30 | */ | ||
| 31 | @TableField("BDCQZH") | ||
| 32 | private String bdcqzh; | ||
| 33 | /** | ||
| 34 | * 不动产权证编号 | ||
| 35 | */ | ||
| 36 | @TableField("BDCQZBH") | ||
| 37 | private String bdcqzbh; | ||
| 38 | /** | ||
| 39 | * 印刷序列号 | ||
| 40 | */ | ||
| 41 | @TableField("YSXLH") | ||
| 42 | private String ysxlh; | ||
| 43 | /** | ||
| 44 | * 登簿时间 | ||
| 45 | */ | ||
| 46 | @TableField("DBSJ") | ||
| 47 | private String dbsj; | ||
| 48 | /** | ||
| 49 | * 权利人名称 | ||
| 50 | */ | ||
| 51 | @TableField("QLRMC") | ||
| 52 | private String qlrmc; | ||
| 53 | /** | ||
| 54 | * 共有情况 | ||
| 55 | */ | ||
| 56 | @TableField("GYQK") | ||
| 57 | private String gyqk; | ||
| 58 | /** | ||
| 59 | * 坐落 | ||
| 60 | */ | ||
| 61 | @TableField("ZL") | ||
| 62 | private String zl; | ||
| 63 | /** | ||
| 64 | * 宗地代码 | ||
| 65 | */ | ||
| 66 | @TableField("ZDDM") | ||
| 67 | private String zddm; | ||
| 68 | /** | ||
| 69 | * 不动产单元号 | ||
| 70 | */ | ||
| 71 | @TableField("BDCDYH") | ||
| 72 | private String bdcdyh; | ||
| 73 | /** | ||
| 74 | * 权利类型 | ||
| 75 | */ | ||
| 76 | @TableField("QLLX") | ||
| 77 | private String qllx; | ||
| 78 | /** | ||
| 79 | * 权利性质 | ||
| 80 | */ | ||
| 81 | @TableField("QLXZ") | ||
| 82 | private String qlxz; | ||
| 83 | /** | ||
| 84 | * 用途 | ||
| 85 | */ | ||
| 86 | @TableField("YT") | ||
| 87 | private String yt; | ||
| 88 | /** | ||
| 89 | * 面积 | ||
| 90 | */ | ||
| 91 | @TableField("MJ") | ||
| 92 | private String mj; | ||
| 93 | /** | ||
| 94 | * 使用期限 | ||
| 95 | */ | ||
| 96 | @TableField("SYQX") | ||
| 97 | private String syqx; | ||
| 98 | /** | ||
| 99 | * 权利其他状况 | ||
| 100 | */ | ||
| 101 | @TableField("QLQTZK") | ||
| 102 | private String qlqtzk; | ||
| 103 | /** | ||
| 104 | * 附记 | ||
| 105 | */ | ||
| 106 | @TableField("FJ") | ||
| 107 | private String fj; | ||
| 108 | /** | ||
| 109 | * 抵押登记信息 | ||
| 110 | */ | ||
| 111 | @TableField("DYDJXX") | ||
| 112 | private String dydjxx; | ||
| 113 | /** | ||
| 114 | * 解除抵押登记信息 | ||
| 115 | */ | ||
| 116 | @TableField("JCDYDJXX") | ||
| 117 | private String jcdydjxx; | ||
| 118 | /** | ||
| 119 | * 查封情况 | ||
| 120 | */ | ||
| 121 | @TableField("CFQK") | ||
| 122 | private String cfqk; | ||
| 123 | /** | ||
| 124 | * 解除查封 | ||
| 125 | */ | ||
| 126 | @TableField("JCCF") | ||
| 127 | private String jccf; | ||
| 128 | /** | ||
| 129 | * 图号 | ||
| 130 | */ | ||
| 131 | @TableField("TH") | ||
| 132 | private String th; | ||
| 133 | /** | ||
| 134 | * 批文号 | ||
| 135 | */ | ||
| 136 | @TableField("PWH") | ||
| 137 | private String pwh; | ||
| 138 | /** | ||
| 139 | * 划拨价款 | ||
| 140 | */ | ||
| 141 | @TableField("HBJK") | ||
| 142 | private String hbjk; | ||
| 143 | /** | ||
| 144 | * 划拨合同号 | ||
| 145 | */ | ||
| 146 | @TableField("HBHTH") | ||
| 147 | private String hbhth; | ||
| 148 | /** | ||
| 149 | * 发证时间 | ||
| 150 | */ | ||
| 151 | @TableField("FZSJ") | ||
| 152 | private String fzsj; | ||
| 153 | /** | ||
| 154 | * 终止时间 | ||
| 155 | */ | ||
| 156 | @TableField("ZZSJ") | ||
| 157 | private String zzsj; | ||
| 158 | /** | ||
| 159 | * 登记类型 | ||
| 160 | */ | ||
| 161 | @TableField("DJLX") | ||
| 162 | private String djlx; | ||
| 163 | /** | ||
| 164 | * 当前土地或者房屋登记状态 | ||
| 165 | */ | ||
| 166 | @TableField("STATUS") | ||
| 167 | private String status; | ||
| 168 | /** | ||
| 169 | * 是否注销 分割合并后原数据注销 | ||
| 170 | */ | ||
| 171 | @TableField("ISLOGOUT") | ||
| 172 | private String islogout; | ||
| 173 | /** | ||
| 174 | * 0:正常办理,1:分割合并变更更正附带确权产生数据 | ||
| 175 | */ | ||
| 176 | @TableField("ISFDSJ") | ||
| 177 | private Integer isfdsj; | ||
| 178 | /** | ||
| 179 | * 是否历史数据手工录入 | ||
| 180 | */ | ||
| 181 | @TableField("ISHISTORY") | ||
| 182 | private String ishistory; | ||
| 183 | /** | ||
| 184 | * 是否打印出证 | ||
| 185 | */ | ||
| 186 | @TableField("ISPRINT") | ||
| 187 | private String isprint; | ||
| 188 | /** | ||
| 189 | * 确权类型 | ||
| 190 | */ | ||
| 191 | @TableField("RIGHTS") | ||
| 192 | private String rights; | ||
| 193 | /** | ||
| 194 | * 创建者 | ||
| 195 | */ | ||
| 196 | @TableField("CREATE_BY") | ||
| 197 | private String create_by; | ||
| 198 | /** | ||
| 199 | * 创建日期 | ||
| 200 | */ | ||
| 201 | @TableField("CREATE_DATE") | ||
| 202 | private Date create_date; | ||
| 203 | /** | ||
| 204 | * 更新者 | ||
| 205 | */ | ||
| 206 | @TableField("UPDATE_BY") | ||
| 207 | private String update_by; | ||
| 208 | /** | ||
| 209 | * 更新日期 | ||
| 210 | */ | ||
| 211 | @TableField("UPDATE_DATE") | ||
| 212 | private Date update_date; | ||
| 213 | /** | ||
| 214 | * 备注 | ||
| 215 | */ | ||
| 216 | @TableField("REMARKS") | ||
| 217 | protected String remarks; | ||
| 218 | /** | ||
| 219 | * 删除标记(0:正常;1:删除;2:审核) | ||
| 220 | */ | ||
| 221 | @TableField("DEL_FLAG") | ||
| 222 | protected String del_flag; | ||
| 223 | /** | ||
| 224 | * 上手id(原业务id) | ||
| 225 | */ | ||
| 226 | @TableField("OLDID") | ||
| 227 | private String oldid; | ||
| 228 | |||
| 229 | |||
| 230 | |||
| 231 | |||
| 232 | |||
| 233 | |||
| 234 | } | 
| 1 | package com.pashanhoo.zhj.entity; | ||
| 2 | |||
| 3 | import com.baomidou.mybatisplus.annotation.IdType; | ||
| 4 | import com.baomidou.mybatisplus.annotation.TableField; | ||
| 5 | import com.baomidou.mybatisplus.annotation.TableId; | ||
| 6 | import com.baomidou.mybatisplus.annotation.TableName; | ||
| 7 | import lombok.Data; | ||
| 8 | import lombok.EqualsAndHashCode; | ||
| 9 | |||
| 10 | import java.io.Serializable; | ||
| 11 | import java.util.Date; | ||
| 12 | |||
| 13 | @Data | ||
| 14 | @EqualsAndHashCode(callSuper = false) | ||
| 15 | @TableName("SYN_ZHJINFO") | ||
| 16 | public class SynZhjInfoDo implements Serializable { | ||
| 17 | |||
| 18 | private static final long serialVersionUID = 1L; | ||
| 19 | /** | ||
| 20 | * 主键 | ||
| 21 | */ | ||
| 22 | @TableId(value = "ID", type = IdType.UUID) | ||
| 23 | private String id; | ||
| 24 | /** | ||
| 25 | * 业务号 | ||
| 26 | */ | ||
| 27 | @TableField("YWH") | ||
| 28 | private String ywh; | ||
| 29 | /** | ||
| 30 | * 宗地表同步状态0:未同步 1:已同步 | ||
| 31 | */ | ||
| 32 | @TableField("ZD_STATE") | ||
| 33 | private String zd_state; | ||
| 34 | /** | ||
| 35 | * 户表同步状态0:未同步 1:已同步 | ||
| 36 | */ | ||
| 37 | @TableField("H_STATE") | ||
| 38 | private String h_state; | ||
| 39 | /** | ||
| 40 | * 户权属表同步状态0:未同步 1:已同步 | ||
| 41 | */ | ||
| 42 | @TableField("HQS_STATE") | ||
| 43 | private String hqs_state; | ||
| 44 | /** | ||
| 45 | * 创建者 | ||
| 46 | */ | ||
| 47 | @TableField("CREATE_BY") | ||
| 48 | private String create_by; | ||
| 49 | /** | ||
| 50 | * 创建日期 | ||
| 51 | */ | ||
| 52 | @TableField("CREATE_DATE") | ||
| 53 | private Date create_date; | ||
| 54 | /** | ||
| 55 | * 更新者 | ||
| 56 | */ | ||
| 57 | @TableField("UPDATE_BY") | ||
| 58 | private String update_by; | ||
| 59 | /** | ||
| 60 | * 更新日期 | ||
| 61 | */ | ||
| 62 | @TableField("UPDATE_DATE") | ||
| 63 | private Date update_date; | ||
| 64 | /** | ||
| 65 | * 删除标记(0:正常;1:删除;2:审核) | ||
| 66 | */ | ||
| 67 | @TableField("DEL_FLAG") | ||
| 68 | protected String del_flag; | ||
| 69 | |||
| 70 | |||
| 71 | } | 
| 1 | package com.pashanhoo.zhj.mapper; | ||
| 2 | |||
| 3 | |||
| 4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||
| 5 | import com.pashanhoo.zhj.entity.RegBusBdcqzsdjxxDo; | ||
| 6 | import com.pashanhoo.zhj.entity.SynZhjInfoDo; | ||
| 7 | import org.apache.ibatis.annotations.Param; | ||
| 8 | |||
| 9 | import java.util.List; | ||
| 10 | import java.util.Map; | ||
| 11 | |||
| 12 | public interface RegBusBdcqzsdjxxMapper extends BaseMapper<RegBusBdcqzsdjxxDo> { | ||
| 13 | |||
| 14 | /** | ||
| 15 | * 批量业务号查询登记信息表数据 | ||
| 16 | * @param selectAllListInfo | ||
| 17 | * @return | ||
| 18 | */ | ||
| 19 | List<RegBusBdcqzsdjxxDo> getZsdjInfoList(List<SynZhjInfoDo> selectAllListInfo); | ||
| 20 | /** | ||
| 21 | * 业务号查询登记信息表数据 | ||
| 22 | * @param ywh | ||
| 23 | * @return | ||
| 24 | */ | ||
| 25 | List<RegBusBdcqzsdjxxDo> getZsdjInfoListByYwh(String ywh); | ||
| 26 | /** | ||
| 27 | * 根据宗地代码查询宗地信息 | ||
| 28 | * @param regBusBdcqzsdjxxDo | ||
| 29 | * @return | ||
| 30 | */ | ||
| 31 | public List<Map> getZdInfoByZddm(RegBusBdcqzsdjxxDo regBusBdcqzsdjxxDo); | ||
| 32 | /** | ||
| 33 | * 根据宗地代码查询户信息 | ||
| 34 | * @param regBusBdcqzsdjxxDo | ||
| 35 | * @return | ||
| 36 | */ | ||
| 37 | public List<Map> getHQSInfoByZddm(RegBusBdcqzsdjxxDo regBusBdcqzsdjxxDo); | ||
| 38 | |||
| 39 | /** | ||
| 40 | * 根据宗地代码查询户权属状态信息 | ||
| 41 | * @param regBusBdcqzsdjxxDo | ||
| 42 | * @return | ||
| 43 | */ | ||
| 44 | public List<Map> getQSZTInfoByZddm(RegBusBdcqzsdjxxDo regBusBdcqzsdjxxDo); | ||
| 45 | |||
| 46 | /** | ||
| 47 | * 查询所有需要创建电子证照并且已经登簿的业务信息 | ||
| 48 | * @return | ||
| 49 | */ | ||
| 50 | public List<Map> getBdcqzsjbxxInfo(); | ||
| 51 | |||
| 52 | /** | ||
| 53 | * 查询所有需要创建电子证照并且已经登簿的业务信息 | ||
| 54 | * @return | ||
| 55 | */ | ||
| 56 | public List<Map> getBdcqzsjbxxInfoByYwh(String ywh); | ||
| 57 | |||
| 58 | public List<Map> getUserInfo(); | ||
| 59 | |||
| 60 | public void updateBdcqzsjbxxInfo(String id); | ||
| 61 | |||
| 62 | public Map getQlrInfoByYwh(String ywh); | ||
| 63 | |||
| 64 | public String getQlrInfoByYwhAndqlr(@Param("ywh") String ywh, @Param("qlrmc") String qlrmc); | ||
| 65 | |||
| 66 | public Map getBdcqzsJbxxById(String id); | ||
| 67 | |||
| 68 | public String getInfoByValue(@Param("value") String value, @Param("type") String type); | ||
| 69 | |||
| 70 | Map getRightsInfo(@Param("bdcdyh")String bdcdyh); | ||
| 71 | |||
| 72 | Map getDyqqInfo(@Param("ywh")String ywh,@Param("bdcdyh")String bdcdyh); | ||
| 73 | |||
| 74 | String getHtbhInfo(@Param("ywh")String ywh); | ||
| 75 | |||
| 76 | |||
| 77 | Map getBdcjbxxInfo(@Param("bdcdyh")String bdcdyh); | ||
| 78 | |||
| 79 | Map getJbxxInfoByYwhAndBdcdyh(@Param("ywh")String ywh,@Param("bdcdyh")String bdcdyh); | ||
| 80 | |||
| 81 | Map getJbxxById(@Param("id")String id); | ||
| 82 | |||
| 83 | Map getZdjbxxByZddm(@Param("zddm")String zddm); | ||
| 84 | |||
| 85 | Map getZrzInfo(@Param("bdcdyh")String bdcdyh); | ||
| 86 | |||
| 87 | Map getHInfo(@Param("bdcdyh")String bdcdyh); | ||
| 88 | |||
| 89 | |||
| 90 | |||
| 91 | } | 
| 1 | package com.pashanhoo.zhj.mapper; | ||
| 2 | |||
| 3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||
| 4 | import com.pashanhoo.zhj.entity.SynZhjInfoDo; | ||
| 5 | |||
| 6 | |||
| 7 | |||
| 8 | import java.util.List; | ||
| 9 | |||
| 10 | public interface SynZhjInfoMapper extends BaseMapper<SynZhjInfoDo> { | ||
| 11 | |||
| 12 | List<SynZhjInfoDo> selectAllInfo(); | ||
| 13 | |||
| 14 | void updatezdzt(String ywh); | ||
| 15 | |||
| 16 | void updateHzt(String ywh); | ||
| 17 | |||
| 18 | void updateHqszt(String ywh); | ||
| 19 | |||
| 20 | } | 
| 1 | package com.pashanhoo.zhj.service; | ||
| 2 | |||
| 3 | import com.baomidou.mybatisplus.extension.service.IService; | ||
| 4 | import com.pashanhoo.zhj.entity.RegBusBdcqzsdjxxDo; | ||
| 5 | |||
| 6 | |||
| 7 | |||
| 8 | public interface ZhjDatasSynService extends IService<RegBusBdcqzsdjxxDo> { | ||
| 9 | |||
| 10 | public void send_bdcYwInfo(); | ||
| 11 | |||
| 12 | public void synZdInfoByywh(String ywh); | ||
| 13 | |||
| 14 | public void synHInfoByYwh(String ywh); | ||
| 15 | |||
| 16 | public void synQSZTInfoByYwh(String ywh); | ||
| 17 | |||
| 18 | |||
| 19 | |||
| 20 | } | 
This diff is collapsed.
Click to expand it.
src/main/resources/application.yaml
0 → 100644
src/main/resources/logback-spring.xml
0 → 100644
This diff is collapsed.
Click to expand it.
| 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||
| 3 | <mapper namespace="com.pashanhoo.qys.mapper.ElecLicenseInfoMapper"> | ||
| 4 | <update id="updateEciInfo"> | ||
| 5 | update ELEC_LICENSE_INFO set ERR_STATE='0',DZZZ_STATE='1' where biz_id=#{bizId} | ||
| 6 | </update> | ||
| 7 | |||
| 8 | <select id="getEciInfoByZsbs" resultType="com.pashanhoo.qys.entity.ElecLicenseInfoDo"> | ||
| 9 | select * from ELEC_LICENSE_INFO where zsbs=#{zsbs} | ||
| 10 | </select> | ||
| 11 | |||
| 12 | <select id="getDocumentIdIsNull" resultType="com.pashanhoo.qys.entity.ElecLicenseInfoDo"> | ||
| 13 | select * | ||
| 14 | from ELEC_LICENSE_INFO | ||
| 15 | where DOCUMENT_ID is null and htzt='COMPLETE' and ywh = #{ywh} | ||
| 16 | </select> | ||
| 17 | <select id="getWaitForDownload" resultType="com.pashanhoo.qys.entity.ElecLicenseInfoDo"> | ||
| 18 | select * | ||
| 19 | from ELEC_LICENSE_INFO | ||
| 20 | where DOCUMENT_ID is not null | ||
| 21 | and SFXZ = '2' and ywh = #{ywh} | ||
| 22 | </select> | ||
| 23 | <select id="getWaitForConvert" resultType="com.pashanhoo.qys.entity.ElecLicenseInfoDo"> | ||
| 24 | select * | ||
| 25 | from ELEC_LICENSE_INFO | ||
| 26 | where SFXZ = '1' | ||
| 27 | and SFZH = '2' | ||
| 28 | and ofd_wjdz is not null and ywh = #{ywh} | ||
| 29 | </select> | ||
| 30 | <select id="getYwrMcByCOnditon" resultType="java.lang.String"> | ||
| 31 | select qlrmc as ywr | ||
| 32 | from reg_bus_ywr c | ||
| 33 | where ywh = #{ywh} | ||
| 34 | and bdcdyh = #{bdcdyh} | ||
| 35 | and del_flag = '0' | ||
| 36 | and qszt = '1' | ||
| 37 | </select> | ||
| 38 | <select id="getElecLicenseInfo" resultType="com.pashanhoo.qys.entity.ElecLicenseInfoDo"> | ||
| 39 | select * | ||
| 40 | from ELEC_LICENSE_INFO | ||
| 41 | where ywh = #{ywh} and zsbs=#{zsbs} and zsbh=#{zsbh} and zjh=#{zjh} | ||
| 42 | </select> | ||
| 43 | |||
| 44 | |||
| 45 | </mapper> | 
| 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||
| 3 | <mapper namespace="com.pashanhoo.zhj.mapper.RegBusBdcqzsdjxxMapper"> | ||
| 4 | <update id="updateBdcqzsjbxxInfo"> | ||
| 5 | update reg_bus_bdcqzsdjxx set ISCJDZZZ='1' where ID=#{id} | ||
| 6 | </update> | ||
| 7 | |||
| 8 | <select id="getZsdjInfoList" resultType="com.pashanhoo.zhj.entity.RegBusBdcqzsdjxxDo" parameterType="com.pashanhoo.zhj.entity.SynZhjInfoDo"> | ||
| 9 | select * from reg_bus_bdcqzsdjxx where | ||
| 10 | del_flag='0' | ||
| 11 | and | ||
| 12 | ywh in | ||
| 13 | <foreach collection="list" item="selectAllListInfo" open="(" close=")" separator=","> | ||
| 14 | #{selectAllListInfo.ywh,jdbcType=VARCHAR} | ||
| 15 | </foreach> | ||
| 16 | |||
| 17 | </select> | ||
| 18 | <select id="getZsdjInfoListByYwh" resultType="com.pashanhoo.zhj.entity.RegBusBdcqzsdjxxDo" parameterType="java.lang.String"> | ||
| 19 | select * from reg_bus_bdcqzsdjxx where | ||
| 20 | del_flag='0' | ||
| 21 | and ywh=#{ywh} | ||
| 22 | </select> | ||
| 23 | |||
| 24 | |||
| 25 | |||
| 26 | <select id="getZdInfoByZddm" parameterType="string" resultType="java.util.Map"> | ||
| 27 | select c.seachcity as djqdm, | ||
| 28 | (select label | ||
| 29 | from sys_dict b | ||
| 30 | where type = 'reg_bus_djq' | ||
| 31 | and b.value = c.seachcity) as djqmc, | ||
| 32 | c.seachdistrict as djzqdm, | ||
| 33 | (select label | ||
| 34 | from sys_dict b | ||
| 35 | where type = 'reg_bus_djzq' | ||
| 36 | and b.value = c.seachdistrict) as djzqmc, | ||
| 37 | c.bdcdyh, | ||
| 38 | c.zl, | ||
| 39 | c.zdmj, | ||
| 40 | c.yt | ||
| 41 | from reg_base_zdjbxx c,reg_bus_bdcqzsdjxx a | ||
| 42 | where a.del_flag = '0' | ||
| 43 | and a.islogout = '0' | ||
| 44 | and a.bdcdyh = c.bdcdyh | ||
| 45 | and a.bdcdyh=#{bdcdyh} | ||
| 46 | and a.ywh=#{ywh} | ||
| 47 | and c.del_flag = '0' | ||
| 48 | </select> | ||
| 49 | <select id="getHQSInfoByZddm" parameterType="string" resultType="java.util.Map"> | ||
| 50 | select c.bdcdyh, | ||
| 51 | c.zrzh, | ||
| 52 | c.ch, | ||
| 53 | c.zl, | ||
| 54 | c.sjcs, | ||
| 55 | c.shbw, | ||
| 56 | c.hx, | ||
| 57 | c.hxjg, | ||
| 58 | c.fwyt1, | ||
| 59 | c.scjzmj, | ||
| 60 | c.sctnjzmj, | ||
| 61 | c.scdxbfjzmj, | ||
| 62 | c.fttdmj, | ||
| 63 | c.fwlx, | ||
| 64 | c.fwxz, | ||
| 65 | b.qllx, | ||
| 66 | b.djlx, | ||
| 67 | b.syqmj, | ||
| 68 | to_char(trunc(b.syqqssj),'yyyy-mm-dd') as syqqssj, | ||
| 69 | to_char(trunc(b.syqjssj),'yyyy-mm-dd') as syqjssj, | ||
| 70 | b.bdcqzh, | ||
| 71 | b.qxdm, | ||
| 72 | to_char(trunc(b.djsj),'yyyy-mm-dd') as djsj, | ||
| 73 | b.qszt, | ||
| 74 | c.zt | ||
| 75 | from reg_base_h c, reg_bus_jsydsyq b | ||
| 76 | where c.del_flag = '0' | ||
| 77 | and c.rights != '3' | ||
| 78 | and exists (select 1 | ||
| 79 | from reg_bus_bdcqzsdjxx a | ||
| 80 | where a.del_flag = '0' | ||
| 81 | and a.islogout = '0' | ||
| 82 | and a.bdcdyh = c.bdcdyh | ||
| 83 | and a.ywh=#{ywh} | ||
| 84 | and a.bdcdyh =#{bdcdyh}) | ||
| 85 | and c.zddm=b.zddm | ||
| 86 | and b.del_flag = '0' | ||
| 87 | </select> | ||
| 88 | <select id="getQSZTInfoByZddm" parameterType="string" resultType="java.util.Map"> | ||
| 89 | select #{bdcdyh} as bdcdyh, | ||
| 90 | nvl((select decode(qszt,'1','0','1') from reg_bus_dyaq where ywh=#{ywh} and bdcdyh=#{bdcdyh} and del_flag='0' and qszt=1),'0') as dyqszt, | ||
| 91 | nvl((select decode(qszt,'1','0','1') from reg_bus_ygdj where ywh=#{ywh} and bdcdyh=#{bdcdyh} and del_flag='0' and qszt=1),'0') as ygqszt, | ||
| 92 | nvl((select decode(qszt,'1','0','1') from reg_bus_yydj where ywh=#{ywh} and bdcdyh=#{bdcdyh} and del_flag='0' and qszt=1),'0') as yyqszt, | ||
| 93 | nvl((select decode(qszt,'1','0','1') from reg_bus_cfdj where ywh=#{ywh} and bdcdyh=#{bdcdyh} and del_flag='0' and qszt=1),'0') as cfqszt | ||
| 94 | from dual | ||
| 95 | </select> | ||
| 96 | <select id="getBdcqzsjbxxInfo" resultType="java.util.Map"> | ||
| 97 | select c.id, | ||
| 98 | c.ywh, | ||
| 99 | c.bdcdyh, | ||
| 100 | c.bdcqzh, | ||
| 101 | c.create_date, | ||
| 102 | c.qlrmc, | ||
| 103 | c.gyqk, | ||
| 104 | c.zl, | ||
| 105 | (select label from sys_dict c where type ='reg_bus_qllx' and value= c.qllx and del_flag='0') qllx, | ||
| 106 | c.djlx, | ||
| 107 | c.qlxz, | ||
| 108 | c.qt, | ||
| 109 | c.yt, | ||
| 110 | c.mj, | ||
| 111 | c.syqx, | ||
| 112 | c.qlqtzk, | ||
| 113 | c.fj, | ||
| 114 | c.rights, | ||
| 115 | REPLACE(c.dbsj,'-','') as djsj, | ||
| 116 | to_char(to_date(c.dbsj, 'yyyy-mm-dd'),'YYYY') as y, | ||
| 117 | to_char(to_date(c.dbsj, 'yyyy-mm-dd'),'MM') as m, | ||
| 118 | to_char(to_date(c.dbsj, 'yyyy-mm-dd'),'dd') as d, | ||
| 119 | c.bdcqzbh as bh | ||
| 120 | from reg_bus_bdcqzsdjxx c | ||
| 121 | where c.del_flag = '0' | ||
| 122 | and c.isxydzzz = '1' | ||
| 123 | and c.iscjdzzz = '0' | ||
| 124 | and dbsj is not null | ||
| 125 | </select> | ||
| 126 | |||
| 127 | <select id="getBdcqzsjbxxInfoByYwh" resultType="java.util.Map"> | ||
| 128 | select c.id, | ||
| 129 | c.ywh, | ||
| 130 | c.bdcdyh, | ||
| 131 | c.bdcqzh, | ||
| 132 | c.create_date, | ||
| 133 | c.qlrmc, | ||
| 134 | c.gyqk, | ||
| 135 | c.zl, | ||
| 136 | (select label from sys_dict c where type ='reg_bus_qllx' and value= c.qllx and del_flag='0') qllx, | ||
| 137 | c.djlx, | ||
| 138 | c.qlxz, | ||
| 139 | c.qt, | ||
| 140 | c.yt, | ||
| 141 | c.mj, | ||
| 142 | c.syqx, | ||
| 143 | c.qlqtzk, | ||
| 144 | c.fj, | ||
| 145 | c.rights, | ||
| 146 | REPLACE(c.dbsj,'-','') as djsj, | ||
| 147 | to_char(to_date(c.dbsj, 'yyyy-mm-dd'),'YYYY') as y, | ||
| 148 | to_char(to_date(c.dbsj, 'yyyy-mm-dd'),'MM') as m, | ||
| 149 | to_char(to_date(c.dbsj, 'yyyy-mm-dd'),'dd') as d, | ||
| 150 | c.bdcqzbh as bh | ||
| 151 | from reg_bus_bdcqzsdjxx c | ||
| 152 | where c.del_flag = '0' | ||
| 153 | and c.isxydzzz = '1' | ||
| 154 | and c.iscjdzzz = '0' | ||
| 155 | and c.ywh=#{ywh} | ||
| 156 | and dbsj is not null | ||
| 157 | </select> | ||
| 158 | <select id="getQlrInfoByYwh" resultType="java.util.Map"> | ||
| 159 | select wm_concat(qlrmc) as qlrmc,wm_concat(zjh) as zjh from reg_bus_qlr c where ywh =#{ywh} and del_flag='0' and qszt='1' order by sxh | ||
| 160 | </select> | ||
| 161 | <select id="getQlrInfoByYwhAndqlr" resultType="java.lang.String"> | ||
| 162 | select zjh from reg_bus_qlr c where ywh =#{ywh} and qlrmc=#{qlrmc} and del_flag='0' and qszt='1' order by sxh | ||
| 163 | </select> | ||
| 164 | <select id="getBdcqzsJbxxById" resultType="java.util.Map"> | ||
| 165 | select c.id, | ||
| 166 | c.ywh, | ||
| 167 | c.bdcdyh, | ||
| 168 | c.bdcqzh, | ||
| 169 | c.create_date, | ||
| 170 | c.qlrmc, | ||
| 171 | c.gyqk, | ||
| 172 | c.zl, | ||
| 173 | (select label from sys_dict c where type ='reg_bus_qllx' and value= c.qllx and del_flag='0') qllx, | ||
| 174 | c.djlx, | ||
| 175 | c.qlxz, | ||
| 176 | c.qt, | ||
| 177 | c.yt, | ||
| 178 | c.mj, | ||
| 179 | c.syqx, | ||
| 180 | c.qlqtzk, | ||
| 181 | c.fj, | ||
| 182 | c.rights, | ||
| 183 | REPLACE(c.dbsj,'-','') as djsj, | ||
| 184 | to_char(to_date(c.dbsj, 'yyyy-mm-dd'),'YYYY') as y, | ||
| 185 | to_char(to_date(c.dbsj, 'yyyy-mm-dd'),'MM') as m, | ||
| 186 | to_char(to_date(c.dbsj, 'yyyy-mm-dd'),'dd') as d, | ||
| 187 | c.bdcqzbh as bh | ||
| 188 | from reg_bus_bdcqzsdjxx c | ||
| 189 | where c.id=#{id} | ||
| 190 | </select> | ||
| 191 | <select id="getInfoByValue" resultType="java.lang.String"> | ||
| 192 | select label from sys_dict c where del_flag='0' and type=#{type} and value=#{value} | ||
| 193 | </select> | ||
| 194 | <select id="getRightsInfo" resultType="java.util.Map"> | ||
| 195 | select * from ( SELECT * FROM reg_bus_rights a WHERE a.bdcdyh = #{bdcdyh} order by del_flag ) where rownum=1 | ||
| 196 | </select> | ||
| 197 | |||
| 198 | <select id="getDyqqInfo" resultType="java.util.Map"> | ||
| 199 | select c.bdbzzqse,to_char(c.zwlxqssj,'yyyymmdd') as zwlxqssj,to_char(c.zwlxjssj,'yyyymmdd') as zwlxjssj from reg_bus_dyaq c where ywh=#{ywh} and bdcdyh=#{bdcdyh} and qszt='1' | ||
| 200 | </select> | ||
| 201 | <select id="getHtbhInfo" resultType="java.lang.String"> | ||
| 202 | select htbh from reg_bus_ygdj c where qszt='1' and del_flag='0' and ywh=#{ywh} | ||
| 203 | </select> | ||
| 204 | <select id="getBdcjbxxInfo" resultType="java.util.Map"> | ||
| 205 | select * from reg_bus_bdcqzsdjxx c where bdcdyh=#{bdcdyh} and islogout='0' and dbsj is not null and del_flag='0' | ||
| 206 | </select> | ||
| 207 | <select id="getJbxxInfoByYwhAndBdcdyh" resultType="java.util.Map"> | ||
| 208 | select * from reg_bus_bdcqzsdjxx c where ywh=#{ywh} and bdcdyh=#{bdcdyh} and islogout='0' and dbsj is not null and del_flag='0' | ||
| 209 | </select> | ||
| 210 | <select id="getJbxxById" resultType="java.util.Map"> | ||
| 211 | select * from reg_bus_bdcqzsdjxx c where id=#{id} | ||
| 212 | </select> | ||
| 213 | <select id="getZdjbxxByZddm" resultType="java.util.Map"> | ||
| 214 | select * from reg_base_zdjbxx where del_flag='0' and zddm=#{zddm} and islogout='0' | ||
| 215 | </select> | ||
| 216 | <select id="getZrzInfo" resultType="java.util.Map"> | ||
| 217 | select * from reg_base_zrz where bdcdyh=#{bdcdyh} and del_flag='0' | ||
| 218 | </select> | ||
| 219 | <select id="getHInfo" resultType="java.util.Map"> | ||
| 220 | select * from reg_base_h c where bdcdyh=#{bdcdyh} and islogout='0' and del_flag='0' | ||
| 221 | </select> | ||
| 222 | </mapper> | 
| 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||
| 3 | <mapper namespace="com.pashanhoo.zhj.mapper.SynZhjInfoMapper"> | ||
| 4 | |||
| 5 | <select id="selectAllInfo" resultType="com.pashanhoo.zhj.entity.SynZhjInfoDo"> | ||
| 6 | select * from syn_zhjinfo where ZD_STATE='0' and H_STATE='0' and HQS_STATE='0' and del_flag='0' | ||
| 7 | </select> | ||
| 8 | |||
| 9 | <update id="updatezdzt"> | ||
| 10 | update syn_zhjinfo set ZD_STATE='1' where ywh=#{ywh} | ||
| 11 | </update> | ||
| 12 | <update id="updateHzt"> | ||
| 13 | update syn_zhjinfo set H_STATE='1' where ywh=#{ywh} | ||
| 14 | </update> | ||
| 15 | <update id="updateHqszt"> | ||
| 16 | update syn_zhjinfo set HQS_STATE='1' where ywh=#{ywh} | ||
| 17 | </update> | ||
| 18 | </mapper> | 
- 
Please register or sign in to post a comment