From ccd4345bfa337a85454c34b4fd3a8f83058f5859 Mon Sep 17 00:00:00 2001
From: tangzy <tangzy123456>
Date: Wed, 25 Aug 2021 15:20:57 +0800
Subject: [PATCH] 1.备案
---
src/main/java/org/springblade/modules/revoke/controller/RevokeController.java | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/src/main/java/org/springblade/modules/revoke/controller/RevokeController.java b/src/main/java/org/springblade/modules/revoke/controller/RevokeController.java
index e6e2082..2dca31c 100644
--- a/src/main/java/org/springblade/modules/revoke/controller/RevokeController.java
+++ b/src/main/java/org/springblade/modules/revoke/controller/RevokeController.java
@@ -39,7 +39,7 @@
import java.util.Map;
/**
- * 控制器
+ * 控制器
*
* @author BladeX
* @since 2021-07-12
@@ -94,7 +94,7 @@
public R save(@Valid @RequestBody Revoke revoke) {
String cardid = revoke.getCardid();
Map map = revokeService.selectIn(cardid);
- if (map!=null){
+ if (map != null) {
String id = map.get("id").toString();
revokeService.removeByIds(Func.toLongList(id));
}
@@ -104,26 +104,27 @@
revoke.setPermitime(new Date());
revokeService.save(revoke);
String formatStr = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(revoke.getEstablishtime());
+ String pertime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(revoke.getPermitime());
String s = "insert into sys_revoke(id,creditCode,enterpriseName,representative,establishTime," +
"registeredCapital,organizationCode,registrationNumber,identificationNumber,enterprises," +
- "address,business,region,registration,industry,type,permitime,deptid,ptype,representativecell,contacts,contactscell,reason)" +
+ "address,business,region,registration,industry,type,permitime,deptid,ptype,representativecell,contacts,contactscell,reason,jurisdiction)" +
"values(" + "'" + revoke.getId() + "'" + "," + "'" + revoke.getCreditcode() + "'" + "," + "'" + revoke.getEnterprisename() + "'" + "," + "'"
+ revoke.getRepresentative() + "'" + "," +
"'" + formatStr + "'" + "," + "'" + revoke.getRegisteredcapital() + "'" + "," + "'"
+ revoke.getOrganizationcode() + "'" + "," + "'" + revoke.getRegistrationnumber() + "'" + "," +
"'" + revoke.getIdentificationnumber() + "'" + "," + "'" + revoke.getEnterprises() + "'" + "," + "'" +
revoke.getAddress() + "'" + "," + "'" + revoke.getBusiness() + "'" + "," + "'" +
- revoke.getRegion() + "'" + "," + "'" + revoke.getRegistration() + "'" + "," + "'" + revoke.getIndustry()+ "'" + "," + "'"
+ revoke.getRegion() + "'" + "," + "'" + revoke.getRegistration() + "'" + "," + "'" + revoke.getIndustry() + "'" + "," + "'"
+ revoke.getType() + "'" + "," +
- "'" + revoke.getPermitime() + "'" + "," + "'" + revoke.getDeptid() + "'" + "," + "'" + revoke.getPtype() + "'" + "," +
- "'" + revoke.getRepresentativecell() + "'" + "," + "'" + revoke.getContacts() + "'" + "," + "'" + revoke.getContactscell() + "'"+"," +
- "'" + revoke.getReason() + "'"+")" ;
+ "'" + pertime + "'" + "," + "'" + revoke.getDeptid() + "'" + "," + "'" + revoke.getPtype() + "'" + "," +
+ "'" + revoke.getRepresentativecell() + "'" + "," + "'" + revoke.getContacts() + "'" + "," + "'" + revoke.getContactscell() + "'" + "," +
+ "'" + revoke.getReason() + "'" + "," + "'" + revoke.getJurisdiction() + "'" + ")";
FtpUtil.sqlFileUpload(s);
return R.success("成功");
}
/**
- *暂存
+ * 暂存
*/
@PostMapping("/revokesave")
@ApiOperationSupport(order = 4)
@@ -131,11 +132,10 @@
public R revokesave(@Valid @RequestBody Revoke revoke) {
String cardid = revoke.getCardid();
Map map = revokeService.selectIn(cardid);
- if (map!=null){
+ if (map != null) {
revoke.setStorage("0");
revokeService.updateById(revoke);
- }
- else {
+ } else {
revoke.setStorage("0");
revoke.setType("2");
revoke.setPtype("6");
--
Gitblit v1.9.3