|
|
@@ -45,9 +45,6 @@ public class DictionaryDataService extends BaseService<DictionaryData> {
|
|
|
|
|
|
@Autowired
|
|
|
private DictionaryDataConvert dictionaryDataConvert;
|
|
|
-
|
|
|
- @Autowired
|
|
|
- private MoneyAccountMapper moneyAccountMapper;
|
|
|
/**
|
|
|
* @desc : 重写主键
|
|
|
* @author : 于继渤
|
|
|
@@ -57,8 +54,6 @@ public class DictionaryDataService extends BaseService<DictionaryData> {
|
|
|
public String getPrimaryKey() {
|
|
|
return "data_id";
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
/**
|
|
|
* @desc : 查询
|
|
|
* @author : 于继渤
|
|
|
@@ -69,8 +64,6 @@ public class DictionaryDataService extends BaseService<DictionaryData> {
|
|
|
return super.mergeListWithCount(dictionaryDataQuery, dictionaryDataMapper.selectByCond(dictionaryDataQuery),
|
|
|
dictionaryDataMapper.countByCond(dictionaryDataQuery));
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
public ResponseResultVO<Long> countByCondMoneyAccount(String id) {
|
|
|
Long aLong = dictionaryDataMapper.countByCondMoneyAccount(id);
|
|
|
return ResponseResultUtil.success(aLong);
|
|
|
@@ -98,9 +91,6 @@ public class DictionaryDataService extends BaseService<DictionaryData> {
|
|
|
dictionaryDataMapper.insert(dictionaryData);
|
|
|
return ResponseResultUtil.success();
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
/**
|
|
|
* @desc : 编辑
|
|
|
* @author : 于继渤
|
|
|
@@ -121,10 +111,7 @@ public class DictionaryDataService extends BaseService<DictionaryData> {
|
|
|
//默认 把其他置为非默认
|
|
|
dictionaryDataMapper.updateFlgDefault(new DictionaryDataQuery().setCpId(dictionaryData1.getCpId()).setDictCode(dictionaryData1.getDictCode()));
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
super.updateByUuid(dictionaryData);
|
|
|
-
|
|
|
return ResponseResultUtil.success();
|
|
|
}
|
|
|
|
|
|
@@ -162,7 +149,6 @@ public class DictionaryDataService extends BaseService<DictionaryData> {
|
|
|
return ResponseResultUtil.error(ResponseCodeEnum.OPERATE_FAIL.getCode(), ErrorCodeEnum.SYSTEM_PRESET_DATA_UNABLE_TO_OPERATE.getMessage());
|
|
|
}
|
|
|
super.enable(id);
|
|
|
-
|
|
|
return ResponseResultUtil.success();
|
|
|
}
|
|
|
|