admin
2020-07-07 c9cbad5f5d18c6b2ac5a063e41007933d7028329
fanli/src/main/java/com/yeshi/fanli/controller/admin/LostOrderAdminController.java
@@ -6,6 +6,7 @@
import javax.annotation.Resource;
import com.yeshi.fanli.entity.accept.AdminAcceptData;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.yeshi.utils.JsonUtil;
@@ -36,8 +37,8 @@
    * @param out
    */
   @RequestMapping("query")
   public void query(String callback, Integer pageIndex, Integer pageSize, String key, Integer state,
         Integer handleType, Integer type, PrintWriter out) {
   public void query(AdminAcceptData acceptData, String callback, Integer pageIndex, Integer pageSize, String key, Integer state,
                 Integer handleType, Integer type, PrintWriter out) {
      
      if (pageIndex == null || pageIndex < 0){
         pageIndex = 1;
@@ -49,7 +50,7 @@
      
      try {
         
         List<LostOrder> list = lostOrderService.listQuery((pageIndex - 1) * pageSize, pageSize, key, state, handleType, type);
         List<LostOrder> list = lostOrderService.listQuery((pageIndex - 1) * pageSize, pageSize, key, state, handleType, type,acceptData.getSystem());
         if (list == null || list.size() == 0) {
            JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("暂无更多数据"));
            return;
@@ -98,7 +99,7 @@
            }
         }
         
         long count = lostOrderService.countQuery(key, state, handleType, type);
         long count = lostOrderService.countQuery(key, state, handleType, type,acceptData.getSystem());
         int totalPage = (int) (count % pageSize == 0 ? count / pageSize : count / pageSize + 1);
         PageEntity pe = new PageEntity(pageIndex, pageSize, count, totalPage);
         
@@ -126,7 +127,7 @@
    * @param out
    */
   @RequestMapping("passOrder")
   public void passOrder(String callback, Long id, PrintWriter out) {
   public void passOrder(AdminAcceptData acceptData,String callback, Long id, PrintWriter out) {
      
      if (id == null) {
         JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("ID不能为空"));
@@ -164,7 +165,7 @@
    * @param out
    */
   @RequestMapping("rejectOrder")
   public void rejectOrder(String callback, Long id, String reason, PrintWriter out) {
   public void rejectOrder(AdminAcceptData acceptData,String callback, Long id, String reason, PrintWriter out) {
      if (id == null) {
         JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("ID不能为空"));
         return;