This commit is contained in:
linfso 2024-11-28 11:10:31 +08:00
parent 8eca1f0f33
commit ac022a19c8

View File

@ -169,7 +169,7 @@ public class Oms2cGoodsController extends BaseController
/** /**
* 导出货物信息列表 * 导出货物信息列表
*/ */
@PreAuthorize("@ss.hasPermi('emis:emisGoods:export')") // @PreAuthorize("@ss.hasPermi('emis:emisGoods:export')")
@Log(title = "货物信息", businessType = BusinessType.EXPORT) @Log(title = "货物信息", businessType = BusinessType.EXPORT)
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, EmisGoods emisGoods) public void export(HttpServletResponse response, EmisGoods emisGoods)
@ -182,7 +182,7 @@ public class Oms2cGoodsController extends BaseController
/** /**
* 获取货物信息详细信息 * 获取货物信息详细信息
*/ */
@PreAuthorize("@ss.hasPermi('emis:emisGoods:query')") // @PreAuthorize("@ss.hasPermi('emis:emisGoods:query')")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) public AjaxResult getInfo(@PathVariable("id") Long id)
{ {
@ -192,18 +192,18 @@ public class Oms2cGoodsController extends BaseController
/** /**
* 新增货物信息 * 新增货物信息
*/ */
@PreAuthorize("@ss.hasPermi('emis:emisGoods:add')")
@Log(title = "货物信息", businessType = BusinessType.INSERT) @Log(title = "货物信息", businessType = BusinessType.INSERT)
@PostMapping @PostMapping
public AjaxResult add(@RequestBody EmisGoods emisGoods) public AjaxResult add(@RequestBody EmisGoods emisGoods)
{ {
emisGoods.setOwnerCode(getLoginUser().getUser().getCustomerCode());
return toAjax(emisGoodsService.insertEmisGoods(emisGoods)); return toAjax(emisGoodsService.insertEmisGoods(emisGoods));
} }
/** /**
* 修改货物信息 * 修改货物信息
*/ */
@PreAuthorize("@ss.hasPermi('emis:emisGoods:edit')") // @PreAuthorize("@ss.hasPermi('emis:emisGoods:edit')")
@Log(title = "货物信息", businessType = BusinessType.UPDATE) @Log(title = "货物信息", businessType = BusinessType.UPDATE)
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody EmisGoods emisGoods) public AjaxResult edit(@RequestBody EmisGoods emisGoods)
@ -214,7 +214,7 @@ public class Oms2cGoodsController extends BaseController
/** /**
* 删除货物信息 * 删除货物信息
*/ */
@PreAuthorize("@ss.hasPermi('emis:emisGoods:remove')") // @PreAuthorize("@ss.hasPermi('emis:emisGoods:remove')")
@Log(title = "货物信息", businessType = BusinessType.DELETE) @Log(title = "货物信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) public AjaxResult remove(@PathVariable Long[] ids)