报错
This commit is contained in:
@@ -72,10 +72,10 @@ public class ProductController {
|
||||
public CzgResult<Map<String, Object>> getProductPage(ProductDTO param) {
|
||||
Page<ProductDTO> data = productService.getProductPage(param);
|
||||
Map<String, Object> map = JSONObject.parseObject(JSONObject.toJSONString(data), Map.class);
|
||||
if(data.getRecords() != null){
|
||||
if (data.getRecords() != null && !data.getRecords().isEmpty()) {
|
||||
ProductDTO first = data.getRecords().getFirst();
|
||||
map.put("warnLine", first.getWarnLine());
|
||||
}else {
|
||||
} else {
|
||||
map.put("warnLine", 0);
|
||||
}
|
||||
return CzgResult.success(map);
|
||||
|
||||
Reference in New Issue
Block a user