src/main/resources/mapper/LocMastMapper.xml
@@ -38,6 +38,7 @@ <result column="fire_status" property="fireStatus" /> <result column="pack_status" property="packStatus" /> <result column="channel" property="channel" /> <result column="freeze" property="freeze" /> </resultMap> @@ -46,9 +47,14 @@ from asr_loc_mast where row1=#{row} and loc_sts='O' <if test="locType1 != null"> and loc_type1 = #{locType1} </if> <choose> <when test="locType1 != null"> and loc_type1 = #{locType1} </when> <otherwise> and 1!=1 </otherwise> </choose> order by lev1 asc,bay1 asc </select>