| | |
| | | import com.hx.phiappt.model.cardItem.CardEquity; |
| | | import com.hx.phiappt.model.order.OrderInfo; |
| | | import com.hx.phiappt.model.order.OrderItemSon; |
| | | import com.hx.phiappt.model.order.OrdersActivityInfo; |
| | | import com.hx.phiappt.model.order.OrdersActivityInfoItem; |
| | | import com.hx.phiappt.model.project.ProjectShopPrice; |
| | | import com.hx.phiappt.model.refund.RefundRecord; |
| | | import com.hx.phiappt.model.refund.RefundRecordReceipt; |
| | |
| | | urlData.serviceImplUrlData(controllerPackRoot,packageName + ".service.impl"); |
| | | urlData.mapperUrlData(commonPackRootResourse, "mapper.platform"); |
| | | |
| | | Class<?> clas = UserCardUsed.class; |
| | | Class<?> clas = OrdersActivityInfoItem.class; |
| | | //dao |
| | | GeneratorUtil.generatorDao(clas,urlData); |
| | | //mapper |
| | |
| | | <!-- 整个实体类修改,表字段=实体类字段--> |
| | | <sql id="Update_Column_All"> |
| | | <trim prefixOverrides=","> |
| | | ,orderId = #{orderId},activityInfoId = #{activityInfoId},type = #{type},worth = #{worth},worthName = #{worthName},activityGroupId = #{activityGroupId},activityRuleId = #{activityRuleId},crmCouponId = #{crmCouponId},crmCouponName = #{crmCouponName},platformType = #{platformType},performStatus = #{performStatus},isDel = #{isDel},createTime = #{createTime},editTime = #{editTime} |
| | | ,orderId = #{orderId},activityInfoId = #{activityInfoId},performStatus = #{performStatus},handleStatus = #{handleStatus},type = #{type},worth = #{worth},worthName = #{worthName},activityActionId = #{activityActionId},activityGroupId = #{activityGroupId},activityRuleId = #{activityRuleId},crmCouponId = #{crmCouponId},crmCouponName = #{crmCouponName},platformType = #{platformType},couponNumberId = #{couponNumberId},isDel = #{isDel},createTime = #{createTime},editTime = #{editTime} |
| | | </trim> |
| | | </sql> |
| | | |
| | |
| | | <selectKey keyProperty="id" resultType="String" order="BEFORE"> |
| | | select replace(uuid(),'-','') from dual |
| | | </selectKey> |
| | | insert into orders_activity_info_item (id,orderId,activityInfoId,type,worth,worthName,activityGroupId,activityRuleId,crmCouponId,crmCouponName,platformType,performStatus,isDel,createTime,editTime) values (#{id},#{orderId},#{activityInfoId},#{type},#{worth},#{worthName},#{activityGroupId},#{activityRuleId},#{crmCouponId},#{crmCouponName},#{platformType},#{performStatus},#{isDel},#{createTime},#{editTime}) |
| | | insert into orders_activity_info_item (id,orderId,activityInfoId,performStatus,handleStatus,type,worth,worthName,activityActionId,activityGroupId,activityRuleId,crmCouponId,crmCouponName,platformType,couponNumberId,isDel,createTime,editTime) values (#{id},#{orderId},#{activityInfoId},#{performStatus},#{handleStatus},#{type},#{worth},#{worthName},#{activityActionId},#{activityGroupId},#{activityRuleId},#{crmCouponId},#{crmCouponName},#{platformType},#{couponNumberId},#{isDel},#{createTime},#{editTime}) |
| | | </insert> |
| | | |
| | | <insert id="insertById" parameterType="com.hx.phiappt.model.order.OrdersActivityInfoItem"> |
| | | insert into orders_activity_info_item (id,orderId,activityInfoId,performStatus,handleStatus,type,worth,worthName,activityActionId,activityGroupId,activityRuleId,crmCouponId,crmCouponName,platformType,couponNumberId,isDel,createTime,editTime) values (#{id},#{orderId},#{activityInfoId},#{performStatus},#{handleStatus},#{type},#{worth},#{worthName},#{activityActionId},#{activityGroupId},#{activityRuleId},#{crmCouponId},#{crmCouponName},#{platformType},#{couponNumberId},#{isDel},#{createTime},#{editTime}) |
| | | </insert> |
| | | |
| | | <select id="selectList" resultType="com.hx.phiappt.model.order.OrdersActivityInfoItem" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | ${sqlSentence} |
| | |
| | | |
| | | <select id="selectOneByKey" resultType="com.hx.phiappt.model.order.OrdersActivityInfoItem" parameterType="java.lang.Object" > |
| | | select |
| | | id,orderId,activityInfoId,type,worth,worthName,activityGroupId,activityRuleId,crmCouponId,crmCouponName,platformType,performStatus,isDel,createTime,editTime |
| | | id,orderId,activityInfoId,performStatus,handleStatus,type,worth,worthName,activityActionId,activityGroupId,activityRuleId,crmCouponId,crmCouponName,platformType,couponNumberId,isDel,createTime,editTime |
| | | from orders_activity_info_item |
| | | WHERE id = #{value} |
| | | </select> |
| | | |
| | | <select id="selectOneByKeyBlob" resultType="com.hx.phiappt.model.order.OrdersActivityInfoItem" parameterType="java.lang.Object" > |
| | | select |
| | | id,orderId,activityInfoId,type,worth,worthName,activityGroupId,activityRuleId,crmCouponId,crmCouponName,platformType,performStatus,isDel,createTime,editTime |
| | | id,orderId,activityInfoId,performStatus,handleStatus,type,worth,worthName,activityActionId,activityGroupId,activityRuleId,crmCouponId,crmCouponName,platformType,couponNumberId,isDel,createTime,editTime |
| | | from orders_activity_info_item |
| | | WHERE id = #{value} |
| | | </select> |
| | |
| | | insert into orders_activity_info (id,orderId,activityId,activityName,isDel,createTime,editTime) values (#{id},#{orderId},#{activityId},#{activityName},#{isDel},#{createTime},#{editTime}) |
| | | </insert> |
| | | |
| | | <insert id="insertById" parameterType="com.hx.phiappt.model.order.OrdersActivityInfo"> |
| | | insert into orders_activity_info (id,orderId,activityId,activityName,isDel,createTime,editTime) values (#{id},#{orderId},#{activityId},#{activityName},#{isDel},#{createTime},#{editTime}) |
| | | </insert> |
| | | |
| | | <select id="selectList" resultType="com.hx.phiappt.model.order.OrdersActivityInfo" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | ${sqlSentence} |
| | | </select> |
| | |
| | | Map<String,Object> values = new HashMap<>(); |
| | | |
| | | values.put("id",id); |
| | | sqlSentence.sqlSentence("SELECT er.*,ert.name AS roleName FROM employee_role er LEFT JOIN employee_role_type ert ON ert.id = er.roleTypeId WHERE id = #{m.id}",values); |
| | | sqlSentence.sqlSentence("SELECT er.*,ert.name AS roleName FROM employee_role er LEFT JOIN employee_role_type ert ON ert.id = er.roleTypeId WHERE er.id = #{m.id}",values); |
| | | |
| | | return employeeRoleMapper.selectOne(sqlSentence); |
| | | } |