|
@@ -39,7 +39,7 @@ public class IndicatorServiceImpl extends ServiceImpl<IndicatorMapper, Indicator
|
|
|
}
|
|
|
|
|
|
if (StringUtils.isNotEmpty(indicatorCede)) {
|
|
|
- qw.lambda().like(Indicator::getIndicatorCede, indicatorCede);
|
|
|
+ qw.lambda().like(Indicator::getIndicatorCode, indicatorCede);
|
|
|
}
|
|
|
|
|
|
if (StringUtils.isNotEmpty(binSection)) {
|
|
@@ -71,7 +71,9 @@ public class IndicatorServiceImpl extends ServiceImpl<IndicatorMapper, Indicator
|
|
|
|
|
|
if (null != entity && (null == entity.getId() || "".equals(entity.getId().trim()))){
|
|
|
QueryWrapper<Indicator> qw = new QueryWrapper<>();
|
|
|
- qw.lambda().eq(Indicator::getIndicatorCede, entity.getIndicatorCede());
|
|
|
+ qw.lambda().eq(Indicator::getIndicatorCode, entity.getIndicatorCode());
|
|
|
+ qw.lambda().eq(Indicator::getBinSection, entity.getBinSection());
|
|
|
+ qw.lambda().eq(Indicator::getBinStage, entity.getBinStage());
|
|
|
List<Indicator> list = baseMapper.selectList(qw);
|
|
|
if (null !=list && list.size()>0){
|
|
|
throw new RuntimeException("当前指标code已存在");
|