Compare commits
5 Commits
c31bea75e2
...
6887805761
Author | SHA1 | Date |
---|---|---|
|
6887805761 | |
|
133032ea34 | |
|
b1f5348d64 | |
|
daa4a920ab | |
|
2610d1c922 |
|
@ -0,0 +1,20 @@
|
|||
package com.muyu.cloud.market.domin.req;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Tag(name = "修改产品接口请求对象",description = "进行产品接口的修改")
|
||||
public class OrdersUpdReq {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -23,7 +23,7 @@ public interface OrderShowMapper {
|
|||
* @param ordersAddReq
|
||||
* @return
|
||||
*/
|
||||
Integer addOrdeds(Orders orders);
|
||||
Integer addOrdeds(OrdersAddReq ordersAddReq);
|
||||
|
||||
|
||||
/** 订单
|
||||
|
|
|
@ -24,7 +24,7 @@ public interface OrderShowService {
|
|||
* @param ordersAddReq
|
||||
* @return
|
||||
*/
|
||||
Result addOrdeds(Orders orders);
|
||||
Result addOrdeds(OrdersAddReq ordersAddReq);
|
||||
|
||||
/**
|
||||
* 修改订单
|
||||
|
|
|
@ -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,"添加订单失败");
|
||||
}
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
<if test="endDate!=null and endDate!=''"> AND orders_launchdate <=#{endDate} </if>
|
||||
AND exist = 1
|
||||
</where>
|
||||
|
||||
ORDER BY orders_launchdate DESC
|
||||
</select>
|
||||
|
||||
<!--根据ordersId回显数据-->
|
||||
|
|
Loading…
Reference in New Issue