|
@@ -117,6 +117,7 @@ public class UnitDictConstantsServiceImpl extends BaseServiceImpl<UnitDictConsta
|
|
|
PageHelper.startPage(unitDictConstantsPageDto.getPageNum(), unitDictConstantsPageDto.getPageSize());
|
|
|
Example queryExample = new Example(UnitDictConstantsPO.class);
|
|
|
Example.Criteria criteria = queryExample.createCriteria();
|
|
|
+ queryExample.setOrderByClause("unit_module asc");
|
|
|
if (!StringUtils.isEmpty(unitDictConstantsPageDto.getContentsName())) {
|
|
|
criteria.andLike("contentsName", "%" + unitDictConstantsPageDto.getContentsName() + "%");
|
|
|
}
|
|
@@ -295,12 +296,23 @@ public class UnitDictConstantsServiceImpl extends BaseServiceImpl<UnitDictConsta
|
|
|
return count > 0 ? true : false;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public boolean verifyUnitDictModel(UnitDictConstantsDto unitDictConstantsDto) {
|
|
|
+ Example queryExample = new Example(UnitDictConstantsPO.class);
|
|
|
+ Example.Criteria criteria = queryExample.createCriteria();
|
|
|
+ criteria.andEqualTo("unitModule", unitDictConstantsDto.getUnitModule());
|
|
|
+ criteria.andEqualTo("contentsDictKey", unitDictConstantsDto.getContentsDictKey());
|
|
|
+ criteria.andEqualTo("associatedFunctionType", unitDictConstantsDto.getAssociatedFunctionType());
|
|
|
+ return dictConstantsMapper.selectCountByExample(queryExample) > 0 ? true : false;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 删除品牌对应型号
|
|
|
+ *
|
|
|
* @param brandKey
|
|
|
* @return
|
|
|
*/
|
|
|
- private void delBrandRedisKey(String brandKey){
|
|
|
+ private void delBrandRedisKey(String brandKey) {
|
|
|
String brandlistKey = ManagerRedisKeyConstant.build(ManagerRedisKeyConstant.IDGENERATOR_UDPB_KEY, brandKey);
|
|
|
cacheService.delete(brandlistKey);
|
|
|
}
|