@ -6,6 +6,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<resultMap type= "BaseJfpgInfo" id= "BaseJfpgInfoResult" >
<result property= "uuid" column= "uuid" />
<result property= "timeframeCode" column= "timeframe_code" />
<result property= "timeframeName" column= "timeframe_name" />
<result property= "timeframeBegin" column= "timeframe_begin" />
<result property= "timeframeEnd" column= "timeframe_end" />
@ -18,12 +19,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<sql id= "selectBaseJfpgInfoVo" >
select uuid, timeframe_name, timeframe_begin, timeframe_end, timeframe_price, delete_flag, created_by, created_time, updated_by, updated_time from base_jfpg_info
select uuid, timeframe_code, timeframe_ name, timeframe_begin, timeframe_end, timeframe_price, delete_flag, created_by, created_time, updated_by, updated_time from base_jfpg_info
</sql>
<select id= "selectBaseJfpgInfoList" parameterType= "BaseJfpgInfo" resultMap= "BaseJfpgInfoResult" >
<include refid= "selectBaseJfpgInfoVo" />
<where >
<where >
<if test= "timeframeCode != null and timeframeCode != ''" > and timeframe_code = #{timeframeCode}</if>
<if test= "timeframeName != null and timeframeName != ''" > and timeframe_name like concat(concat('%', #{timeframeName}), '%')</if>
<if test= "deleteFlag != null " > and delete_flag = #{deleteFlag}</if>
<if test= "params.beginCreatedTime != null and params.beginCreatedTime != '' and params.endCreatedTime != null and params.endCreatedTime != ''" > and created_time between #{params.beginCreatedTime} and #{params.endCreatedTime}</if>
@ -43,6 +45,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
insert into base_jfpg_info
<trim prefix= "(" suffix= ")" suffixOverrides= "," >
<if test= "uuid != null" > uuid,</if>
<if test= "timeframeCode != null" > timeframe_code,</if>
<if test= "timeframeName != null" > timeframe_name,</if>
<if test= "timeframeBegin != null" > timeframe_begin,</if>
<if test= "timeframeEnd != null" > timeframe_end,</if>
@ -55,6 +58,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</trim>
<trim prefix= "values (" suffix= ")" suffixOverrides= "," >
<if test= "uuid != null" > #{uuid},</if>
<if test= "timeframeCode != null" > #{timeframeCode},</if>
<if test= "timeframeName != null" > #{timeframeName},</if>
<if test= "timeframeBegin != null" > #{timeframeBegin},</if>
<if test= "timeframeEnd != null" > #{timeframeEnd},</if>
@ -70,6 +74,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<update id= "updateBaseJfpgInfo" parameterType= "BaseJfpgInfo" >
update base_jfpg_info
<trim prefix= "SET" suffixOverrides= "," >
<if test= "timeframeCode != null" > timeframe_code = #{timeframeCode},</if>
<if test= "timeframeName != null" > timeframe_name = #{timeframeName},</if>
<if test= "timeframeBegin != null" > timeframe_begin = #{timeframeBegin},</if>
<if test= "timeframeEnd != null" > timeframe_end = #{timeframeEnd},</if>