| | |
| | | <mapper namespace="cn.gistack.sm.patrol.mapper.PatrolGroupItemMapper"> |
| | | |
| | | <select id="selectPatrolGroupItemList" resultType="cn.gistack.sm.patrol.entity.PatrolGroupItem"> |
| | | SELECT id,group_id,items_name,name FROM SM_PATROL_GROUP_ITEM WHERE is_deleted = 0 |
| | | SELECT id,group_id,items_name,description FROM SM_PATROL_GROUP_ITEM WHERE is_deleted = 0 |
| | | <if test="patrolGroupItem.groupId != null and patrolGroupItem.groupId != '' "> |
| | | and group_id = #{patrolGroupItem.groupId} |
| | | </if> |
| | | <if test="patrolGroupItem.itemsName !=null and patrolGroupItem.itemsName !=''"> |
| | | AND items_name LIKE CONCAT('%',#{patrolGroupItem.itemsName},'%') |
| | | </if> |
| | | <if test="patrolGroupItem.name !=null and patrolGroupItem.name !=''"> |
| | | AND name LIKE CONCAT('%',#{patrolGroupItem.name},'%') |
| | | <if test="patrolGroupItem.description !=null and patrolGroupItem.description !=''"> |
| | | AND name LIKE CONCAT('%',#{patrolGroupItem.description},'%') |
| | | </if> |
| | | </select> |
| | | </mapper> |