Compare commits

...

5 Commits

Author SHA1 Message Date
Aaaaaaaa 6887805761 订单基础业务 2024-08-26 15:30:15 +08:00
Aaaaaaaa 133032ea34 Merge remote-tracking branch 'origin/dev2' into dev2
# Conflicts:
#	logs/cloud-market/error.log
#	logs/cloud-market/info.log
2024-08-26 15:25:12 +08:00
Aaaaaaaa b1f5348d64 订单基础业务 2024-08-26 15:06:22 +08:00
Aaaaaaaa daa4a920ab 订单基础业务 2024-08-26 15:06:06 +08:00
Aaaaaaaa 2610d1c922 订单基础业务 2024-08-26 14:46:30 +08:00
6 changed files with 28 additions and 8 deletions

View File

@ -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 {
}

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回显数据-->