‘linchangsheng’ 6 月之前
父节点
当前提交
3617889f5e

+ 11 - 0
mall-server-api/src/main/java/com/gree/mall/manager/controller/policy/PolicyController.java

@@ -89,5 +89,16 @@ public class PolicyController {
     }
 
 
+    @PostMapping("/del")
+    @ApiOperation("删除")
+    public ResponseHelper del(
+            @ApiParam(value = "id", required = true) @RequestParam String id,
+            HttpServletRequest request
+    ) throws ParseException {
+        policyLogic.del(id);
+        return ResponseHelper.success();
+    }
+
+
 
 }

+ 8 - 0
mall-server-api/src/main/java/com/gree/mall/manager/logic/policy/PolicyLogic.java

@@ -114,4 +114,12 @@ public class PolicyLogic {
         policyRangeService.saveBatch(policyDetail.getPolicyRanges());
         policyWebsitService.saveBatch(policyDetail.getPolicyWebsits());
     }
+
+    public void del(String id) {
+
+        policyService.removeById(id);
+
+        policyRangeService.lambdaUpdate().eq(PolicyRange::getPolicyId,id).remove();
+        policyWebsitService.lambdaUpdate().eq(PolicyWebsit::getPolicyId,id).remove();
+    }
 }

+ 4 - 8
mall-server-api/src/main/resources/bootstrap-dev.properties

@@ -105,15 +105,11 @@ spring.elasticsearch.rest.read-timeout=30s
 cmc.bank.url=http://cdctest.cmburl.cn:80/cdcserver/api/v2
 
 #联通云呼配置
-#unicome.yunh.baseurl=https://a5.7x24cc.com
-#unicome.yunh.account=N000000015221
-#unicome.yunh.secret=fe443fc0264411ec80212baafe602ea7
-#unicome.yunh.appid=69jpgmwqxyhtcsor
-
 unicome.yunh.baseurl=https://a5.7x24cc.com
-unicome.yunh.account=N000000014414
-unicome.yunh.secret=c33fe780-fd69-11ea-8033-ff87e22c5f18
-unicome.yunh.appid=a6s2zu00twewmi
+unicome.yunh.account=N000000015221
+unicome.yunh.secret=fe443fc0264411ec80212baafe602ea7
+unicome.yunh.appid=69jpgmwqxyhtcsor
+
 
 #法大大
 fadada.app.id=401793

+ 4 - 8
mall-server-api/src/main/resources/bootstrap-test.properties

@@ -94,15 +94,11 @@ cmc.bank.sm4key=VuAzSWQhsoNqzn0K
 cmc.bank.uid=B000012532
 
 #联通云呼配置
-#unicome.yunh.baseurl=https://a5.7x24cc.com
-#unicome.yunh.account=N000000015221
-#unicome.yunh.secret=fe443fc0264411ec80212baafe602ea7
-#unicome.yunh.appid=69jpgmwqxyhtcsor
-
 unicome.yunh.baseurl=https://a5.7x24cc.com
-unicome.yunh.account=N000000014414
-unicome.yunh.secret=c33fe780-fd69-11ea-8033-ff87e22c5f18
-unicome.yunh.appid=a6s2zu00twewmi
+unicome.yunh.account=N000000015221
+unicome.yunh.secret=fe443fc0264411ec80212baafe602ea7
+unicome.yunh.appid=69jpgmwqxyhtcsor
+
 
 #法大大
 fadada.app.id=401793