|
@@ -91,6 +91,7 @@ public class BrowseAction extends net.mingsoft.tf.action.BaseAction{
|
|
|
@Parameters({
|
|
@Parameters({
|
|
|
@Parameter(name = "browseData", description = "日期", in = ParameterIn.QUERY),
|
|
@Parameter(name = "browseData", description = "日期", in = ParameterIn.QUERY),
|
|
|
@Parameter(name = "browseVisits", description = "访问量", in = ParameterIn.QUERY),
|
|
@Parameter(name = "browseVisits", description = "访问量", in = ParameterIn.QUERY),
|
|
|
|
|
+ @Parameter(name = "browseAdmission", description = "入场量", in = ParameterIn.QUERY),
|
|
|
})
|
|
})
|
|
|
@RequestMapping(value ="/list",method = {RequestMethod.GET,RequestMethod.POST})
|
|
@RequestMapping(value ="/list",method = {RequestMethod.GET,RequestMethod.POST})
|
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@@ -134,6 +135,7 @@ public class BrowseAction extends net.mingsoft.tf.action.BaseAction{
|
|
|
@Parameters({
|
|
@Parameters({
|
|
|
@Parameter(name = "browseData", description = "日期", required = false, in = ParameterIn.QUERY),
|
|
@Parameter(name = "browseData", description = "日期", required = false, in = ParameterIn.QUERY),
|
|
|
@Parameter(name = "browseVisits", description = "访问量", required = false, in = ParameterIn.QUERY),
|
|
@Parameter(name = "browseVisits", description = "访问量", required = false, in = ParameterIn.QUERY),
|
|
|
|
|
+ @Parameter(name = "browseAdmission", description = "入场量", required = false, in = ParameterIn.QUERY),
|
|
|
})
|
|
})
|
|
|
@PostMapping("/save")
|
|
@PostMapping("/save")
|
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@@ -144,6 +146,9 @@ public class BrowseAction extends net.mingsoft.tf.action.BaseAction{
|
|
|
if (!StringUtil.checkLength(browse.getBrowseVisits()+"", 0, 11)) {
|
|
if (!StringUtil.checkLength(browse.getBrowseVisits()+"", 0, 11)) {
|
|
|
return ResultData.build().error(getResString("err.length", this.getResString("browse.visits"), "0", "11"));
|
|
return ResultData.build().error(getResString("err.length", this.getResString("browse.visits"), "0", "11"));
|
|
|
}
|
|
}
|
|
|
|
|
+ if (!StringUtil.checkLength(browse.getBrowseAdmission()+"", 0, 11)) {
|
|
|
|
|
+ return ResultData.build().error(getResString("err.length", this.getResString("browse.admission"), "0", "11"));
|
|
|
|
|
+ }
|
|
|
browseBiz.save(browse);
|
|
browseBiz.save(browse);
|
|
|
return ResultData.build().success(browse);
|
|
return ResultData.build().success(browse);
|
|
|
}
|
|
}
|
|
@@ -173,6 +178,7 @@ public class BrowseAction extends net.mingsoft.tf.action.BaseAction{
|
|
|
@Parameter(name = "id", description = "主键ID", required =true,in = ParameterIn.QUERY),
|
|
@Parameter(name = "id", description = "主键ID", required =true,in = ParameterIn.QUERY),
|
|
|
@Parameter(name = "browseData", description = "日期", required = false, in = ParameterIn.QUERY),
|
|
@Parameter(name = "browseData", description = "日期", required = false, in = ParameterIn.QUERY),
|
|
|
@Parameter(name = "browseVisits", description = "访问量", required = false, in = ParameterIn.QUERY),
|
|
@Parameter(name = "browseVisits", description = "访问量", required = false, in = ParameterIn.QUERY),
|
|
|
|
|
+ @Parameter(name = "browseAdmission", description = "入场量", required = false, in = ParameterIn.QUERY),
|
|
|
})
|
|
})
|
|
|
@PostMapping("/update")
|
|
@PostMapping("/update")
|
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@@ -188,6 +194,9 @@ public class BrowseAction extends net.mingsoft.tf.action.BaseAction{
|
|
|
if (!StringUtil.checkLength(browse.getBrowseVisits()+"", 0, 11)) {
|
|
if (!StringUtil.checkLength(browse.getBrowseVisits()+"", 0, 11)) {
|
|
|
return ResultData.build().error(getResString("err.length", this.getResString("browse.visits"), "0", "11"));
|
|
return ResultData.build().error(getResString("err.length", this.getResString("browse.visits"), "0", "11"));
|
|
|
}
|
|
}
|
|
|
|
|
+ if (!StringUtil.checkLength(browse.getBrowseAdmission()+"", 0, 11)) {
|
|
|
|
|
+ return ResultData.build().error(getResString("err.length", this.getResString("browse.admission"), "0", "11"));
|
|
|
|
|
+ }
|
|
|
browseBiz.updateById(browse);
|
|
browseBiz.updateById(browse);
|
|
|
return ResultData.build().success(browse);
|
|
return ResultData.build().success(browse);
|
|
|
}
|
|
}
|