From 77a9941837b15cece45d814c67a5a3def87f12f8 Mon Sep 17 00:00:00 2001 From: zouyx <1798599149@qq.com> Date: Mon, 2 Dec 2024 11:45:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=81=E4=B8=9A=E7=AB=AF=E4=BC=81=E4=B8=9A?= =?UTF-8?q?=E5=8F=98=E6=9B=B4=E5=92=8C=E6=B3=A8=E9=94=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AppEnterpriseInformationController.java | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/lib/EmergencyService/zdxtEmergencyAppService/src/main/java/com/zdxt/app/controller/AppEnterpriseInformationController.java b/lib/EmergencyService/zdxtEmergencyAppService/src/main/java/com/zdxt/app/controller/AppEnterpriseInformationController.java index a6ce037a..7000db4d 100644 --- a/lib/EmergencyService/zdxtEmergencyAppService/src/main/java/com/zdxt/app/controller/AppEnterpriseInformationController.java +++ b/lib/EmergencyService/zdxtEmergencyAppService/src/main/java/com/zdxt/app/controller/AppEnterpriseInformationController.java @@ -4,6 +4,7 @@ import cn.hutool.core.bean.BeanUtil; import cn.hutool.core.util.StrUtil; import com.zdxt.code.domain.EnterpriseInformation; import com.zdxt.code.domain.QrCodeGenerateHistory; +import com.zdxt.code.mapper.EnterpriseInformationMapper; import com.zdxt.code.service.IEnterpriseInformationService; import com.zdxt.code.service.IQrCodeGenerateHistoryService; import com.zdxt.common.ZDResponse; @@ -34,6 +35,8 @@ public class AppEnterpriseInformationController extends BaseController @Autowired private IQrCodeGenerateHistoryService iQrCodeGenerateHistoryService; + @Autowired + private EnterpriseInformationMapper enterpriseInformationMapper; @RequiresPermissions("code:information:view") @GetMapping() @@ -122,7 +125,25 @@ public class AppEnterpriseInformationController extends BaseController ZDResponse.success("修改成功"): ZDResponse.error("修改失败"); } - + @PostMapping("/editNotQX") + @ResponseBody + public ZDResponse editNotQX(@RequestBody EnterpriseInformation enterpriseInformation) + { + int i=enterpriseInformationMapper.updateEnterpriseInformation(enterpriseInformation); + return i > 0 ? + ZDResponse.success("修改成功"): ZDResponse.error("修改失败"); + } + @PostMapping("/unsubscribeNotQX") + @ResponseBody + public ZDResponse unsubscribeNotQX(@RequestBody EnterpriseInformation enterpriseInformation) + { + if(enterpriseInformation.getEnterpriseNumber()!=null&&!"".equals(enterpriseInformation.getEnterpriseNumber())){ + enterpriseInformation.setId(enterpriseInformationService.selectEnterpriseInformationByNum(enterpriseInformation.getEnterpriseNumber()).getId());enterpriseInformationService.selectEnterpriseInformationByNum(enterpriseInformation.getEnterpriseNumber()); + } + int i=enterpriseInformationService.updateEnterpriseInformation(enterpriseInformation); + return i > 0 ? + ZDResponse.success("注销成功"): ZDResponse.error("注销失败"); + } /** * 修改保存企业信息登记 */