| | |
| | | |
| | | <!-- 保存装修记录信息 add by wuxw 2018-07-03 --> |
| | | <insert id="saveRoomRenovationRecordInfo" parameterType="Map"> |
| | | insert into room_renovation_record(record_id,r_id,staff_id,staff_name,state,remark,create_time) values (#{recordId},#{rId},#{staffId},#{staffName},#{state},#{remark},#{createTime}) |
| | | insert into room_renovation_record(record_id,r_id,staff_id,staff_name,state,remark,create_time,is_true) values (#{recordId},#{rId},#{staffId},#{staffName},#{state},#{remark},#{createTime},#{isTrue}) |
| | | </insert> |
| | | |
| | | <!-- 查询装修记录信息(与文件表关联) --> |
| | |
| | | re.staff_name staffName, |
| | | re.remark, |
| | | re.state, |
| | | re.is_true isTrue, |
| | | td. NAME stateName, |
| | | re.create_time createTime, |
| | | r.room_id roomId, |
| | |
| | | </if> |
| | | <if test="statusCd != null and statusCd != ''"> |
| | | and re.status_cd = #{statusCd} |
| | | </if> |
| | | <if test="isTrue != null and isTrue != ''"> |
| | | and re.is_true = #{isTrue} |
| | | </if> |
| | | <if test="createTime !=null and createTime != ''"> |
| | | and re.create_time= #{createTime} |
| | |
| | | <if test="statusCd != null and statusCd != ''"> |
| | | and re.status_cd = #{statusCd} |
| | | </if> |
| | | <if test="isTrue != null and isTrue != ''"> |
| | | and re.is_true = #{isTrue} |
| | | </if> |
| | | <if test="createTime !=null and createTime != ''"> |
| | | and re.create_time= #{createTime} |
| | | </if> |
| | |
| | | re.staff_name staffName, |
| | | re.remark, |
| | | re.state, |
| | | td. NAME stateName, |
| | | td.name stateName, |
| | | re.is_true isTrue, |
| | | td2.name isTrueName, |
| | | re.create_time createTime, |
| | | r.room_id roomId, |
| | | r.room_name roomName |
| | |
| | | LEFT JOIN t_dict td ON td.table_name = 'room_renovation_record' |
| | | AND td.table_columns = 'state' |
| | | AND re.state = td.status_cd |
| | | LEFT JOIN t_dict td2 ON td2.table_name = 'room_renovation_record' |
| | | AND td2.table_columns = 'is_true' AND re.is_true = td2.status_cd |
| | | WHERE 1 = 1 |
| | | <if test="recordId !=null and recordId != ''"> |
| | | and re.record_id= #{recordId} |
| | |
| | | </if> |
| | | <if test="statusCd != null and statusCd != ''"> |
| | | and re.status_cd = #{statusCd} |
| | | </if> |
| | | <if test="isTrue != null and isTrue != ''"> |
| | | and re.is_true = #{isTrue} |
| | | </if> |
| | | <if test="createTime !=null and createTime != ''"> |
| | | and re.create_time= #{createTime} |
| | |
| | | <if test="statusCd != null and statusCd != ''"> |
| | | and re.status_cd = #{statusCd} |
| | | </if> |
| | | <if test="isTrue != null and isTrue != ''"> |
| | | and re.is_true = #{isTrue} |
| | | </if> |
| | | <if test="createTime !=null and createTime != ''"> |
| | | and re.create_time= #{createTime} |
| | | </if> |