| | |
| | | <if test="checkInRecords.address != null and checkInRecords.address != ''"> and jcir.address = #{checkInRecords.address}</if> |
| | | <if test="checkInRecords.deletedFlag != null "> and jcir.deleted_flag = #{checkInRecords.deletedFlag}</if> |
| | | <if test="checkInRecords.name != null and checkInRecords.name !='' "> and bu.name like concat('%',#{checkInRecords.name},'%') </if> |
| | | <if test="checkInRecords.startTime!=null and checkInRecords.startTime!=''"> |
| | | AND date_format(jcir.create_time,'%Y-%m-%d')>= #{checkInRecords.startTime} |
| | | </if> |
| | | <if test="checkInRecords.endTime!=null and checkInRecords.endTime!=''"> |
| | | AND date_format(jcir.create_time,'%Y-%m-%d')<= #{checkInRecords.endTime} |
| | | </if> |
| | | </where> |
| | | |
| | | </select> |