疯狂的狮子li
2021-04-14 adeaa77864792872f7e39bb9d3560c07d75c1873
ruoyi-generator/src/main/resources/mapper/generator/GenTableMapper.xml
@@ -133,69 +133,4 @@
      order by c.sort
   </select>
   <insert id="insertGenTable" parameterType="GenTable" useGeneratedKeys="true" keyProperty="tableId">
        insert into gen_table (
         <if test="tableName != null">table_name,</if>
         <if test="tableComment != null and tableComment != ''">table_comment,</if>
         <if test="className != null and className != ''">class_name,</if>
         <if test="tplCategory != null and tplCategory != ''">tpl_category,</if>
         <if test="packageName != null and packageName != ''">package_name,</if>
         <if test="moduleName != null and moduleName != ''">module_name,</if>
         <if test="businessName != null and businessName != ''">business_name,</if>
         <if test="functionName != null and functionName != ''">function_name,</if>
         <if test="functionAuthor != null and functionAuthor != ''">function_author,</if>
         <if test="genType != null and genType != ''">gen_type,</if>
         <if test="genPath != null and genPath != ''">gen_path,</if>
         <if test="remark != null and remark != ''">remark,</if>
          <if test="createBy != null and createBy != ''">create_by,</if>
         create_time
         )values(
         <if test="tableName != null">#{tableName},</if>
         <if test="tableComment != null and tableComment != ''">#{tableComment},</if>
         <if test="className != null and className != ''">#{className},</if>
         <if test="tplCategory != null and tplCategory != ''">#{tplCategory},</if>
         <if test="packageName != null and packageName != ''">#{packageName},</if>
         <if test="moduleName != null and moduleName != ''">#{moduleName},</if>
         <if test="businessName != null and businessName != ''">#{businessName},</if>
         <if test="functionName != null and functionName != ''">#{functionName},</if>
         <if test="functionAuthor != null and functionAuthor != ''">#{functionAuthor},</if>
         <if test="genType != null and genType != ''">#{genType},</if>
         <if test="genPath != null and genPath != ''">#{genPath},</if>
         <if test="remark != null and remark != ''">#{remark},</if>
          <if test="createBy != null and createBy != ''">#{createBy},</if>
         sysdate()
         )
    </insert>
    <update id="updateGenTable" parameterType="GenTable">
        update gen_table
        <set>
            <if test="tableName != null">table_name = #{tableName},</if>
            <if test="tableComment != null and tableComment != ''">table_comment = #{tableComment},</if>
            <if test="subTableName != null">sub_table_name = #{subTableName},</if>
            <if test="subTableFkName != null">sub_table_fk_name = #{subTableFkName},</if>
            <if test="className != null and className != ''">class_name = #{className},</if>
            <if test="functionAuthor != null and functionAuthor != ''">function_author = #{functionAuthor},</if>
            <if test="genType != null and genType != ''">gen_type = #{genType},</if>
            <if test="genPath != null and genPath != ''">gen_path = #{genPath},</if>
            <if test="tplCategory != null and tplCategory != ''">tpl_category = #{tplCategory},</if>
            <if test="packageName != null and packageName != ''">package_name = #{packageName},</if>
            <if test="moduleName != null and moduleName != ''">module_name = #{moduleName},</if>
            <if test="businessName != null and businessName != ''">business_name = #{businessName},</if>
            <if test="functionName != null and functionName != ''">function_name = #{functionName},</if>
            <if test="options != null and options != ''">options = #{options},</if>
            <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
            <if test="remark != null">remark = #{remark},</if>
            update_time = sysdate()
        </set>
        where table_id = #{tableId}
    </update>
    <delete id="deleteGenTableByIds" parameterType="Long">
        delete from gen_table where table_id in
        <foreach collection="array" item="tableId" open="(" separator="," close=")">
            #{tableId}
        </foreach>
    </delete>
</mapper>