This commit is contained in:
许允枞 2024-11-20 15:46:13 +08:00
parent d0209a7944
commit a56689848b
3 changed files with 13 additions and 0 deletions

View File

@ -603,6 +603,12 @@ public class PartnerOwnController extends BaseController {
dictDataService.deleteDictData(dictId);
return success();
}
//批量删除客户来源
@PostMapping("/delCustomerSourceBatch")
public CommonResult delCustomerSourceBatch(@RequestBody List<Long> dictIds){
dictDataService.deleteDictDataBatch(dictIds);
return success();
}
@PostMapping("/vehicleLicenseOCR")
public CommonResult vehicleLicenseOCR(String imagePath) throws Exception

View File

@ -123,4 +123,5 @@ public interface DictDataService {
**/
List<DictDataDO> getDictDataListById(List<Long> dataIds);
void deleteDictDataBatch(List<Long> dictIds);
}

View File

@ -202,4 +202,10 @@ public class DictDataServiceImpl implements DictDataService {
return dictDataMapper.selectList(new LambdaQueryWrapperX<DictDataDO>().in(DictDataDO::getId, dataIds));
}
@Override
public void deleteDictDataBatch(List<Long> dictIds) {
// 删除字典数据
dictDataMapper.deleteByIds(dictIds);
}
}