fix: 修复无法正常删除的问题

This commit is contained in:
han0
2024-09-18 18:17:21 +08:00
parent 0a0a31bed2
commit 687ba4df15
5 changed files with 10 additions and 8 deletions

View File

@@ -74,7 +74,7 @@ import java.util.*;
* @date 2021/10/9 14:24
**/
@Configuration
@MapperScan(basePackages = {"mjkf.xinke.**.mapper, mjkf.xinke.**.dao, com.bstek.**.mapper"})
@MapperScan(basePackages = {"mjkf.xinke.**.mapper, mjkf.xinke.**.dao, com.bstek.**.mapper, mjkf.xinke.main.modular.**.mapper"})
public class GlobalConfigure implements WebMvcConfigurer {
private static final String COMMON_REPEAT_SUBMIT_CACHE_KEY = "common-repeatSubmit:";

View File

@@ -156,8 +156,8 @@ public class BudgetController {
// todo-1 公众网站历史数据
// todo-1 地图里程数据
// todo-1 价格权重调整
// todo-1 外省数据上传
// todo-1 外省数据价格对比
// todo-1 趋势表加入调查表数据
// todo-2 价格权重调整
// todo-2 外省数据上传
// todo-2 外省数据价格对比
// todo-2 趋势表加入调查表数据
}

View File

@@ -44,7 +44,7 @@ public class LocalMaterialController {
@ApiOperation("获取地材列表")
@GetMapping("/")
public HttpResponse list (
public HttpResponse<List<LocalMaterialSummary>> list (
@ApiParam(value = "") @RequestParam(value="year") Integer year,
@ApiParam(value = "") @RequestParam(value="month") Integer month,
@ApiParam(value = "地市") @RequestParam(value="city", required=false) String city,

View File

@@ -85,7 +85,9 @@ public class LocationService extends ServiceImpl<BaseMapper<Location>, Location>
@Transactional(rollbackFor = Exception.class)
public void delete(List<LocationIdParam> locationIdParamList) {
// 执行删除
this.removeByIds(CollStreamUtil.toList(locationIdParamList, LocationIdParam::getId));
for (var i : CollStreamUtil.toList(locationIdParamList, LocationIdParam::getId)) {
this.removeById(i);
}
}
public Location detail(LocationIdParam locationIdParam) {