修改请求方式问题
This commit is contained in:
parent
fb6d459076
commit
28f1cf7777
|
|
@ -76,7 +76,7 @@ public class StoreImportController {
|
|||
@SysLog(value = "导入", businessType = BusinessType.IMPORT)
|
||||
@PostMapping("/save")
|
||||
@RequiresPermissions("store:import:save")
|
||||
public AjaxResult importStore(@RequestParam(value = "lists") List<StoreImportDTO> lists)
|
||||
public AjaxResult importStore(@RequestBody List<StoreImportDTO> lists)
|
||||
{
|
||||
return AjaxResult.success(storeImportService.saveList(lists));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,8 +16,4 @@ import java.util.List;
|
|||
* @date: 2024/7/3 9:52
|
||||
*/
|
||||
public interface StoreImportMapper extends BaseMapper<StoreImport> {
|
||||
|
||||
@DataScope(deptAlias = "t")
|
||||
List<TerminalVO> pageList(@Param("query") StoreQuery query,
|
||||
Page<TerminalVO> page);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -100,6 +100,7 @@ public class StoreImportServiceImpl extends ServiceImpl<StoreImportMapper, Store
|
|||
for (StoreImportDTO storeImportDTO : dtoList) {
|
||||
StoreImport copy = BeanCopyUtils.copy(storeImportDTO, StoreImport.class);
|
||||
copy.setDeptId(SecurityUtils.getDeptId());
|
||||
copy.setId(IdUtil.getSnowflake().nextId());
|
||||
try {
|
||||
save(copy);
|
||||
} catch (Exception e) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue