| | |
| | | <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.dy.pmsGlobal.pojoPlt.PltProductionLine" useGeneratedKeys="true"> |
| | | insert into plt_production_line |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null and id !=''">id,</if> |
| | | <if test="id != null">id,</if> |
| | | <if test="name != null and name !=''">name,</if> |
| | | <if test="type != null and type !=''">type,</if> |
| | | <if test="factory != null and factory !=''">factory,</if> |
| | | <if test="director != null and director !=''">director,</if> |
| | | <if test="dMobile != null and dMobile !=''">d_mobile,</if> |
| | | <if test="installTime != null and installTime !=''">install_time,</if> |
| | | <if test="deleted != null and deleted !=''">deleted,</if> |
| | | <if test="deleted != null">deleted,</if> |
| | | <if test="remark != null and remark !=''">remark,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null and id !=''">#{id,jdbcType=BIGINT},</if> |
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if> |
| | | <if test="name != null and name !=''">#{name,jdbcType=VARCHAR},</if> |
| | | <if test="type != null and type !=''">#{type,jdbcType=VARCHAR},</if> |
| | | <if test="factory != null and factory !=''">#{factory,jdbcType=VARCHAR},</if> |
| | | <if test="director != null and director !=''">#{director,jdbcType=VARCHAR},</if> |
| | | <if test="dMobile != null and dMobile !=''">#{dMobile,jdbcType=VARCHAR},</if> |
| | | <if test="installTime != null and installTime !=''">#{installTime,jdbcType=VARCHAR},</if> |
| | | <if test="deleted != null and deleted !=''">#{deleted,jdbcType=TINYINT},</if> |
| | | <if test="deleted != null">#{deleted,jdbcType=TINYINT},</if> |
| | | <if test="remark != null and remark !=''">#{remark,jdbcType=VARCHAR},</if> |
| | | </trim> |
| | | </insert> |
| | |
| | | <if test="installTime != null and installTime !=''"> |
| | | install_time = #{installTime,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="disabled != null and disabled !=''"> |
| | | <if test="disabled != null"> |
| | | disabled = #{disabled}, |
| | | </if> |
| | | <if test="deleted != null and deleted !=''"> |
| | | <if test="deleted != null"> |
| | | deleted = #{deleted,jdbcType=TINYINT}, |
| | | </if> |
| | | <if test="remark != null and remark !=''"> |
| | |
| | | </select> |
| | | <select id="selectByNameId" resultType="java.lang.Long"> |
| | | select count(1) from plt_production_line where name = #{name} and deleted != 1 |
| | | <if test="id != null and id !=''"> |
| | | <if test="id != null"> |
| | | and id != #{id} |
| | | </if> |
| | | </select> |