|
@@ -44,7 +44,6 @@ public class SalesOrderController {
|
|
* 销售订单-保存
|
|
* 销售订单-保存
|
|
*/
|
|
*/
|
|
@RequestMapping("/save")
|
|
@RequestMapping("/save")
|
|
- @ResponseStatus(HttpStatus.BAD_REQUEST)
|
|
|
|
public ResponseResult<Void> add(SalesOrderDTO salesOrderDTO) {
|
|
public ResponseResult<Void> add(SalesOrderDTO salesOrderDTO) {
|
|
salesOrderCService.save(salesOrderDTO, false);
|
|
salesOrderCService.save(salesOrderDTO, false);
|
|
return ResponseResult.success();
|
|
return ResponseResult.success();
|
|
@@ -54,7 +53,6 @@ public class SalesOrderController {
|
|
* 销售订单-提交
|
|
* 销售订单-提交
|
|
*/
|
|
*/
|
|
@RequestMapping("/submit")
|
|
@RequestMapping("/submit")
|
|
- @ResponseStatus(HttpStatus.BAD_REQUEST)
|
|
|
|
public ResponseResult<Void> submit(@RequestBody @Valid SalesOrderDTO salesOrderDTO) {
|
|
public ResponseResult<Void> submit(@RequestBody @Valid SalesOrderDTO salesOrderDTO) {
|
|
salesOrderCService.submit(salesOrderDTO);
|
|
salesOrderCService.submit(salesOrderDTO);
|
|
return ResponseResult.success();
|
|
return ResponseResult.success();
|
|
@@ -64,7 +62,6 @@ public class SalesOrderController {
|
|
* 销售订单-发货
|
|
* 销售订单-发货
|
|
*/
|
|
*/
|
|
@RequestMapping("/deliver")
|
|
@RequestMapping("/deliver")
|
|
- @ResponseStatus(HttpStatus.BAD_REQUEST)
|
|
|
|
public ResponseResult<Void> deliver(@RequestBody @Valid SalesOrderDeliverDTO orderDeliverDTO) {
|
|
public ResponseResult<Void> deliver(@RequestBody @Valid SalesOrderDeliverDTO orderDeliverDTO) {
|
|
salesOrderCService.deliver(orderDeliverDTO);
|
|
salesOrderCService.deliver(orderDeliverDTO);
|
|
return ResponseResult.success();
|
|
return ResponseResult.success();
|
|
@@ -77,7 +74,6 @@ public class SalesOrderController {
|
|
* @param is4Update 是否为更新
|
|
* @param is4Update 是否为更新
|
|
*/
|
|
*/
|
|
@RequestMapping("/detail")
|
|
@RequestMapping("/detail")
|
|
- @ResponseStatus(HttpStatus.BAD_REQUEST)
|
|
|
|
public ResponseResult<SalesOrderDtlVO> detail(Long id, Boolean is4Update) {
|
|
public ResponseResult<SalesOrderDtlVO> detail(Long id, Boolean is4Update) {
|
|
return ResponseResult.success(salesOrderCService.getDetail(id, is4Update));
|
|
return ResponseResult.success(salesOrderCService.getDetail(id, is4Update));
|
|
}
|
|
}
|
|
@@ -86,7 +82,6 @@ public class SalesOrderController {
|
|
* 销售订单-删除
|
|
* 销售订单-删除
|
|
*/
|
|
*/
|
|
@RequestMapping("/delete")
|
|
@RequestMapping("/delete")
|
|
- @ResponseStatus(HttpStatus.BAD_REQUEST)
|
|
|
|
public ResponseResult<Boolean> delete(Long id) {
|
|
public ResponseResult<Boolean> delete(Long id) {
|
|
return ResponseResult.success(salesOrderCService.delete(id));
|
|
return ResponseResult.success(salesOrderCService.delete(id));
|
|
}
|
|
}
|