|
|
@@ -352,7 +352,7 @@ public class PublicController extends BaseController {
|
|
|
|
|
|
@RequestMapping(value = "/findIndustryCategory", method = RequestMethod.GET)
|
|
|
@ResponseBody
|
|
|
- public Result findIndustryCategory(String id) {
|
|
|
+ public Result findIndustryCategory(String id, String noCache) {
|
|
|
Integer pid = 0;
|
|
|
if (StringUtils.isNumeric(id)) {
|
|
|
try {
|
|
|
@@ -361,6 +361,9 @@ public class PublicController extends BaseController {
|
|
|
pid = 0;
|
|
|
}
|
|
|
}
|
|
|
+ if (StringUtils.isNotBlank(noCache)) {
|
|
|
+ industryCategoryService.clear(pid);
|
|
|
+ }
|
|
|
return new Result().data(industryCategoryService.list(pid));
|
|
|
}
|
|
|
|
|
|
@@ -381,18 +384,4 @@ public class PublicController extends BaseController {
|
|
|
return new Result().data(districtGlossoryService.list(pid));
|
|
|
}
|
|
|
|
|
|
- @RequestMapping(value = "/clearIndustryCategory", method = RequestMethod.GET)
|
|
|
- @ResponseBody
|
|
|
- public Result clearIndustryCategory(String id) {
|
|
|
- Integer pid = 0;
|
|
|
- if (StringUtils.isNumeric(id)) {
|
|
|
- try {
|
|
|
- pid = Integer.parseInt(id);
|
|
|
- } catch (Exception e) {
|
|
|
- pid = 0;
|
|
|
- }
|
|
|
- }
|
|
|
- industryCategoryService.clear(pid);
|
|
|
- return new Result().data(pid);
|
|
|
- }
|
|
|
}
|