| | |
| | | <if test="param.intelCard != null and param.intelCard != '' ">AND INTEL_CARD_ = #{param.intelCard}</if> |
| | | <if test="param.id != null and param.id != '' ">AND ID_ = #{param.id}</if> |
| | | <if test="param.progress != null and param.progress != '' ">AND PROGRESS_ = #{param.progress}</if> |
| | | |
| | | AND PROGRESS_ != 'RECORD' |
| | | AND RECORD_STATUS_ != 'ERROR' |
| | | AND RECORD_STATUS_ != 'DEL' |
| | |
| | | <if test="data.intelCard != null">INTEL_CARD_ = #{data.intelCard},</if> |
| | | <if test="data.plateNum != null">PLATE_NUM_ = #{data.plateNum},</if> |
| | | <if test="data.transType != null">TRANS_TYPE_ = #{data.transType},</if> |
| | | <if test="data.specType != null">SPEC_TYPE_ = #{data.specType},</if> |
| | | <if test="data.customerId != null">CUSTOMER_ID_ = #{data.customerId},</if> |
| | | <if test="data.customerName != null">CUSTOMER_NAME_ = #{data.customerName},</if> |
| | | <if test="data.foodVariety != null">FOOD_VARIETY_ = #{data.foodVariety},</if> |
| | | <if test="data.foodLevel != null">FOOD_LEVEL_ = #{data.foodLevel},</if> |
| | | <if test="data.foodLocation != null">FOOD_LOCATION_ = #{data.foodLocation},</if> |
| | | <if test="data.foodYear != null">FOOD_YEAR_ = #{data.foodYear},</if> |
| | | <if test="data.impurity != null">IMPURITY_ = #{data.impurity},</if> |
| | | <if test="data.deImpurity != null">DE_IMPURITY_ = #{data.deImpurity},</if> |
| | | <if test="data.wet != null">WET_ = #{data.wet},</if> |
| | | <if test="data.deWet != null">DE_WET_ = #{data.deWet},</if> |
| | | <if test="data.deHandle != null">DE_HANDLE_ = #{data.deHandle},</if> |
| | | <if test="data.deOther != null">DE_OTHER_ = #{data.deOther},</if> |
| | | <if test="data.deSum != null">DE_SUM_ = #{data.deSum},</if> |
| | | <if test="data.fullWeight != null">FULL_WEIGHT_ = #{data.fullWeight},</if> |
| | | <if test="data.fullWeightTime != null">FULL_WEIGHT_TIME_ = #{data.fullWeightTime},</if> |
| | | <if test="data.fullWeightUser != null">FULL_WEIGHT_USER_ = #{data.fullWeightUser},</if> |
| | |
| | | <if test="data.netWeight != null">NET_WEIGHT_ = #{data.netWeight},</if> |
| | | <if test="data.settleWeight != null">SETTLE_WEIGHT_ = #{data.settleWeight},</if> |
| | | <if test="data.recordWeight != null">RECORD_WEIGHT_ = #{data.recordWeight},</if> |
| | | <if test="data.handleStart != null">HANDLE_START_ = #{data.handleStart},</if> |
| | | <if test="data.handleEnd != null">HANDLE_END_ = #{data.handleEnd},</if> |
| | | <if test="data.handleUser != null">HANDLE_USER_ = #{data.handleUser},</if> |
| | | <if test="data.completeTime != null">COMPLETE_TIME_ = #{data.completeTime},</if> |
| | | <if test="data.completeUser != null">COMPLETE_USER_ = #{data.completeUser},</if> |
| | | <if test="data.remarks != null">REMARKS_ = #{data.remarks},</if> |
| | | <if test="data.curStorage != null">CUR_STORAGE_ = #{data.curStorage},</if> |
| | | <if test="data.foodType != null">FOOD_TYPE_ = #{data.foodType},</if> |
| | | <if test="data.price != null">PRICE_ = #{data.price},</if> |
| | | <if test="data.settleMoney != null">SETTLE_MONEY_ = #{data.settleMoney},</if> |
| | | PROGRESS_ = #{data.progress} |
| | | where |
| | | company_id_ =#{data.companyId} |
| | | and id_=#{data.id} |
| | | </update> |
| | | |
| | | <update id="updateDataByHandle" parameterType="com.ld.igds.inout.dto.InoutData"> |
| | | update D_INOUT_RECORD set |
| | | <if test="data.deHandle != null">DE_HANDLE_ = #{data.deHandle},</if> |
| | | <if test="data.handleUser != null">HANDLE_USER_ = #{data.handleUser},</if> |
| | | <if test="data.deOther != null">DE_OTHER_ = #{data.deOther},</if> |
| | | <if test="data.deOtherInfo != null">DE_OTHER_INFO_ = #{data.deOtherInfo},</if> |
| | | <if test="data.dePackage != null">DE_PACKAGE_ = #{data.package},</if> |
| | | <if test="data.bzw != null">bzw = #{data.bzw},</if> |
| | | <if test="data.dbz != null">dbz = #{data.dbz},</if> |
| | | <if test="data.bzbjs != null">bzbjs = #{data.bzbjs},</if> |
| | | <if test="data.remarks != null">REMARKS_ = #{data.remarks},</if> |
| | | UPDATE_TIME_ = #{data.updateTime} |
| | | where |
| | | company_id_ =#{data.companyId} |
| | | and id_=#{data.id} |
| | |
| | | </select> |
| | | |
| | | <!--根据车牌和卡号验证是否有重复信息--> |
| | | <select id="checkExist" parameterType="com.ld.igds.inout.dto.InoutParam"> |
| | | <select id="checkExist" parameterType="com.ld.igds.inout.dto.InoutParam" resultType="int"> |
| | | select count(1) |
| | | from |
| | | D_INOUT_RECORD |
| | |
| | | AND RECORD_STATUS_ != 'ERROR' |
| | | AND RECORD_STATUS_ != 'DEL' |
| | | <if test="param.start != null"> |
| | | AND REGISTER_TIME_ <![CDATA[ > ]]> #{param.start} |
| | | AND REGISTER_TIME_ <![CDATA[ > ]]> #{param.start,jdbcType=TIMESTAMP} |
| | | </if> |
| | | </select> |
| | | |