fei.wang
7 天以前 e15f561a1f9eddfde503d59baf45a860b131928e
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) {