| | |
| | | left join blade_dict_biz dt on n.node_type=dt.dict_key and dt.code='nc_node_type' and dt.is_deleted=0 |
| | | <where> |
| | | n.is_deleted=0 and n.node_type='20' and n.name=#{drawingNo} |
| | | <if test="programStatus != null and programStatus != ''"> |
| | | <if test="status != null and status != ''"> |
| | | and |
| | | ( |
| | | <if test='programStatus.contains("1")'> |
| | | n.parent_ids LIKE '0,1,%' |
| | | 1=1 |
| | | <if test='status.contains("1")'> |
| | | or n.parent_ids LIKE '0,1,%' |
| | | </if> |
| | | <if test='programStatus.contains("2")'> |
| | | <if test='status.contains("2")'> |
| | | or n.parent_ids LIKE '0,2,%' |
| | | </if> |
| | | <if test='programStatus.contains("2")'> |
| | | <if test='status.contains("3")'> |
| | | or n.parent_ids LIKE '0,3,%' |
| | | </if> |
| | | ) |
| | | </if> |
| | | <if test="createTimeBegin != null"> |
| | | and n.create_time>=#{createTimeBegin} |
| | | </if> |
| | | <if test="createTimeEnd != null"> |
| | | and n.create_time<=#{createTimeEnd} |
| | | </if> |
| | | </where> |
| | | |
| | | |