yeg
6 天以前 a04222c873e5e55f48c8d33b5c0bc46fa524ac8d
battery-business/src/main/resources/mapper/battery/TDetectionCabinetMapper.xml
@@ -17,7 +17,6 @@
        <result property="channelCount" column="channel_count" />
        <result property="onlineStatus" column="online_status" />
        <result property="testStatus" column="test_status" />
        <result property="currentTest" column="current_test" />
        <result property="status" column="status" />
        <result property="createBy" column="create_by" />
        <result property="createTime" column="create_time" />
@@ -26,6 +25,8 @@
        <result property="remark" column="remark" />
        <result property="delFlag" column="del_flag" />
        <result property="registrationStatus" column="registration_status" />
        <collection property="relatedTests" column="cabinet_id"
                    select="com.battery.business.mapper.DeviceRelatedTestMapper.selectCabinetRelatedTests" />
    </resultMap>
    <sql id="activeCabinetTestExists">
@@ -44,7 +45,6 @@
               manufacturer, model, capacity, channel_count,
               case when upper(online_status) = 'ONLINE' or online_status = '0' then '0' else '1' end as online_status,
               case when <include refid="activeCabinetTestExists"/> then '1' else '0' end as test_status,
               case when <include refid="activeCabinetTestExists"/> then '待确认' else null end as current_test,
               status, create_by, create_time, update_by, update_time, remark, del_flag, registration_status
        from t_detection_cabinet
    </sql>
@@ -138,6 +138,7 @@
                when 'RUNNING' then 'RUNNING'
                else 'UNOBSERVABLE' end,
            update_time = sysdate()
        <if test="displayNo != null">, display_no = #{displayNo}</if>
        <if test="updateLastSeen">, last_seen_at_utc = #{lastSeenAtUtc}</if>
        where adapter_code = #{adapterCode}
          and devtype = #{devtype} and devid = #{devid}