|
@@ -20,10 +20,7 @@ import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
-import java.util.ArrayList;
|
|
|
-import java.util.Arrays;
|
|
|
-import java.util.List;
|
|
|
-import java.util.Objects;
|
|
|
+import java.util.*;
|
|
|
|
|
|
/**
|
|
|
* @Description: 外协价格库
|
|
@@ -42,7 +39,7 @@ public class CostModelWxPriceController extends JeecgController<CostModelWxPrice
|
|
|
private ICostModelWxRepeatService costModelWxRepeatService;
|
|
|
|
|
|
/**
|
|
|
- * 分页列表查询
|
|
|
+ * 分页列表查询:加入报警状态
|
|
|
*
|
|
|
* @param costModelWxPrice
|
|
|
* @param pageNo
|
|
@@ -53,16 +50,47 @@ public class CostModelWxPriceController extends JeecgController<CostModelWxPrice
|
|
|
//@AutoLog(value = "外协价格库-分页列表查询")
|
|
|
@ApiOperation(value="外协价格库-分页列表查询", notes="外协价格库-分页列表查询")
|
|
|
@GetMapping(value = "/list")
|
|
|
- public Result<IPage<CostModelWxPrice>> queryPageList(CostModelWxPrice costModelWxPrice,
|
|
|
+ public Result<HashMap<String, Object>> queryPageList(CostModelWxPrice costModelWxPrice,
|
|
|
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
|
|
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
|
|
HttpServletRequest req) {
|
|
|
QueryWrapper<CostModelWxPrice> queryWrapper = QueryGenerator.initQueryWrapper(costModelWxPrice, req.getParameterMap());
|
|
|
Page<CostModelWxPrice> page = new Page<CostModelWxPrice>(pageNo, pageSize);
|
|
|
IPage<CostModelWxPrice> pageList = costModelWxPriceService.page(page, queryWrapper);
|
|
|
- return Result.OK(pageList);
|
|
|
+
|
|
|
+ return costModelWxPriceService.queryPageListIsAlarm(pageList);
|
|
|
+
|
|
|
+// HashMap<String, Object> map = new HashMap<>();
|
|
|
+// map.put("isalarm", 1);
|
|
|
+// map.put("content", pageList);
|
|
|
+//
|
|
|
+// return Result.OK(map);
|
|
|
+// return Result.OK(pageList);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 分页列表查询
|
|
|
+ *
|
|
|
+ * @param costModelWxPrice
|
|
|
+ * @param pageNo
|
|
|
+ * @param pageSize
|
|
|
+ * @param req
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ //@AutoLog(value = "外协价格库-分页列表查询")
|
|
|
+// @ApiOperation(value="外协价格库-分页列表查询", notes="外协价格库-分页列表查询")
|
|
|
+// @GetMapping(value = "/list")
|
|
|
+// public Result<IPage<CostModelWxPrice>> queryPageList(CostModelWxPrice costModelWxPrice,
|
|
|
+// @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
|
|
+// @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
|
|
+// HttpServletRequest req) {
|
|
|
+// QueryWrapper<CostModelWxPrice> queryWrapper = QueryGenerator.initQueryWrapper(costModelWxPrice, req.getParameterMap());
|
|
|
+// Page<CostModelWxPrice> page = new Page<CostModelWxPrice>(pageNo, pageSize);
|
|
|
+// IPage<CostModelWxPrice> pageList = costModelWxPriceService.page(page, queryWrapper);
|
|
|
+// return Result.OK(pageList);
|
|
|
+// }
|
|
|
+
|
|
|
/**
|
|
|
* 添加
|
|
|
* 添加重复的数据报错不予录入 思路和导入excel相同 --sl
|