| | |
| | | <if test="data.depotId != null">DEPOT_ID_ = #{data.depotId},</if> |
| | | <if test="data.checkUser != null">CHECK_USER_ = #{data.checkUser},</if> |
| | | <if test="data.checkTime != null">CHECK_TIME_ = #{data.checkTime},</if> |
| | | <if test="data.progress != null">PROGRESS_ = #{data.progress},</if> |
| | | <if test="data.checkStatus != null">CHECK_STATUS_ = #{data.checkStatus},</if> |
| | | <if test="data.foodLevel != null">FOOD_LEVEL_ = #{data.foodLevel},</if> |
| | | <if test="data.foodVariety != null">FOOD_VARIETY_ = #{data.foodVariety},</if> |
| | |
| | | AND ID_ =#{data.id} |
| | | </update> |
| | | |
| | | <!--获取粮食定价信息--> |
| | | <select id="getPrice" resultType="com.ld.igds.models.InoutPrice" |
| | | parameterType="com.ld.igds.inout.dto.InoutCheckParam"> |
| | | select |
| | | ID_ as id, |
| | | COMPANY_ID_ as companyId, |
| | | FOOD_VARIETY_ as foodVariety, |
| | | FOOD_LEVEL_ as foodLevel, |
| | | PRICE_ as price, |
| | | START_TIME_ as startTime, |
| | | END_TIME_ as endTime, |
| | | UPDATE_USER_ as updateUser, |
| | | UPDATE_TIME_ as updateTime, |
| | | REMARKS_ as remarks |
| | | from |
| | | D_INOUT_PRICE |
| | | <where> |
| | | <if test="param.companyId != null and param.companyId != '' ">AND COMPANY_ID_ = #{param.companyId}</if> |
| | | <if test="param.foodLevel != null and param.foodLevel != '' ">AND FOOD_LEVEL_ = #{param.foodLevel}</if> |
| | | <if test="param.foodVariety != null and param.foodVariety != '' ">AND FOOD_VARIETY_ like #{param.foodVariety}</if> |
| | | <if test="param.end != null">AND END_TIME_ <![CDATA[ >= ]]>#{param.end,jdbcType=TIMESTAMP}</if> |
| | | <if test="param.start != null">AND START_TIME_ <![CDATA[ <= ]]>#{param.start,jdbcType=TIMESTAMP}</if> |
| | | </where> |
| | | ORDER BY UPDATE_TIME_ |
| | | </select> |
| | | |
| | | </mapper> |