|
|
|
@ -171,6 +171,38 @@ public class LocationLimitInfoController {
@@ -171,6 +171,38 @@ public class LocationLimitInfoController {
|
|
|
|
|
return i>0? AjaxResult.success(LocaleUtil.getMessage(FieldConstant.MESSAGES_SUCCESS)) : AjaxResult.error(LocaleUtil.getMessage(FieldConstant.MESSAGES_ERROR)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// /**
|
|
|
|
|
// *
|
|
|
|
|
// * @param id
|
|
|
|
|
// * @param type
|
|
|
|
|
// * @return
|
|
|
|
|
// */
|
|
|
|
|
// @GetMapping("/enabled/{id}/{type}")
|
|
|
|
|
// public AjaxResult enabled(@PathVariable("id") String id,@PathVariable("type") String type) {
|
|
|
|
|
// LocationLimitInfo locationLimitInfo=null;
|
|
|
|
|
// if (StringUtils.isNotEmpty(id)){
|
|
|
|
|
// QueryWrapper<LocationLimitInfo>wrapper =new QueryWrapper<>();
|
|
|
|
|
// wrapper.eq("id",id);
|
|
|
|
|
// locationLimitInfo= locationLimitInfoService.getBaseMapper().selectOne(wrapper);
|
|
|
|
|
// if (StringUtils.isNull(locationLimitInfo)){
|
|
|
|
|
// return AjaxResult.error(LocaleUtil.getMessage(FieldConstant.LOCATIONINFO_MESSAGES_ERROR));
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// int i = locationLimitInfoService.getBaseMapper().deleteById(id);
|
|
|
|
|
// if (i>0){
|
|
|
|
|
// String hashKey="local:limitCount"+":"+locationLimitInfo.getModelId();
|
|
|
|
|
// if (redisService.hasKey(hashKey)){
|
|
|
|
|
// redisService.deleteObject(hashKey);
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// return i>0? AjaxResult.success(LocaleUtil.getMessage(FieldConstant.MESSAGES_SUCCESS)) : AjaxResult.error(LocaleUtil.getMessage(FieldConstant.MESSAGES_ERROR));
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|