洪城义警-正式版后台
zengh
2022-05-26 4c19ddd36bdfb43b5ef4e8df3c9a98cd4d356d6c
src/main/java/org/springblade/modules/energy/mapper/EnergyMapper.xml
@@ -19,6 +19,10 @@
        UPDATE sys_energy SET
            type = 0 WHERE id = #{id} and identification=#{identification}
    </update>
    <update id="updateEnergyIds">
        UPDATE sys_energy SET
            type = 0 WHERE id = #{id} and identification=#{identification}
    </update>
    <select id="selectType" resultType="java.lang.String">
        select GROUP_CONCAT(id) as ids from sys_energy WHERE type=1 and time=#{time};