| | |
| | | <!-- 整个实体类修改,表字段=实体类字段--> |
| | | <sql id="Update_Column_All"> |
| | | <trim prefixOverrides=","> |
| | | ,numberNo = #{numberNo},name = #{name},actualTotal = #{actualTotal},refundTotal = #{refundTotal},isMoneyPay = #{isMoneyPay},isExecute = #{isExecute},isPay = #{isPay},paymentMethodId = #{paymentMethodId},type = #{type},typeId = #{typeId},orderId = #{orderId},orderItemId = #{orderItemId},reConsumeId = #{reConsumeId},consumePayItemId = #{consumePayItemId},consumePayId = #{consumePayId},isDel = #{isDel},createTime = #{createTime},editTime = #{editTime} |
| | | ,numberNo = #{numberNo},name = #{name},actualTotal = #{actualTotal},isMoneyPay = #{isMoneyPay},isExecute = #{isExecute},isPay = #{isPay},paymentMethodId = #{paymentMethodId},type = #{type},typeId = #{typeId},orderId = #{orderId},orderItemId = #{orderItemId},reConsumeId = #{reConsumeId},consumePayItemId = #{consumePayItemId},consumePayId = #{consumePayId},isDel = #{isDel},createTime = #{createTime},editTime = #{editTime} |
| | | </trim> |
| | | </sql> |
| | | |
| | |
| | | <selectKey keyProperty="id" resultType="String" order="BEFORE"> |
| | | select replace(uuid(),'-','') from dual |
| | | </selectKey> |
| | | insert into consume_pay_item_son (id,numberNo,name,actualTotal,refundTotal,isMoneyPay,isExecute,isPay,paymentMethodId,type,typeId,orderId,orderItemId,reConsumeId,consumePayItemId,consumePayId,isDel,createTime,editTime) values (#{id},#{numberNo},#{name},#{actualTotal},#{refundTotal},#{isMoneyPay},#{isExecute},#{isPay},#{paymentMethodId},#{type},#{typeId},#{orderId},#{orderItemId},#{reConsumeId},#{consumePayItemId},#{consumePayId},#{isDel},#{createTime},#{editTime}) |
| | | insert into consume_pay_item_son (id,numberNo,name,actualTotal,isMoneyPay,isExecute,isPay,paymentMethodId,type,typeId,orderId,orderItemId,reConsumeId,consumePayItemId,consumePayId,isDel,createTime,editTime) values (#{id},#{numberNo},#{name},#{actualTotal},#{isMoneyPay},#{isExecute},#{isPay},#{paymentMethodId},#{type},#{typeId},#{orderId},#{orderItemId},#{reConsumeId},#{consumePayItemId},#{consumePayId},#{isDel},#{createTime},#{editTime}) |
| | | </insert> |
| | | |
| | | <insert id="insertById" parameterType="com.hx.phiappt.model.consume.ConsumePayItemSon"> |
| | | insert into consume_pay_item_son (id,numberNo,name,actualTotal,refundTotal,isMoneyPay,isExecute,isPay,paymentMethodId,type,typeId,orderId,orderItemId,reConsumeId,consumePayItemId,consumePayId,isDel,createTime,editTime) values (#{id},#{numberNo},#{name},#{actualTotal},#{refundTotal},#{isMoneyPay},#{isExecute},#{isPay},#{paymentMethodId},#{type},#{typeId},#{orderId},#{orderItemId},#{reConsumeId},#{consumePayItemId},#{consumePayId},#{isDel},#{createTime},#{editTime}) |
| | | insert into consume_pay_item_son (id,numberNo,name,actualTotal,isMoneyPay,isExecute,isPay,paymentMethodId,type,typeId,orderId,orderItemId,reConsumeId,consumePayItemId,consumePayId,isDel,createTime,editTime) values (#{id},#{numberNo},#{name},#{actualTotal},#{isMoneyPay},#{isExecute},#{isPay},#{paymentMethodId},#{type},#{typeId},#{orderId},#{orderItemId},#{reConsumeId},#{consumePayItemId},#{consumePayId},#{isDel},#{createTime},#{editTime}) |
| | | </insert> |
| | | |
| | | <select id="selectList" resultType="com.hx.phiappt.model.consume.ConsumePayItemSon" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | |
| | | |
| | | <select id="selectOneByKey" resultType="com.hx.phiappt.model.consume.ConsumePayItemSon" parameterType="java.lang.Object" > |
| | | select |
| | | id,numberNo,name,actualTotal,refundTotal,isMoneyPay,isExecute,isPay,paymentMethodId,type,typeId,orderId,orderItemId,reConsumeId,consumePayItemId,consumePayId,isDel,createTime,editTime |
| | | id,numberNo,name,actualTotal,isMoneyPay,isExecute,isPay,paymentMethodId,type,typeId,orderId,orderItemId,reConsumeId,consumePayItemId,consumePayId,isDel,createTime,editTime |
| | | from consume_pay_item_son |
| | | WHERE id = #{value} |
| | | </select> |
| | | |
| | | <select id="selectOneByKeyBlob" resultType="com.hx.phiappt.model.consume.ConsumePayItemSon" parameterType="java.lang.Object" > |
| | | select |
| | | id,numberNo,name,actualTotal,refundTotal,isMoneyPay,isExecute,isPay,paymentMethodId,type,typeId,orderId,orderItemId,reConsumeId,consumePayItemId,consumePayId,isDel,createTime,editTime |
| | | id,numberNo,name,actualTotal,isMoneyPay,isExecute,isPay,paymentMethodId,type,typeId,orderId,orderItemId,reConsumeId,consumePayItemId,consumePayId,isDel,createTime,editTime |
| | | from consume_pay_item_son |
| | | WHERE id = #{value} |
| | | </select> |