|
@@ -106,9 +106,7 @@ public class CmBigtypeController extends BaseController {
|
|
|
cmBigtype.setTypeSort(null);
|
|
|
}
|
|
|
cmBigtypeService.save(cmBigtype);
|
|
|
- if (1 == cmBigtype.getMallType()) {
|
|
|
- cleanRedisCache();
|
|
|
- }
|
|
|
+ cleanRedisCache();
|
|
|
// if (flag){
|
|
|
// cmBigtypeService.mutiUpdateCode(cmBigtype.getBigTypeID());
|
|
|
// }
|
|
@@ -183,9 +181,7 @@ public class CmBigtypeController extends BaseController {
|
|
|
cmBigtype.setSortIndex(Integer.parseInt(status));
|
|
|
}
|
|
|
cmBigtypeService.update(cmBigtype);
|
|
|
- if (1 == cmBigtype.getMallType()) {
|
|
|
- cleanRedisCache();
|
|
|
- }
|
|
|
+ cleanRedisCache();
|
|
|
map.put("success",true);
|
|
|
map.put("msg", "修改成功");
|
|
|
} catch (Exception e) {
|
|
@@ -206,9 +202,7 @@ public class CmBigtypeController extends BaseController {
|
|
|
public String delete(CmBigtype cmBigtype, RedirectAttributes redirectAttributes) {
|
|
|
cmBigtype.setMallType(null == cmBigtype.getMallType() ? 1 : cmBigtype.getMallType());
|
|
|
cmBigtypeService.delete(cmBigtype);
|
|
|
- if (1 == cmBigtype.getMallType()) {
|
|
|
- cleanRedisCache();
|
|
|
- }
|
|
|
+ cleanRedisCache();
|
|
|
addMessage(redirectAttributes, "删除大分类成功");
|
|
|
return "redirect:" + Global.getAdminPath() + "/product/cmBigtype/?repage&mallType=" + cmBigtype.getMallType();
|
|
|
}
|
|
@@ -234,9 +228,7 @@ public class CmBigtypeController extends BaseController {
|
|
|
public JsonModel updateSortIndex(String bigTypeIdSortIndexs,Integer mallType){
|
|
|
JsonModel jsonModel = JsonModel.newInstance();
|
|
|
cmBigtypeService.updateSortIndex(bigTypeIdSortIndexs);
|
|
|
- if (null == mallType) {
|
|
|
- cleanRedisCache();
|
|
|
- }
|
|
|
+ cleanRedisCache();
|
|
|
return jsonModel.success("批量更新排序成功");
|
|
|
}
|
|
|
/**
|