订单基础业务

dev2
Aaaaaaaa 2024-08-26 14:46:30 +08:00
parent 2d2270ba8f
commit 2610d1c922
5 changed files with 8 additions and 8 deletions

View File

@ -49,8 +49,8 @@ public class OrdersController {
*/
@PostMapping("/addOrdeds")
@Operation(summary = "添加订单", description = "根据ordersAddReq对象添加订单")
Result addOrdeds(@Validated @RequestBody Orders orders){
return orderShowService.addOrdeds(orders);
Result addOrdeds(@Validated @RequestBody OrdersAddReq ordersAddReq){
return orderShowService.addOrdeds(ordersAddReq);
}
/**

View File

@ -23,7 +23,7 @@ public interface OrderShowMapper {
* @param ordersAddReq
* @return
*/
Integer addOrdeds(Orders orders);
Integer addOrdeds(OrdersAddReq ordersAddReq);
/**

View File

@ -24,7 +24,7 @@ public interface OrderShowService {
* @param ordersAddReq
* @return
*/
Result addOrdeds(Orders orders);
Result addOrdeds(OrdersAddReq ordersAddReq);
/**
*

View File

@ -43,10 +43,10 @@ public class OrderShowServiceImpl implements OrderShowService {
* @return
*/
@Override
public Result addOrdeds(Orders orders) {
Integer addorders = orderShowMapper.addOrdeds(orders);
public Result addOrdeds(OrdersAddReq ordersAddReq) {
Integer addorders = orderShowMapper.addOrdeds(ordersAddReq);
if(addorders > 0){
return Result.success(orders,"添加订单成功");
return Result.success(ordersAddReq,"添加订单成功");
}
return Result.error(402,"添加订单失败");
}

View File

@ -51,7 +51,7 @@
<if test="endDate!=null and endDate!=''"> AND orders_launchdate &lt;=#{endDate} </if>
AND exist = 1
</where>
ORDER BY orders_launchdate DESC
</select>
<!--根据ordersId回显数据-->