buhuazhen
2 天以前 6bb79064a8d717e191ceda7cb2dc1549d3613691
ruoyi-system/src/main/resources/mapper/system/SysDictDataMapper.xml
@@ -59,8 +59,12 @@
   <select id="countDictDataByType" resultType="Integer">
       select count(1) from sys_dict_data where dict_type=#{dictType}  
   </select>
   <delete id="deleteDictDataById" parameterType="Long">
    <select id="selectAllDictList" resultType="com.ruoyi.common.core.domain.entity.SysDictData">
        <include refid="selectDictDataVo"/>
            where status = '0'
    </select>
    <delete id="deleteDictDataById" parameterType="Long">
       delete from sys_dict_data where dict_code = #{dictCode}
    </delete>
    
@@ -84,7 +88,7 @@
          <if test="status != null">status = #{status},</if>
          <if test="remark != null">remark = #{remark},</if>
          <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
          update_time = sysdate()
          update_time = now()
       </set>
       where dict_code = #{dictCode}
   </update>
@@ -117,7 +121,7 @@
          <if test="status != null">#{status},</if>
          <if test="remark != null and remark != ''">#{remark},</if>
          <if test="createBy != null and createBy != ''">#{createBy},</if>
          sysdate()
          now()
       )
   </insert>