提示信息调整
This commit is contained in:
@@ -26,7 +26,7 @@ public class zhxsqkLineReportEnhance implements ReportBeforeAdvicePlugin {
|
|||||||
Map<String, Object> params = enhanceContext.getParam().getParams();
|
Map<String, Object> params = enhanceContext.getParam().getParams();
|
||||||
if (params.containsKey("Group by")) {
|
if (params.containsKey("Group by")) {
|
||||||
if(params.containsKey("goodsname")){
|
if(params.containsKey("goodsname")){
|
||||||
throw new lideeYunJiException("在选择维度时,“货品名称”不能有值!");
|
throw new lideeYunJiException("在选择维度时,“产品名称”不能有值!");
|
||||||
}
|
}
|
||||||
List<String> groupFieldList = Arrays.asList(params.get("Group by").toString().split(","));
|
List<String> groupFieldList = Arrays.asList(params.get("Group by").toString().split(","));
|
||||||
String sql;
|
String sql;
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ public class zhxsqkPlugin implements ReportAroundAdvicePlugin {
|
|||||||
throw new lideeYunJiException("年月范围 不能为空!");
|
throw new lideeYunJiException("年月范围 不能为空!");
|
||||||
}
|
}
|
||||||
if (params.containsKey("goodsName")) {
|
if (params.containsKey("goodsName")) {
|
||||||
throw new lideeYunJiException("在选择维度时,“货品名称”不能有值!");
|
throw new lideeYunJiException("在选择维度时,“产品名称”不能有值!");
|
||||||
}
|
}
|
||||||
Page<Object> page = PageHelper.startPage(Integer.parseInt(params.get("pageNo").toString()), Integer.parseInt(params.get("pageSize").toString()));
|
Page<Object> page = PageHelper.startPage(Integer.parseInt(params.get("pageNo").toString()), Integer.parseInt(params.get("pageSize").toString()));
|
||||||
if(!groupFieldList.contains("useMonth") && !groupFieldList.contains("useYear")){
|
if(!groupFieldList.contains("useMonth") && !groupFieldList.contains("useYear")){
|
||||||
|
|||||||
Reference in New Issue
Block a user