| | |
| | | DATE_FORMAT(deal_time, '%Y-%m-%d') '处理日期' |
| | | from mom_ocean.raw_inspect ri inner join mom_ocean.inspect_unaccepted ru on ri.id = ru.raw_inspect_id |
| | | <where> |
| | | <if test="dealState!=null"> |
| | | <if test="dealState!=null and dealState!=''"> |
| | | and deal_state=#{dealState} |
| | | </if> |
| | | <if test="formTime!=null"> |
| | | <if test="formTime!=null and formTime!=''"> |
| | | and form_time=#{formTime} |
| | | </if> |
| | | <if test="type!=null"> |
| | | <if test="type!=null and type!=''"> |
| | | and ru.type=#{type} |
| | | </if> |
| | | and ru.state=1 |
| | |
| | | mom_ocean.user u |
| | | where fi.id = ru.raw_inspect_id |
| | | and fi.user_id=u.id |
| | | <if test="dealState!=null"> |
| | | <if test="dealState!=null and dealState!=''"> |
| | | and deal_state=#{dealState} |
| | | </if> |
| | | <if test="formTime!=null"> |
| | | <if test="formTime!=null and formTime!=''"> |
| | | and fi.create_time=#{formTime} |
| | | </if> |
| | | <if test="type!=null"> |
| | | <if test="type!=null and type!=''"> |
| | | and ru.type=#{type} |
| | | </if> |
| | | and ru.state=1 |