|
|
@ -21,11 +21,7 @@ import org.apache.shiro.authz.annotation.RequiresPermissions; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Controller; |
|
|
|
import org.springframework.ui.ModelMap; |
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
import org.springframework.web.bind.annotation.PathVariable; |
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.ResponseBody; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
import com.ruoyi.common.annotation.Log; |
|
|
|
import com.ruoyi.common.enums.BusinessType; |
|
|
|
import com.ruoyi.system.service.IBaseRequisitioningOrderService; |
|
|
@ -121,9 +117,10 @@ public class BaseRequisitioningOrderController extends BaseController |
|
|
|
@Log(title = "请购单", businessType = BusinessType.INSERT) |
|
|
|
@PostMapping("/add") |
|
|
|
@ResponseBody |
|
|
|
public AjaxResult addSave(BaseRequisitioningOrder baseRequisitioningOrder) |
|
|
|
public AjaxResult addSave(@RequestBody BaseRequisitioningOrder baseRequisitioningOrder) |
|
|
|
{ |
|
|
|
return toAjax(baseRequisitioningOrderService.insertBaseRequisitioningOrder(baseRequisitioningOrder)); |
|
|
|
baseRequisitioningOrderService.insertBaseRequisitioningOrder(baseRequisitioningOrder); |
|
|
|
return AjaxResult.success(); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
@ -144,7 +141,7 @@ public class BaseRequisitioningOrderController extends BaseController |
|
|
|
@Log(title = "请购单", businessType = BusinessType.UPDATE) |
|
|
|
@PostMapping("/edit") |
|
|
|
@ResponseBody |
|
|
|
public AjaxResult editSave(BaseRequisitioningOrder baseRequisitioningOrder) |
|
|
|
public AjaxResult editSave(@RequestBody BaseRequisitioningOrder baseRequisitioningOrder) |
|
|
|
{ |
|
|
|
return toAjax(baseRequisitioningOrderService.updateBaseRequisitioningOrder(baseRequisitioningOrder)); |
|
|
|
} |
|
|
|