提交 0292a762 作者: han

Merge branch 'develop' of ssh://git.mmcuav.cn:8222/iuav/ims into develop

流水线 #7470 已通过 于阶段
in 2 分 39 秒
...@@ -18,4 +18,4 @@ patches: ...@@ -18,4 +18,4 @@ patches:
images: images:
- name: REGISTRY/NAMESPACE/IMAGE:TAG - name: REGISTRY/NAMESPACE/IMAGE:TAG
newName: mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/ims newName: mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/ims
newTag: 7162d642151a36be1c2cfb9892bf1c8cd47fb1c5 newTag: b6a25d9c83b2dded31840a6c9b27e40b72489cb0
...@@ -5,7 +5,6 @@ import com.mmc.csf.common.util.math.CodeUtil; ...@@ -5,7 +5,6 @@ import com.mmc.csf.common.util.math.CodeUtil;
import com.mmc.csf.common.util.web.ResultBody; import com.mmc.csf.common.util.web.ResultBody;
import com.mmc.csf.release.entity.curriculum.CurriculumInfoDO; import com.mmc.csf.release.entity.curriculum.CurriculumInfoDO;
import com.mmc.csf.release.entity.curriculum.CurriculumOrderDO; import com.mmc.csf.release.entity.curriculum.CurriculumOrderDO;
import com.mmc.csf.release.entity.curriculum.CurriculumOrderDO;
import com.mmc.csf.release.entity.curriculum.CurriculumOrderQO; import com.mmc.csf.release.entity.curriculum.CurriculumOrderQO;
import com.mmc.csf.release.feign.PmsAppApi; import com.mmc.csf.release.feign.PmsAppApi;
import com.mmc.csf.release.feign.UserAppApi; import com.mmc.csf.release.feign.UserAppApi;
......
...@@ -28,6 +28,9 @@ public class CurriculumOrderQO implements Serializable { ...@@ -28,6 +28,9 @@ public class CurriculumOrderQO implements Serializable {
@Min(value = 1, groups = Page.class) @Min(value = 1, groups = Page.class)
private Integer pageSize; private Integer pageSize;
@ApiModelProperty(value = "订单编号")
private String orderNo;
public void buildCurrentPage() { public void buildCurrentPage() {
this.pageNo = (pageNo - 1) * pageSize; this.pageNo = (pageNo - 1) * pageSize;
} }
......
...@@ -10,40 +10,48 @@ ...@@ -10,40 +10,48 @@
cash_amount,we_chat,wechat_pay_order_number cash_amount,we_chat,wechat_pay_order_number
</sql> </sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" > <select id="selectByPrimaryKey" parameterType="java.lang.Integer">
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List"/>
from curriculum_order from curriculum_order
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</select> </select>
<select id="getCountCurriculumOrder" resultType="java.lang.Integer"> <select id="getCountCurriculumOrder" resultType="java.lang.Integer">
select count(id) from curriculum_order select count(id) from curriculum_order
<if test="orderNo!=null">
where order_no = #{orderNo}
</if>
</select> </select>
<select id="selectOrderList" resultType="com.mmc.csf.release.entity.curriculum.CurriculumOrderDO"> <select id="selectOrderList" resultType="com.mmc.csf.release.entity.curriculum.CurriculumOrderDO">
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List"/>
from curriculum_order from curriculum_order
<if test="orderNo!=null">
where order_no = #{orderNo}
</if>
order by create_time desc order by create_time desc
limit #{pageNo},#{pageSize} limit #{pageNo},#{pageSize}
</select> </select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer"> <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from curriculum_order delete
from curriculum_order
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</delete> </delete>
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.mmc.csf.release.entity.curriculum.CurriculumOrderDO" useGeneratedKeys="true"> <insert id="insert" keyColumn="id" keyProperty="id"
parameterType="com.mmc.csf.release.entity.curriculum.CurriculumOrderDO" useGeneratedKeys="true">
insert into curriculum_order insert into curriculum_order
( id,order_no,user_account_id ( id, order_no, user_account_id
,back_user_id,order_total_amount,salary_amount , back_user_id, order_total_amount, salary_amount
,cash_amount,we_chat,wechat_pay_order_number , cash_amount, we_chat, wechat_pay_order_number
,create_time,update_time) , create_time, update_time)
values (#{id,jdbcType=INTEGER},#{orderNo,jdbcType=VARCHAR},#{userAccountId,jdbcType=INTEGER} values ( #{id,jdbcType=INTEGER}, #{orderNo,jdbcType=VARCHAR}, #{userAccountId,jdbcType=INTEGER}
,#{backUserId,jdbcType=INTEGER},#{orderTotalAmount,jdbcType=DECIMAL},#{salaryAmount,jdbcType=DECIMAL} , #{backUserId,jdbcType=INTEGER}, #{orderTotalAmount,jdbcType=DECIMAL}, #{salaryAmount,jdbcType=DECIMAL}
,#{cashAmount,jdbcType=DECIMAL},#{weChat,jdbcType=DECIMAL},#{wechatPayOrderNumber,jdbcType=VARCHAR} , #{cashAmount,jdbcType=DECIMAL}, #{weChat,jdbcType=DECIMAL}, #{wechatPayOrderNumber,jdbcType=VARCHAR}
,#{createTime,jdbcType=TIMESTAMP},#{updateTime,jdbcType=TIMESTAMP}) , #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
</insert> </insert>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.mmc.csf.release.entity.curriculum.CurriculumOrderDO" useGeneratedKeys="true"> <insert id="insertSelective" keyColumn="id" keyProperty="id"
parameterType="com.mmc.csf.release.entity.curriculum.CurriculumOrderDO" useGeneratedKeys="true">
insert into curriculum_order insert into curriculum_order
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if> <if test="id != null">id,</if>
...@@ -110,8 +118,7 @@ ...@@ -110,8 +118,7 @@
</update> </update>
<update id="updateByPrimaryKey" parameterType="com.mmc.csf.release.entity.curriculum.CurriculumOrderDO"> <update id="updateByPrimaryKey" parameterType="com.mmc.csf.release.entity.curriculum.CurriculumOrderDO">
update curriculum_order update curriculum_order
set set order_no = #{orderNo,jdbcType=VARCHAR},
order_no = #{orderNo,jdbcType=VARCHAR},
user_account_id = #{userAccountId,jdbcType=INTEGER}, user_account_id = #{userAccountId,jdbcType=INTEGER},
back_user_id = #{backUserId,jdbcType=INTEGER}, back_user_id = #{backUserId,jdbcType=INTEGER},
order_total_amount = #{orderTotalAmount,jdbcType=DECIMAL}, order_total_amount = #{orderTotalAmount,jdbcType=DECIMAL},
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论