Merge branch 'master-prod-new' into master-prod-优惠券退款
| | |
| | | |
| | | import com.hx.auto.GeneratorUtil; |
| | | import com.hx.auto.common.UrlData; |
| | | import com.hx.phiappt.model.cardItem.CardEquity; |
| | | import com.hx.phiappt.model.project.ProjectShopPrice; |
| | | import com.hx.phiappt.model.user.UserCardUsed; |
| | | import com.hx.phiappt.model.user.UserProjectDirectRecord; |
| | |
| | | urlData.serviceImplUrlData(controllerPackRoot,packageName + ".service.impl"); |
| | | urlData.mapperUrlData(commonPackRootResourse, "mapper.platform"); |
| | | |
| | | Class<?> clas = UserCardUsed.class; |
| | | Class<?> clas = CardEquity.class; |
| | | //dao |
| | | GeneratorUtil.generatorDao(clas,urlData); |
| | | //mapper |
| | |
| | | <!-- 整个实体类修改,表字段=实体类字段--> |
| | | <sql id="Update_Column_All"> |
| | | <trim prefixOverrides=","> |
| | | ,equityType = #{equityType},groupName = #{groupName},value = #{value},cardItemId = #{cardItemId},isDel = #{isDel},createTime = #{createTime},editTime = #{editTime} |
| | | ,equityType = #{equityType},groupName = #{groupName},value = #{value},shareMoney = #{shareMoney},indexValue = #{indexValue},cardItemId = #{cardItemId},isDel = #{isDel},createTime = #{createTime},editTime = #{editTime} |
| | | </trim> |
| | | </sql> |
| | | |
| | |
| | | <selectKey keyProperty="id" resultType="String" order="BEFORE"> |
| | | select replace(uuid(),'-','') from dual |
| | | </selectKey> |
| | | insert into card_Equity (id,equityType,groupName,value,cardItemId,isDel,createTime,editTime) values (#{id},#{equityType},#{groupName},#{value},#{cardItemId},#{isDel},#{createTime},#{editTime}) |
| | | insert into card_equity (id,equityType,groupName,value,shareMoney,indexValue,cardItemId,isDel,createTime,editTime) values (#{id},#{equityType},#{groupName},#{value},#{shareMoney},#{indexValue},#{cardItemId},#{isDel},#{createTime},#{editTime}) |
| | | </insert> |
| | | |
| | | <insert id="insertById" parameterType="com.hx.phiappt.model.cardItem.CardEquity"> |
| | | insert into card_equity (id,equityType,groupName,value,shareMoney,indexValue,cardItemId,isDel,createTime,editTime) values (#{id},#{equityType},#{groupName},#{value},#{shareMoney},#{indexValue},#{cardItemId},#{isDel},#{createTime},#{editTime}) |
| | | </insert> |
| | | |
| | | <select id="selectList" resultType="com.hx.phiappt.model.cardItem.CardEquity" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | ${sqlSentence} |
| | |
| | | <select id="selectCount" resultType="int" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | | select |
| | | COUNT(*) |
| | | from card_Equity |
| | | from card_equity |
| | | WHERE ${sqlSentence} |
| | | </select> |
| | | |
| | |
| | | |
| | | <select id="selectOneByKey" resultType="com.hx.phiappt.model.cardItem.CardEquity" parameterType="java.lang.Object" > |
| | | select |
| | | id,equityType,groupName,value,cardItemId,isDel,createTime,editTime |
| | | from card_Equity |
| | | id,equityType,groupName,value,shareMoney,indexValue,cardItemId,isDel,createTime,editTime |
| | | from card_equity |
| | | WHERE id = #{value} |
| | | </select> |
| | | |
| | | <select id="selectOneByKeyBlob" resultType="com.hx.phiappt.model.cardItem.CardEquity" parameterType="java.lang.Object" > |
| | | select |
| | | id,equityType,groupName,value,cardItemId,isDel,createTime,editTime |
| | | from card_Equity |
| | | id,equityType,groupName,value,shareMoney,indexValue,cardItemId,isDel,createTime,editTime |
| | | from card_equity |
| | | WHERE id = #{value} |
| | | </select> |
| | | |
| | | <update id="updateWhere" parameterType="com.hx.mybatisTool.SqlSentence"> |
| | | update |
| | | card_Equity |
| | | card_equity |
| | | SET ${sqlSentence} |
| | | </update> |
| | | |
| | | <update id="updateAll" parameterType="com.hx.phiappt.model.cardItem.CardEquity"> |
| | | update card_Equity |
| | | update card_equity |
| | | SET <include refid="Update_Column_All"/> |
| | | WHERE id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteWhere" parameterType="com.hx.mybatisTool.SqlSentence"> |
| | | delete from card_Equity WHERE ${sqlSentence} |
| | | delete from card_equity WHERE ${sqlSentence} |
| | | </delete> |
| | | |
| | | <delete id="deleteById" parameterType="java.lang.Object"> |
| | | delete from card_Equity WHERE id = #{value} |
| | | delete from card_equity WHERE id = #{value} |
| | | </delete> |
| | | |
| | | </mapper> |