From e15f561a1f9eddfde503d59baf45a860b131928e Mon Sep 17 00:00:00 2001 From: fei.wang <wf18701153496@163.com> Date: 星期三, 13 八月 2025 14:22:50 +0800 Subject: [PATCH] 更新最新版代码 --- src/main/java/com/flow/controller/TbFuwuqiController.java | 17 ++++++++--------- 1 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/main/java/com/flow/controller/TbFuwuqiController.java b/src/main/java/com/flow/controller/TbFuwuqiController.java index efeee02..07184f2 100644 --- a/src/main/java/com/flow/controller/TbFuwuqiController.java +++ b/src/main/java/com/flow/controller/TbFuwuqiController.java @@ -4,7 +4,6 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.flow.mapper.OperationLogMapper; import com.flow.mapper.TbFuwuqiMapper; -import com.flow.pojo.Card; import com.flow.pojo.OperationLog; import com.flow.pojo.TbFuwuqi; import com.flow.service.CompanyService; @@ -14,10 +13,7 @@ import com.flow.util.resultutil; import com.github.pagehelper.PageInfo; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.bind.annotation.*; import org.springframework.web.servlet.ModelAndView; import java.text.ParseException; @@ -40,9 +36,11 @@ TbFuwuqiMapper tbFuwuqiMapper; @Autowired OperationLogMapper operationLogMapper; - @GetMapping({"findTbFuwuqi"}) - result<List<TbFuwuqi>> findBangZhu(Integer page, Integer limit) throws ParseException { - PageInfo<TbFuwuqi> cz = this.tbFuwuqiService.FindTbFuwuqi(page, limit); + +// @RequestMapping(value = "findTbFuwuqi", method = RequestMethod.GET, produces = "application/json; charset=utf-8") + @PostMapping({"findTbFuwuqi"}) + result<List<TbFuwuqi>> findBangZhu(Integer page, Integer limit,String entry) throws ParseException { + PageInfo<TbFuwuqi> cz = this.tbFuwuqiService.FindTbFuwuqi(page, limit,entry); for(int i = 0; i < cz.getSize(); ++i) { if (((TbFuwuqi)cz.getList().get(i)).getCompany() != null) { SimpleDateFormat date2 = new SimpleDateFormat("yyyy-MM-dd"); @@ -66,8 +64,9 @@ return resultutil.returnSuccess(cz.getTotal(), cz.getList()); } - @GetMapping({"findTbFuwuqiZi"}) + @PostMapping({"findTbFuwuqiZi"}) result<List<TbFuwuqi>> findTbFuwuqiZi(String Zong, Integer page, Integer limit) throws ParseException { + System.out.println(Zong); PageInfo<TbFuwuqi> cz = this.tbFuwuqiService.findTbFuwuqiZi(Zong, page, limit); for(int i = 0; i < cz.getSize(); ++i) { if (((TbFuwuqi)cz.getList().get(i)).getCompany() != null) { -- Gitblit v1.9.3