<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="cn.timer.api.dao.zcgl.ZcglAssoZcgxMapper"> <!-- 根据类别选择删除资产分类名 --> <delete id="deleteUpid" parameterType="java.lang.Integer"> DELETE FROM zcgl_asso_zcgx WHERE id IN ( SELECT id FROM ( SELECT id FROM zcgl_asso_zcgx WHERE FIND_IN_SET(id, queryDetails(#{id} )) ) b ) </delete> <!-- <insert id="insert" useGeneratedKeys="true" keyColumn="id" parameterType="cn.timer.api.bean.zcgl.ZcglAssoZcda"> INSERT INTO zcgl_asso_zcda <trim prefix="(" suffix=")" suffixOverrides=","> <if test ='null != zcbh'> zcbh, </if> <if test ='null != mc'> mc, </if> <if test ='null != ggxh'> ggxh, </if> <if test ='null != lb'> lb, </if> <if test ='null != jldw'> jldw, </if> <if test ='null != ztType'> zt_type, </if> <if test ='null != cs'> cs, </if> <if test ='null != tulj'> tulj, </if> <if test ='null != bzxx'> bzxx, </if> <if test ='null != lrsjTime'> lrsj_time, </if> <if test ='null != lrrid'> lrrid </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test ='null != zcbh'> #{zcbh}, </if> <if test ='null != mc'> #{mc}, </if> <if test ='null != ggxh'> #{ggxh}, </if> <if test ='null != lb'> #{lb}, </if> <if test ='null != jldw'> #{jldw}, </if> <if test ='null != ztType'> #{ztType}, </if> <if test ='null != cs'> #{cs}, </if> <if test ='null != tulj'> #{tulj}, </if> <if test ='null != bzxx'> #{bzxx}, </if> <if test ='null != lrsjTime'> #{lrsjTime}, </if> <if test ='null != lrrid'> #{lrrid} </if> </trim> </insert> <delete id="delete" > DELETE FROM zcgl_asso_zcda WHERE id = #{id} </delete> <update id="update" parameterType="cn.timer.api.bean.zcgl.ZcglAssoZcda"> UPDATE zcgl_asso_zcda <set> <if test ='null != zcbh'>zcbh = #{zcbh},</if> <if test ='null != mc'>mc = #{mc},</if> <if test ='null != ggxh'>ggxh = #{ggxh},</if> <if test ='null != lb'>lb = #{lb},</if> <if test ='null != jldw'>jldw = #{jldw},</if> <if test ='null != ztType'>zt_type = #{ztType},</if> <if test ='null != cs'>cs = #{cs},</if> <if test ='null != tulj'>tulj = #{tulj},</if> <if test ='null != bzxx'>bzxx = #{bzxx},</if> <if test ='null != lrsjTime'>lrsj_time = #{lrsjTime},</if> <if test ='null != lrrid'>lrrid = #{lrrid}</if> </set> WHERE id = #{id} </update> <select id="load" resultMap="BaseResultMap"> SELECT <include refid="Base_Column_List" /> FROM zcgl_asso_zcda WHERE id = #{id} </select> <select id="pageList" resultMap="BaseResultMap"> SELECT <include refid="Base_Column_List" /> FROM zcgl_asso_zcda LIMIT #{offset}, #{pageSize} </select> <select id="pageListCount" resultType="java.lang.Integer"> SELECT count(1) FROM zcgl_asso_zcda </select> --> </mapper>