| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | 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"); |
| | |
| | | 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) { |