编号:ZSSAC-163 描述:修改路径
This commit is contained in:
parent
cfee6f1704
commit
bf5b5ad0e4
@ -60,12 +60,6 @@
|
||||
<groupId>com.smarterFramework</groupId>
|
||||
<artifactId>sf-file</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.smarterFramework</groupId>
|
||||
<artifactId>sf-order</artifactId>
|
||||
<version>1.0.0</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
|
@ -0,0 +1,109 @@
|
||||
package com.sf.order.controller;
|
||||
|
||||
import com.sf.common.annotation.Log;
|
||||
import com.sf.common.core.controller.BaseController;
|
||||
import com.sf.common.core.domain.AjaxResult;
|
||||
import com.sf.common.core.page.TableDataInfo;
|
||||
import com.sf.common.enums.BusinessType;
|
||||
import com.sf.common.utils.poi.ExcelUtil;
|
||||
import com.sf.order.domain.OrderInfo;
|
||||
import com.sf.order.domain.dto.OrderCreateDto;
|
||||
import com.sf.order.domain.req.OrderListreqVo;
|
||||
import com.sf.order.domain.res.OrderListResVo;
|
||||
import com.sf.order.service.IOrderInfoService;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 订单基础信息Controller
|
||||
*
|
||||
* @author ztzh
|
||||
* @date 2024-04-09
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/order")
|
||||
public class OrderInfoController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private IOrderInfoService orderInfoService;
|
||||
|
||||
/**
|
||||
* 查询订单基础信息列表
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(OrderInfo orderInfo) {
|
||||
startPage();
|
||||
List<OrderInfo> list = orderInfoService.selectOrderInfoList(orderInfo);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询订单基础信息列表
|
||||
*/
|
||||
@GetMapping("/query/list")
|
||||
public TableDataInfo queryList(OrderListreqVo vo) {
|
||||
startPage();
|
||||
List<OrderListResVo> list = orderInfoService.queryList(vo);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出订单基础信息列表
|
||||
*/
|
||||
@Log(title = "订单基础信息", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, OrderInfo orderInfo) {
|
||||
List<OrderInfo> list = orderInfoService.selectOrderInfoList(orderInfo);
|
||||
ExcelUtil<OrderInfo> util = new ExcelUtil<OrderInfo>(OrderInfo.class);
|
||||
util.exportExcel(response, list, "订单基础信息数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取订单基础信息详细信息
|
||||
*/
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return success(orderInfoService.selectOrderInfoById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增订单基础信息
|
||||
*/
|
||||
@Log(title = "创建订单基础信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping(value = "/createOrder")
|
||||
public AjaxResult createOrder(@RequestBody OrderCreateDto orderCreateDto) {
|
||||
return toAjax(orderInfoService.createOrder(orderCreateDto));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改订单基础信息
|
||||
*/
|
||||
@Log(title = "订单基础信息", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody OrderInfo orderInfo) {
|
||||
return toAjax(orderInfoService.updateOrderInfo(orderInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 支付订单
|
||||
*/
|
||||
@Operation(summary = "支付订单")
|
||||
@PostMapping(value = "/pay/{orderId}")
|
||||
private String orderPay(@PathVariable(value = "orderId") Long orderId) {
|
||||
orderInfoService.orderPay(orderId);
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除订单基础信息
|
||||
*/
|
||||
@Log(title = "订单基础信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(orderInfoService.deleteOrderInfoByIds(ids));
|
||||
}
|
||||
}
|
@ -1,6 +1,5 @@
|
||||
package com.sf.order.domain.req;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
@ -3,8 +3,6 @@ package com.sf.order.domain.res;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 活动信息详情
|
||||
*
|
@ -1,7 +1,5 @@
|
||||
package com.sf.order.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.sf.common.exception.ServiceException;
|
||||
import com.sf.common.utils.DateUtils;
|
||||
import com.sf.common.utils.SnowflakeIdWorker;
|
||||
@ -14,6 +12,7 @@ import com.sf.order.service.IOrderInfoService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 订单基础信息Service业务层处理
|
@ -1,172 +1,172 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.sf.order.mapper.OrderInfoMapper">
|
||||
|
||||
<resultMap type="OrderInfo" id="OrderInfoResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="orderNo" column="order_no" />
|
||||
<result property="orderStatus" column="order_status" />
|
||||
<result property="payType" column="pay_type" />
|
||||
<result property="payChannel" column="pay_channel" />
|
||||
<result property="orderAmt" column="order_amt" />
|
||||
<result property="freightAmt" column="freight_amt" />
|
||||
<result property="payAmt" column="pay_amt" />
|
||||
<result property="reallyAmt" column="really_amt" />
|
||||
<result property="receiveType" column="receive_type" />
|
||||
<result property="goodsId" column="goods_id" />
|
||||
<result property="businessId" column="business_id" />
|
||||
<result property="receiveAddrId" column="receive_addr_id" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="payTime" column="pay_time" />
|
||||
<result property="createUserId" column="create_user_id" />
|
||||
<result property="updateUserId" column="update_user_id" />
|
||||
<result property="isDelete" column="is_delete" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="trackNo" column="track_no" />
|
||||
<result property="orderType" column="order_type" />
|
||||
<result property="outOrderNo" column="out_order_no" />
|
||||
<result property="payData" column="pay_data" />
|
||||
<result property="reductionAmout" column="reduction_amout" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectOrderInfoVo">
|
||||
select id, order_no, order_status, pay_type, pay_channel, order_amt, freight_amt, pay_amt, really_amt, receive_type, goods_id, business_id, receive_addr_id, create_time, pay_time, create_user_id, update_user_id, is_delete, update_time, track_no, order_type, out_order_no, pay_data, reduction_amout from ORDER_INFO
|
||||
</sql>
|
||||
<sql id="OrderListResVo">
|
||||
select id, order_no, order_status, pay_type, productTitle, order_amt, freight_amt, pay_amt, really_amt, receive_type, goods_id, business_id, receive_addr_id, create_time, pay_time, create_user_id, update_user_id, is_delete, update_time, track_no, order_type, out_order_no, pay_data, reduction_amout from ORDER_INFO
|
||||
</sql>
|
||||
|
||||
<select id="selectOrderInfoList" parameterType="OrderInfo" resultMap="OrderInfoResult">
|
||||
<include refid="selectOrderInfoVo"/>
|
||||
<where>
|
||||
<if test="orderNo != null "> and order_no = #{orderNo}</if>
|
||||
<if test="orderStatus != null "> and order_status = #{orderStatus}</if>
|
||||
<if test="payType != null "> and pay_type = #{payType}</if>
|
||||
<if test="payChannel != null "> and pay_channel = #{payChannel}</if>
|
||||
<if test="orderAmt != null "> and order_amt = #{orderAmt}</if>
|
||||
<if test="freightAmt != null "> and freight_amt = #{freightAmt}</if>
|
||||
<if test="payAmt != null "> and pay_amt = #{payAmt}</if>
|
||||
<if test="reallyAmt != null "> and really_amt = #{reallyAmt}</if>
|
||||
<if test="receiveType != null "> and receive_type = #{receiveType}</if>
|
||||
<if test="goodsId != null "> and goods_id = #{goodsId}</if>
|
||||
<if test="businessId != null "> and business_id = #{businessId}</if>
|
||||
<if test="receiveAddrId != null "> and receive_addr_id = #{receiveAddrId}</if>
|
||||
<if test="payTime != null "> and pay_time = #{payTime}</if>
|
||||
<if test="createUserId != null "> and create_user_id = #{createUserId}</if>
|
||||
<if test="updateUserId != null "> and update_user_id = #{updateUserId}</if>
|
||||
<if test="isDelete != null "> and is_delete = #{isDelete}</if>
|
||||
<if test="trackNo != null and trackNo != ''"> and track_no = #{trackNo}</if>
|
||||
<if test="orderType != null "> and order_type = #{orderType}</if>
|
||||
<if test="outOrderNo != null "> and out_order_no = #{outOrderNo}</if>
|
||||
<if test="payData != null and payData != ''"> and pay_data = #{payData}</if>
|
||||
<if test="reductionAmout != null "> and reduction_amout = #{reductionAmout}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectOrderInfoById" parameterType="Long" resultMap="OrderInfoResult">
|
||||
<include refid="selectOrderInfoVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
<select id="queryList" resultType="com.sf.order.domain.res.OrderListResVo">
|
||||
|
||||
</select>
|
||||
|
||||
<insert id="insertOrderInfo" parameterType="OrderInfo">
|
||||
insert into ORDER_INFO
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="orderNo != null">order_no,</if>
|
||||
<if test="orderStatus != null">order_status,</if>
|
||||
<if test="payType != null">pay_type,</if>
|
||||
<if test="payChannel != null">pay_channel,</if>
|
||||
<if test="orderAmt != null">order_amt,</if>
|
||||
<if test="freightAmt != null">freight_amt,</if>
|
||||
<if test="payAmt != null">pay_amt,</if>
|
||||
<if test="reallyAmt != null">really_amt,</if>
|
||||
<if test="receiveType != null">receive_type,</if>
|
||||
<if test="goodsId != null">goods_id,</if>
|
||||
<if test="businessId != null">business_id,</if>
|
||||
<if test="receiveAddrId != null">receive_addr_id,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="payTime != null">pay_time,</if>
|
||||
<if test="createUserId != null">create_user_id,</if>
|
||||
<if test="updateUserId != null">update_user_id,</if>
|
||||
<if test="isDelete != null">is_delete,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="trackNo != null">track_no,</if>
|
||||
<if test="orderType != null">order_type,</if>
|
||||
<if test="outOrderNo != null">out_order_no,</if>
|
||||
<if test="payData != null">pay_data,</if>
|
||||
<if test="reductionAmout != null">reduction_amout,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="orderNo != null">#{orderNo},</if>
|
||||
<if test="orderStatus != null">#{orderStatus},</if>
|
||||
<if test="payType != null">#{payType},</if>
|
||||
<if test="payChannel != null">#{payChannel},</if>
|
||||
<if test="orderAmt != null">#{orderAmt},</if>
|
||||
<if test="freightAmt != null">#{freightAmt},</if>
|
||||
<if test="payAmt != null">#{payAmt},</if>
|
||||
<if test="reallyAmt != null">#{reallyAmt},</if>
|
||||
<if test="receiveType != null">#{receiveType},</if>
|
||||
<if test="goodsId != null">#{goodsId},</if>
|
||||
<if test="businessId != null">#{businessId},</if>
|
||||
<if test="receiveAddrId != null">#{receiveAddrId},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="payTime != null">#{payTime},</if>
|
||||
<if test="createUserId != null">#{createUserId},</if>
|
||||
<if test="updateUserId != null">#{updateUserId},</if>
|
||||
<if test="isDelete != null">#{isDelete},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="trackNo != null">#{trackNo},</if>
|
||||
<if test="orderType != null">#{orderType},</if>
|
||||
<if test="outOrderNo != null">#{outOrderNo},</if>
|
||||
<if test="payData != null">#{payData},</if>
|
||||
<if test="reductionAmout != null">#{reductionAmout},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateOrderInfo" parameterType="OrderInfo">
|
||||
update ORDER_INFO
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="orderNo != null">order_no = #{orderNo},</if>
|
||||
<if test="orderStatus != null">order_status = #{orderStatus},</if>
|
||||
<if test="payType != null">pay_type = #{payType},</if>
|
||||
<if test="payChannel != null">pay_channel = #{payChannel},</if>
|
||||
<if test="orderAmt != null">order_amt = #{orderAmt},</if>
|
||||
<if test="freightAmt != null">freight_amt = #{freightAmt},</if>
|
||||
<if test="payAmt != null">pay_amt = #{payAmt},</if>
|
||||
<if test="reallyAmt != null">really_amt = #{reallyAmt},</if>
|
||||
<if test="receiveType != null">receive_type = #{receiveType},</if>
|
||||
<if test="goodsId != null">goods_id = #{goodsId},</if>
|
||||
<if test="businessId != null">business_id = #{businessId},</if>
|
||||
<if test="receiveAddrId != null">receive_addr_id = #{receiveAddrId},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="payTime != null">pay_time = #{payTime},</if>
|
||||
<if test="createUserId != null">create_user_id = #{createUserId},</if>
|
||||
<if test="updateUserId != null">update_user_id = #{updateUserId},</if>
|
||||
<if test="isDelete != null">is_delete = #{isDelete},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="trackNo != null">track_no = #{trackNo},</if>
|
||||
<if test="orderType != null">order_type = #{orderType},</if>
|
||||
<if test="outOrderNo != null">out_order_no = #{outOrderNo},</if>
|
||||
<if test="payData != null">pay_data = #{payData},</if>
|
||||
<if test="reductionAmout != null">reduction_amout = #{reductionAmout},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteOrderInfoById" parameterType="Long">
|
||||
delete from ORDER_INFO where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteOrderInfoByIds" parameterType="String">
|
||||
delete from ORDER_INFO where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.sf.order.mapper.OrderInfoMapper">
|
||||
|
||||
<resultMap type="OrderInfo" id="OrderInfoResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="orderNo" column="order_no" />
|
||||
<result property="orderStatus" column="order_status" />
|
||||
<result property="payType" column="pay_type" />
|
||||
<result property="payChannel" column="pay_channel" />
|
||||
<result property="orderAmt" column="order_amt" />
|
||||
<result property="freightAmt" column="freight_amt" />
|
||||
<result property="payAmt" column="pay_amt" />
|
||||
<result property="reallyAmt" column="really_amt" />
|
||||
<result property="receiveType" column="receive_type" />
|
||||
<result property="goodsId" column="goods_id" />
|
||||
<result property="businessId" column="business_id" />
|
||||
<result property="receiveAddrId" column="receive_addr_id" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="payTime" column="pay_time" />
|
||||
<result property="createUserId" column="create_user_id" />
|
||||
<result property="updateUserId" column="update_user_id" />
|
||||
<result property="isDelete" column="is_delete" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="trackNo" column="track_no" />
|
||||
<result property="orderType" column="order_type" />
|
||||
<result property="outOrderNo" column="out_order_no" />
|
||||
<result property="payData" column="pay_data" />
|
||||
<result property="reductionAmout" column="reduction_amout" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectOrderInfoVo">
|
||||
select id, order_no, order_status, pay_type, pay_channel, order_amt, freight_amt, pay_amt, really_amt, receive_type, goods_id, business_id, receive_addr_id, create_time, pay_time, create_user_id, update_user_id, is_delete, update_time, track_no, order_type, out_order_no, pay_data, reduction_amout from ORDER_INFO
|
||||
</sql>
|
||||
<sql id="OrderListResVo">
|
||||
select id, order_no, order_status, pay_type, productTitle, order_amt, freight_amt, pay_amt, really_amt, receive_type, goods_id, business_id, receive_addr_id, create_time, pay_time, create_user_id, update_user_id, is_delete, update_time, track_no, order_type, out_order_no, pay_data, reduction_amout from ORDER_INFO
|
||||
</sql>
|
||||
|
||||
<select id="selectOrderInfoList" parameterType="OrderInfo" resultMap="OrderInfoResult">
|
||||
<include refid="selectOrderInfoVo"/>
|
||||
<where>
|
||||
<if test="orderNo != null "> and order_no = #{orderNo}</if>
|
||||
<if test="orderStatus != null "> and order_status = #{orderStatus}</if>
|
||||
<if test="payType != null "> and pay_type = #{payType}</if>
|
||||
<if test="payChannel != null "> and pay_channel = #{payChannel}</if>
|
||||
<if test="orderAmt != null "> and order_amt = #{orderAmt}</if>
|
||||
<if test="freightAmt != null "> and freight_amt = #{freightAmt}</if>
|
||||
<if test="payAmt != null "> and pay_amt = #{payAmt}</if>
|
||||
<if test="reallyAmt != null "> and really_amt = #{reallyAmt}</if>
|
||||
<if test="receiveType != null "> and receive_type = #{receiveType}</if>
|
||||
<if test="goodsId != null "> and goods_id = #{goodsId}</if>
|
||||
<if test="businessId != null "> and business_id = #{businessId}</if>
|
||||
<if test="receiveAddrId != null "> and receive_addr_id = #{receiveAddrId}</if>
|
||||
<if test="payTime != null "> and pay_time = #{payTime}</if>
|
||||
<if test="createUserId != null "> and create_user_id = #{createUserId}</if>
|
||||
<if test="updateUserId != null "> and update_user_id = #{updateUserId}</if>
|
||||
<if test="isDelete != null "> and is_delete = #{isDelete}</if>
|
||||
<if test="trackNo != null and trackNo != ''"> and track_no = #{trackNo}</if>
|
||||
<if test="orderType != null "> and order_type = #{orderType}</if>
|
||||
<if test="outOrderNo != null "> and out_order_no = #{outOrderNo}</if>
|
||||
<if test="payData != null and payData != ''"> and pay_data = #{payData}</if>
|
||||
<if test="reductionAmout != null "> and reduction_amout = #{reductionAmout}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectOrderInfoById" parameterType="Long" resultMap="OrderInfoResult">
|
||||
<include refid="selectOrderInfoVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
<select id="queryList" resultType="com.sf.order.domain.res.OrderListResVo">
|
||||
|
||||
</select>
|
||||
|
||||
<insert id="insertOrderInfo" parameterType="OrderInfo">
|
||||
insert into ORDER_INFO
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="orderNo != null">order_no,</if>
|
||||
<if test="orderStatus != null">order_status,</if>
|
||||
<if test="payType != null">pay_type,</if>
|
||||
<if test="payChannel != null">pay_channel,</if>
|
||||
<if test="orderAmt != null">order_amt,</if>
|
||||
<if test="freightAmt != null">freight_amt,</if>
|
||||
<if test="payAmt != null">pay_amt,</if>
|
||||
<if test="reallyAmt != null">really_amt,</if>
|
||||
<if test="receiveType != null">receive_type,</if>
|
||||
<if test="goodsId != null">goods_id,</if>
|
||||
<if test="businessId != null">business_id,</if>
|
||||
<if test="receiveAddrId != null">receive_addr_id,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="payTime != null">pay_time,</if>
|
||||
<if test="createUserId != null">create_user_id,</if>
|
||||
<if test="updateUserId != null">update_user_id,</if>
|
||||
<if test="isDelete != null">is_delete,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="trackNo != null">track_no,</if>
|
||||
<if test="orderType != null">order_type,</if>
|
||||
<if test="outOrderNo != null">out_order_no,</if>
|
||||
<if test="payData != null">pay_data,</if>
|
||||
<if test="reductionAmout != null">reduction_amout,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="orderNo != null">#{orderNo},</if>
|
||||
<if test="orderStatus != null">#{orderStatus},</if>
|
||||
<if test="payType != null">#{payType},</if>
|
||||
<if test="payChannel != null">#{payChannel},</if>
|
||||
<if test="orderAmt != null">#{orderAmt},</if>
|
||||
<if test="freightAmt != null">#{freightAmt},</if>
|
||||
<if test="payAmt != null">#{payAmt},</if>
|
||||
<if test="reallyAmt != null">#{reallyAmt},</if>
|
||||
<if test="receiveType != null">#{receiveType},</if>
|
||||
<if test="goodsId != null">#{goodsId},</if>
|
||||
<if test="businessId != null">#{businessId},</if>
|
||||
<if test="receiveAddrId != null">#{receiveAddrId},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="payTime != null">#{payTime},</if>
|
||||
<if test="createUserId != null">#{createUserId},</if>
|
||||
<if test="updateUserId != null">#{updateUserId},</if>
|
||||
<if test="isDelete != null">#{isDelete},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="trackNo != null">#{trackNo},</if>
|
||||
<if test="orderType != null">#{orderType},</if>
|
||||
<if test="outOrderNo != null">#{outOrderNo},</if>
|
||||
<if test="payData != null">#{payData},</if>
|
||||
<if test="reductionAmout != null">#{reductionAmout},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateOrderInfo" parameterType="OrderInfo">
|
||||
update ORDER_INFO
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="orderNo != null">order_no = #{orderNo},</if>
|
||||
<if test="orderStatus != null">order_status = #{orderStatus},</if>
|
||||
<if test="payType != null">pay_type = #{payType},</if>
|
||||
<if test="payChannel != null">pay_channel = #{payChannel},</if>
|
||||
<if test="orderAmt != null">order_amt = #{orderAmt},</if>
|
||||
<if test="freightAmt != null">freight_amt = #{freightAmt},</if>
|
||||
<if test="payAmt != null">pay_amt = #{payAmt},</if>
|
||||
<if test="reallyAmt != null">really_amt = #{reallyAmt},</if>
|
||||
<if test="receiveType != null">receive_type = #{receiveType},</if>
|
||||
<if test="goodsId != null">goods_id = #{goodsId},</if>
|
||||
<if test="businessId != null">business_id = #{businessId},</if>
|
||||
<if test="receiveAddrId != null">receive_addr_id = #{receiveAddrId},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="payTime != null">pay_time = #{payTime},</if>
|
||||
<if test="createUserId != null">create_user_id = #{createUserId},</if>
|
||||
<if test="updateUserId != null">update_user_id = #{updateUserId},</if>
|
||||
<if test="isDelete != null">is_delete = #{isDelete},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="trackNo != null">track_no = #{trackNo},</if>
|
||||
<if test="orderType != null">order_type = #{orderType},</if>
|
||||
<if test="outOrderNo != null">out_order_no = #{outOrderNo},</if>
|
||||
<if test="payData != null">pay_data = #{payData},</if>
|
||||
<if test="reductionAmout != null">reduction_amout = #{reductionAmout},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteOrderInfoById" parameterType="Long">
|
||||
delete from ORDER_INFO where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteOrderInfoByIds" parameterType="String">
|
||||
delete from ORDER_INFO where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -1,34 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>smarterFramework</artifactId>
|
||||
<groupId>com.smarterFramework</groupId>
|
||||
<version>1.0.0</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>sf-order</artifactId>
|
||||
|
||||
<description>
|
||||
order订单模块
|
||||
</description>
|
||||
|
||||
<dependencies>
|
||||
|
||||
<!-- 通用工具-->
|
||||
<dependency>
|
||||
<groupId>com.smarterFramework</groupId>
|
||||
<artifactId>sf-common</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.swagger.core.v3</groupId>
|
||||
<artifactId>swagger-annotations</artifactId>
|
||||
<version>2.1.2</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
</project>
|
Loading…
x
Reference in New Issue
Block a user