fix: 修复无法正常删除的问题
This commit is contained in:
@@ -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:";
|
||||
|
@@ -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 趋势表加入调查表数据
|
||||
}
|
||||
|
@@ -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,
|
||||
|
@@ -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) {
|
||||
|
Reference in New Issue
Block a user