|
@@ -250,8 +250,6 @@ public class UnitDictConstantsServiceImpl extends BaseServiceImpl<UnitDictConsta
|
|
|
BeanUtil.copyProperties(unitDictBrandModelDto, po);
|
|
|
po.setCreateTime(new Date());
|
|
|
|
|
|
- // redis删除
|
|
|
- delBrandRedisKey(unitDictBrandModelDto.getManufacture());
|
|
|
return unitDictBrandModelMapper.insertUseGeneratedKeys(po) > 0;
|
|
|
}
|
|
|
|
|
@@ -265,8 +263,20 @@ public class UnitDictConstantsServiceImpl extends BaseServiceImpl<UnitDictConsta
|
|
|
Example.Criteria criteria = queryExample.createCriteria();
|
|
|
criteria.andEqualTo("id", unitDictBrandModelUpdateDto.getId());
|
|
|
|
|
|
- // redis删除
|
|
|
- delBrandRedisKey(unitDictBrandModelUpdateDto.getManufacture());
|
|
|
+ return unitDictBrandModelMapper.updateByExampleSelective(po, queryExample) > 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public boolean updateUnitDictBrandParameterModel(UnitDictBrandModelParameterUpdateDto unitDictBrandModelParameterUpdateDto) {
|
|
|
+ UnitDictBrandModelPO po = new UnitDictBrandModelPO();
|
|
|
+ po.setRollsNumber(unitDictBrandModelParameterUpdateDto.getRollsNumbe());
|
|
|
+ po.setRollsDiameter(unitDictBrandModelParameterUpdateDto.getRollsDiameter());
|
|
|
+ po.setCircleDiameter(unitDictBrandModelParameterUpdateDto.getCircleDiameter());
|
|
|
+ po.setThetaDeg(unitDictBrandModelParameterUpdateDto.getThetaDeg());
|
|
|
+ Example queryExample = new Example(UnitDictBrandModelPO.class);
|
|
|
+ Example.Criteria criteria = queryExample.createCriteria();
|
|
|
+ criteria.andEqualTo("id", unitDictBrandModelParameterUpdateDto.getId());
|
|
|
+
|
|
|
return unitDictBrandModelMapper.updateByExampleSelective(po, queryExample) > 0;
|
|
|
}
|
|
|
|
|
@@ -306,15 +316,15 @@ public class UnitDictConstantsServiceImpl extends BaseServiceImpl<UnitDictConsta
|
|
|
return dictConstantsMapper.selectCountByExample(queryExample) > 0 ? true : false;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 删除品牌对应型号
|
|
|
- *
|
|
|
- * @param brandKey
|
|
|
- * @return
|
|
|
- */
|
|
|
- private void delBrandRedisKey(String brandKey) {
|
|
|
- String brandlistKey = ManagerRedisKeyConstant.build(ManagerRedisKeyConstant.IDGENERATOR_UDPB_KEY, brandKey);
|
|
|
- cacheService.delete(brandlistKey);
|
|
|
- }
|
|
|
+// /**
|
|
|
+// * 删除品牌对应型号
|
|
|
+// *
|
|
|
+// * @param brandKey
|
|
|
+// * @return
|
|
|
+// */
|
|
|
+// private void delBrandRedisKey(String brandKey) {
|
|
|
+// String brandlistKey = ManagerRedisKeyConstant.build(ManagerRedisKeyConstant.IDGENERATOR_UDPB_KEY, brandKey);
|
|
|
+// cacheService.delete(brandlistKey);
|
|
|
+// }
|
|
|
|
|
|
}
|