From 7342e9822ae8812ed67ac02082d9f6437b78f63d Mon Sep 17 00:00:00 2001 From: sikadi <13315935+sikadi_love@user.noreply.gitee.com> Date: Mon, 20 Nov 2023 14:14:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fate/firm/controller/FirmController.java | 9 ++++++- .../com/fate/firm/service/FirmService.java | 25 ++++++++++++++++++- .../firm/service/impl/FirmServiceImpl.java | 8 ++++++ 3 files changed, 40 insertions(+), 2 deletions(-) diff --git a/fate-firm-server/src/main/java/com/fate/firm/controller/FirmController.java b/fate-firm-server/src/main/java/com/fate/firm/controller/FirmController.java index 96a19a0..de6e552 100644 --- a/fate-firm-server/src/main/java/com/fate/firm/controller/FirmController.java +++ b/fate-firm-server/src/main/java/com/fate/firm/controller/FirmController.java @@ -65,7 +65,14 @@ public class FirmController extends BaseController { return result; } - + /** + * 修改信息 + * + * @author: ZhuoXin + * @date: 2023/11/20 13:19 + * @param: [firm] + * @return: com.fate.common.core.domain.Result + **/ @PostMapping("/updateStatus") public Result updateStatus(@RequestBody Firm firm) { log.info("功能:修改状态,URI:{},方法:{},参数:{}", request.getRequestURI(), request.getMethod(), JSON.toJSONString(firm)); diff --git a/fate-firm-server/src/main/java/com/fate/firm/service/FirmService.java b/fate-firm-server/src/main/java/com/fate/firm/service/FirmService.java index 62a2a04..d2a4d37 100644 --- a/fate-firm-server/src/main/java/com/fate/firm/service/FirmService.java +++ b/fate-firm-server/src/main/java/com/fate/firm/service/FirmService.java @@ -17,13 +17,36 @@ import java.util.List; public interface FirmService extends IService { + /** + * 添加企业入驻 + * + * @author: ZhuoXin + * @date: 2023/11/20 10:45 + * @param: [firm] + * @return: com.fate.common.core.domain.Result + **/ Result addFirm(Firm firm); + /** + * 修改信息 + * + * @author: ZhuoXin + * @date: 2023/11/20 13:19 + * @param: [firm] + * @return: com.fate.common.core.domain.Result + **/ Result updateFirm(Firm firm); List listSel(Firm firm); - + /** + * 修改信息 + * + * @author: ZhuoXin + * @date: 2023/11/20 13:19 + * @param: [firm] + * @return: com.fate.common.core.domain.Result + **/ Result updateStatus(Firm firm); } diff --git a/fate-firm-server/src/main/java/com/fate/firm/service/impl/FirmServiceImpl.java b/fate-firm-server/src/main/java/com/fate/firm/service/impl/FirmServiceImpl.java index 76c104c..b6c3a88 100644 --- a/fate-firm-server/src/main/java/com/fate/firm/service/impl/FirmServiceImpl.java +++ b/fate-firm-server/src/main/java/com/fate/firm/service/impl/FirmServiceImpl.java @@ -27,6 +27,14 @@ public class FirmServiceImpl extends ServiceImpl implements Fi @Autowired private FirmMapper firmMapper; + /** + * 添加企业入驻 + * + * @author: ZhuoXin + * @date: 2023/11/20 10:45 + * @param: [firm] + * @return: com.fate.common.core.domain.Result + **/ @Override public Result addFirm(Firm firm) { firm.setFirmId(null);