| | |
| | | delete from pr_device |
| | | where batch_id = #{batchId,jdbcType=BIGINT} |
| | | </delete> |
| | | <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.dy.pmsGlobal.pojoPr.PrDevice" useGeneratedKeys="true"> |
| | | <insert id="insert" parameterType="com.dy.pmsGlobal.pojoPr.PrDevice"> |
| | | insert into pr_device |
| | | ( id,pro_id,batch_id |
| | | ,device_no,status) |
| | | values (#{id,jdbcType=BIGINT},#{proId,jdbcType=BIGINT},#{batchId,jdbcType=BIGINT} |
| | | ,#{deviceNo,jdbcType=BIGINT},#{status,jdbcType=TINYINT}) |
| | | </insert> |
| | | <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.dy.pmsGlobal.pojoPr.PrDevice" useGeneratedKeys="true"> |
| | | <insert id="insertSelective" parameterType="com.dy.pmsGlobal.pojoPr.PrDevice"> |
| | | insert into pr_device |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |