| | |
| | | <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' |
| | | </where> |
| | | </select> |
| | |
| | | COMPLETE_TIME_ <![CDATA[ > ]]>#{param.start,jdbcType=TIMESTAMP} |
| | | </if> |
| | | AND PROGRESS_ = 'RECORD' |
| | | AND RECORD_STATUS_ != 'ERROR' |
| | | AND RECORD_STATUS_ != 'DEL' |
| | | ORDER BY COMPLETE_TIME_ |
| | | </where> |
| | |
| | | COMPLETE_TIME_ <![CDATA[ < ]]>#{param.end,jdbcType=TIMESTAMP} |
| | | </if> |
| | | </where> |
| | | AND RECORD_STATUS_ != 'ERROR' |
| | | AND RECORD_STATUS_ != 'DEL' |
| | | ORDER BY COMPLETE_TIME_ DESC |
| | | LIMIT 1 |
| | |
| | | <if test="param.intelCard != null and param.plateNum != null"> |
| | | AND ( INTEL_CARD_ = #{param.intelCard} OR PLATE_NUM_ = #{param.plateNum} ) |
| | | </if> |
| | | and PROGRESS_ <> 'RECORD' and RECORD_STATUS_ != 'DEL' and RECORD_STATUS_ != 'ERROR' |
| | | and PROGRESS_ <> 'RECORD' and RECORD_STATUS_ != 'DEL' |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | <update id="inoutStop" parameterType="com.ld.igds.inout.dto.InoutParam"> |
| | | update D_INOUT_RECORD |
| | | <set> |
| | | RECORD_STATUS_ ='ERROR', |
| | | PROGRESS_ = 'RECORD', |
| | | <if test="param.recordStatus != null and param.recordStatus != '' ">RECORD_STATUS_ = #{param.recordStatus},</if> |
| | | <if test="param.checkStatus != null and param.checkStatus != '' ">CHECK_STATUS_ = #{param.checkStatus},</if> |
| | | <if test="param.msg != null and param.msg != '' ">REMARKS_ = concat(REMARKS_,#{param.msg})</if> |
| | | </set> |
| | | <where> |
| | | <if test="param.companyId != null and param.companyId != '' ">COMPANY_ID_ = #{param.companyId}</if> |
| | | <if test="param.id != null and param.id != '' ">AND ID_ = #{param.id}</if> |
| | | </where> |
| | | |
| | | <where> |
| | | COMPANY_ID_ = #{param.companyId}, |
| | | AND ID_ = #{param.id} |
| | | </where> |
| | | </update> |
| | | |
| | | |
| | |
| | | and TYPE_ = #{param.type} |
| | | and COMPANY_ID_ = #{param.companyId} |
| | | and RECORD_STATUS_ != 'DEL' |
| | | and RECORD_STATUS_ != 'ERROR' |
| | | </update> |
| | | |
| | | <!-- 查询流程未完成的流水信息 --> |
| | |
| | | AND RECORD_STATUS_ != 'DEL' |
| | | AND PROGRESS_ != 'RECORD' |
| | | AND PROGRESS_ != 'PAY' |
| | | AND RECORD_STATUS_ != 'ERROR' |
| | | </select> |
| | | |
| | | |
| | |
| | | where |
| | | PROGRESS_ = 'RECORD' |
| | | AND RECORD_STATUS_ != 'DEL' |
| | | AND RECORD_STATUS_ != 'ERROR' |
| | | <if test="param.type != null and param.type != ''">AND TYPE_ = #{param.type}</if> |
| | | <if test="param.companyId != null and param.companyId != ''">AND COMPANY_ID_ = #{param.companyId}</if> |
| | | <if test="param.deptId != null and param.deptId != ''">AND DEPT_ID_ = #{param.deptId}</if> |
| | |
| | | AND TYPE_ = #{param.type} |
| | | AND (PLATE_NUM_ = #{param.plateNum} or INTEL_CARD_ = #{param.intelCard}) |
| | | AND PROGRESS_ != 'RECORD' |
| | | AND RECORD_STATUS_ != 'ERROR' |
| | | AND RECORD_STATUS_ != 'DEL' |
| | | <if test="param.start != null"> |
| | | AND REGISTER_TIME_ <![CDATA[ > ]]> #{param.start,jdbcType=TIMESTAMP} |