admin
2020-07-04 9d35ba657fa5e3add766405d76e3ff8c4dcd4ad4
fanli/src/main/java/com/yeshi/fanli/controller/admin/PushInfoController.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;
@@ -27,11 +28,8 @@
@RequestMapping("admin/new/api/v1/pushInfo")
public class PushInfoController {
   @Resource
   private PushInfoService pushInfoService;
   /**
    * 新增/修改
@@ -63,7 +61,7 @@
    * @param out
    */
   @RequestMapping(value = "query")
   public void query(String callback, Integer pageIndex, Integer pageSize, String key, Integer keyType,
   public void query(AdminAcceptData acceptData, String callback, Integer pageIndex, Integer pageSize, String key, Integer keyType,
         Integer state, String type, PrintWriter out) {
      if (pageIndex == null || pageIndex < 1) {
@@ -76,14 +74,14 @@
      try {
         List<PushInfo> list = pushInfoService.listQuery((pageIndex-1) * pageSize, pageSize, key, keyType, state, type);
         List<PushInfo> list = pushInfoService.listQuery((pageIndex-1) * pageSize, pageSize, key, keyType, state, type,acceptData.getSystem());
         if (list == null || list.size() == 0) {
            JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("暂无数据"));
            return;
         }
         long count = pushInfoService.countQuery(key, keyType, state, type);
         long count = pushInfoService.countQuery(key, keyType, state, type,acceptData.getSystem());
         int totalPage = (int) (count % pageSize == 0 ? count / pageSize : count / pageSize + 1);
         PageEntity pe = new PageEntity(pageIndex, pageSize, count, totalPage);
@@ -139,7 +137,6 @@
   
   /**
    * 推送
    * @param id 推送id
    * @param out
    * @throws Exception
    */