订单基础业务
parent
2d2270ba8f
commit
2610d1c922
|
@ -49,8 +49,8 @@ public class OrdersController {
|
||||||
*/
|
*/
|
||||||
@PostMapping("/addOrdeds")
|
@PostMapping("/addOrdeds")
|
||||||
@Operation(summary = "添加订单", description = "根据ordersAddReq对象添加订单")
|
@Operation(summary = "添加订单", description = "根据ordersAddReq对象添加订单")
|
||||||
Result addOrdeds(@Validated @RequestBody Orders orders){
|
Result addOrdeds(@Validated @RequestBody OrdersAddReq ordersAddReq){
|
||||||
return orderShowService.addOrdeds(orders);
|
return orderShowService.addOrdeds(ordersAddReq);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -23,7 +23,7 @@ public interface OrderShowMapper {
|
||||||
* @param ordersAddReq
|
* @param ordersAddReq
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
Integer addOrdeds(Orders orders);
|
Integer addOrdeds(OrdersAddReq ordersAddReq);
|
||||||
|
|
||||||
|
|
||||||
/** 订单
|
/** 订单
|
||||||
|
|
|
@ -24,7 +24,7 @@ public interface OrderShowService {
|
||||||
* @param ordersAddReq
|
* @param ordersAddReq
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
Result addOrdeds(Orders orders);
|
Result addOrdeds(OrdersAddReq ordersAddReq);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改订单
|
* 修改订单
|
||||||
|
|
|
@ -43,10 +43,10 @@ public class OrderShowServiceImpl implements OrderShowService {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public Result addOrdeds(Orders orders) {
|
public Result addOrdeds(OrdersAddReq ordersAddReq) {
|
||||||
Integer addorders = orderShowMapper.addOrdeds(orders);
|
Integer addorders = orderShowMapper.addOrdeds(ordersAddReq);
|
||||||
if(addorders > 0){
|
if(addorders > 0){
|
||||||
return Result.success(orders,"添加订单成功");
|
return Result.success(ordersAddReq,"添加订单成功");
|
||||||
}
|
}
|
||||||
return Result.error(402,"添加订单失败");
|
return Result.error(402,"添加订单失败");
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
<if test="endDate!=null and endDate!=''"> AND orders_launchdate <=#{endDate} </if>
|
<if test="endDate!=null and endDate!=''"> AND orders_launchdate <=#{endDate} </if>
|
||||||
AND exist = 1
|
AND exist = 1
|
||||||
</where>
|
</where>
|
||||||
|
ORDER BY orders_launchdate DESC
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!--根据ordersId回显数据-->
|
<!--根据ordersId回显数据-->
|
||||||
|
|
Loading…
Reference in New Issue