| | |
| | | <if test="content != null and content != '' "> |
| | | content like concat('%', #{content}, '%') and |
| | | </if> |
| | | <if test="dt != null and dt != '' "> |
| | | <if test="dt != null"> |
| | | DATE_FORMAT(dt, '%Y-%m-%d') = #{dt,jdbcType=TIMESTAMP} and |
| | | </if> |
| | | <if test="ip != null and ip != '' "> |
| | |
| | | <if test="content != null and content != '' "> |
| | | content like concat('%', #{content}, '%') and |
| | | </if> |
| | | <if test="dt != null and dt != '' "> |
| | | <if test="dt != null"> |
| | | DATE_FORMAT(dt, '%Y-%m-%d') = #{dt,jdbcType=TIMESTAMP} and |
| | | </if> |
| | | <if test="ip != null and ip != '' "> |
| | |
| | | <if test="disabled != null"> |
| | | r.disabled =#{disabled,jdbcType=BOOLEAN} and |
| | | </if> |
| | | <if test="dt != null and dt != ''"> |
| | | <if test="dt != null"> |
| | | DATE_FORMAT(r.dt, '%Y-%m-%d') = #{dt,jdbcType=TIMESTAMP} |
| | | </if> |
| | | </trim> |
| | |
| | | <if test="disabled != null"> |
| | | r.disabled =#{disabled,jdbcType=BOOLEAN} and |
| | | </if> |
| | | <if test="dt != null and dt != ''"> |
| | | <if test="dt != null"> |
| | | DATE_FORMAT(r.dt, '%Y-%m-%d') = #{dt,jdbcType=TIMESTAMP} |
| | | </if> |
| | | </trim> |
| | |
| | | <if test="filePath!= null and filePath !=''"> |
| | | file_path, |
| | | </if> |
| | | <if test="dt != null and dt !=''"> |
| | | <if test="dt != null"> |
| | | dt, |
| | | </if> |
| | | </trim> |
| | |
| | | <if test="filePath!= null and filePath !=''"> |
| | | #{filePath}, |
| | | </if> |
| | | <if test="dt != null and dt !=''"> |
| | | <if test="dt != null"> |
| | | #{dt}, |
| | | </if> |
| | | </trim> |
| | |
| | | <if test="filePath!= null and filePath !=''"> |
| | | file_path = #{filePath}, |
| | | </if> |
| | | <if test="dt != null and dt !=''"> |
| | | <if test="dt != null"> |
| | | dt = #{dt}, |
| | | </if> |
| | | </set> |
| | |
| | | <if test="deleted != null"> |
| | | deleted, |
| | | </if> |
| | | <if test="dt != null and dt !=''"> |
| | | <if test="dt != null"> |
| | | dt, |
| | | </if> |
| | | <if test="remark != null and remark !=''"> |
| | |
| | | <if test="deleted != null"> |
| | | #{deleted,jdbcType=VARCHAR }, |
| | | </if> |
| | | <if test="dt != null and dt !=''"> |
| | | <if test="dt != null"> |
| | | #{dt,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="remark != null and remark !=''"> |
| | |
| | | <if test="dMobile != null and dMobile !=''"> |
| | | d_mobile = #{dMobile,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="dt != null and dt !=''"> |
| | | <if test="dt != null"> |
| | | dt = #{dt,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="remark != null and remark !=''"> |
| | |
| | | <if test="endDate != null and endDate !=''">end_date,</if> |
| | | <if test="deleted != null">deleted,</if> |
| | | <if test="content != null and content !=''">content,</if> |
| | | <if test="inputNumber!= null and inputNumber !=''">input_number,</if> |
| | | <if test="outputNumber!= null and outputNumber !=''">output_number,</if> |
| | | <if test="inputNumber!= null">input_number,</if> |
| | | <if test="outputNumber!= null">output_number,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if> |
| | |
| | | <if test="content != null and content !=''"> |
| | | content = #{content,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="inputNumber!= null and inputNumber !=''"> |
| | | <if test="inputNumber!= null"> |
| | | input_number = #{inputNumber,jdbcType=INTEGER}, |
| | | </if> |
| | | <if test="outputNumber!= null and outputNumber !=''"> |
| | | <if test="outputNumber!= null"> |
| | | output_number = #{outputNumber,jdbcType=INTEGER}, |
| | | </if> |
| | | </set> |
| | |
| | | <if test="batchNumber!= null">batch_number,</if> |
| | | <if test="proId != null">pro_id,</if> |
| | | <if test="creator != null and creator !=''">creator,</if> |
| | | <if test="dt != null and dt !=''">dt,</if> |
| | | <if test="dt != null">dt,</if> |
| | | <if test="remark != null and remark !=''">remark,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | |
| | | <if test="batchNumber!= null">#{batchNumber,jdbcType=INTEGER},</if> |
| | | <if test="proId != null">#{proId,jdbcType=BIGINT},</if> |
| | | <if test="creator != null and creator !=''">#{creator,jdbcType=VARCHAR},</if> |
| | | <if test="dt != null and dt !=''">#{dt,jdbcType=TIMESTAMP},</if> |
| | | <if test="dt != null">#{dt,jdbcType=TIMESTAMP},</if> |
| | | <if test="remark != null and remark !=''">#{remark,jdbcType=VARCHAR},</if> |
| | | </trim> |
| | | </insert> |
| | |
| | | <if test="creator != null and creator !=''"> |
| | | creator = #{creator,jdbcType=VARCHAR} and |
| | | </if> |
| | | <if test="dt != null and dt !=''"> |
| | | <if test="dt != null"> |
| | | dt = #{dt,jdbcType=TIMESTAMP} and |
| | | </if> |
| | | <if test="remark != null and remark !=''"> |
| | |
| | | <if test="creator != null and creator !=''"> |
| | | creator = #{creator,jdbcType=VARCHAR} and |
| | | </if> |
| | | <if test="dt != null and dt !=''"> |
| | | <if test="dt != null"> |
| | | dt = #{dt,jdbcType=TIMESTAMP} and |
| | | </if> |
| | | <if test="remark != null and remark !=''"> |
| | |
| | | <if test="name != null and name !=''">name,</if> |
| | | <if test="status != null">status,</if> |
| | | <if test="creator != null and creator !=''">creator,</if> |
| | | <if test="dt != null and dt !=''">dt,</if> |
| | | <if test="dt != null">dt,</if> |
| | | <if test="startDate != null and startDate !=''">start_date,</if> |
| | | <if test="endDate != null and endDate !=''">end_date,</if> |
| | | <if test="deleted != null">deleted,</if> |
| | |
| | | <if test="name != null and name !=''">#{name,jdbcType=VARCHAR},</if> |
| | | <if test="status != null">#{status,jdbcType=TINYINT},</if> |
| | | <if test="creator != null and creator !=''">#{creator,jdbcType=VARCHAR},</if> |
| | | <if test="dt != null and dt !=''">#{dt,jdbcType=TIMESTAMP},</if> |
| | | <if test="dt != null">#{dt,jdbcType=TIMESTAMP},</if> |
| | | <if test="startDate != null and startDate !=''">#{startDate,jdbcType=VARCHAR},</if> |
| | | <if test="endDate != null and endDate !=''">#{endDate,jdbcType=VARCHAR},</if> |
| | | <if test="deleted != null">#{deleted,jdbcType=TINYINT},</if> |
| | |
| | | <if test="creator != null and creator !=''"> |
| | | creator = #{creator,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="dt != null and dt !=''"> |
| | | <if test="dt != null"> |
| | | dt = #{dt,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="startDate != null and startDate !=''"> |
| | |
| | | <if test="deliveryDate!= null and deliveryDate !=''">delivery_date,</if> |
| | | <if test="status != null">status,</if> |
| | | <if test="creator != null and creator !=''">creator,</if> |
| | | <if test="dt != null and dt !=''">dt,</if> |
| | | <if test="dt != null">dt,</if> |
| | | <if test="deleted != null">deleted,</if> |
| | | <if test="remark != null and remark !=''">remark,</if> |
| | | </trim> |
| | |
| | | <if test="deliveryDate!= null and deliveryDate !=''">#{deliveryDate,jdbcType=VARCHAR},</if> |
| | | <if test="status != null">#{status,jdbcType=TINYINT},</if> |
| | | <if test="creator != null and creator !=''">#{creator,jdbcType=VARCHAR},</if> |
| | | <if test="dt != null and dt !=''">#{dt,jdbcType=TIMESTAMP},</if> |
| | | <if test="dt != null">#{dt,jdbcType=TIMESTAMP},</if> |
| | | <if test="deleted != null">#{deleted,jdbcType=TINYINT},</if> |
| | | <if test="remark != null and remark !=''">#{remark,jdbcType=VARCHAR},</if> |
| | | </trim> |
| | |
| | | <if test="creator != null and creator !=''"> |
| | | creator = #{creator,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="dt != null and dt !=''"> |
| | | <if test="dt != null"> |
| | | dt = #{dt,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="deleted != null"> |
| | |
| | | <if test="proId != null">pro_id,</if> |
| | | <if test="name != null and name !=''">name,</if> |
| | | <if test="creator != null and creator !=''">creator,</if> |
| | | <if test="dt != null and dt !=''">dt,</if> |
| | | <if test="dt != null">dt,</if> |
| | | <if test="disabled != null">disabled,</if> |
| | | <if test="deleted != null">deleted,</if> |
| | | <if test="remark != null and remark !=''">remark,</if> |
| | |
| | | <if test="proId != null">#{proId,jdbcType=BIGINT},</if> |
| | | <if test="name != null and name !=''">#{name,jdbcType=VARCHAR},</if> |
| | | <if test="creator != null and creator !=''">#{creator,jdbcType=VARCHAR},</if> |
| | | <if test="dt != null and dt !=''">#{dt,jdbcType=TIMESTAMP},</if> |
| | | <if test="dt != null">#{dt,jdbcType=TIMESTAMP},</if> |
| | | <if test="disabled != null">#{disabled,jdbcType=TINYINT},</if> |
| | | <if test="deleted != null">#{deleted,jdbcType=TINYINT},</if> |
| | | <if test="remark != null and remark !=''">#{remark,jdbcType=VARCHAR},</if> |
| | |
| | | <if test="creator != null and creator !=''"> |
| | | creator = #{creator,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="dt != null and dt !=''"> |
| | | <if test="dt != null"> |
| | | dt = #{dt,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="disabled != null"> |
| | |
| | | <if test="deleted != null"> |
| | | deleted, |
| | | </if> |
| | | <if test="dt != null and dt !=''"> |
| | | <if test="dt != null"> |
| | | dt, |
| | | </if> |
| | | </trim> |
| | |
| | | <if test="deleted != null"> |
| | | #{deleted,jdbcType=TINYINT}, |
| | | </if> |
| | | <if test="dt != null and dt !=''"> |
| | | <if test="dt != null"> |
| | | #{dt,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | </trim> |
| | |
| | | where user_id = #{userId,jdbcType=BIGINT} |
| | | and station_id = #{stationId,jdbcType=BIGINT} |
| | | <choose> |
| | | <when test="planId != null and planId !=''"> |
| | | <when test="planId != null"> |
| | | and plan_id = #{planId,jdbcType=BIGINT} |
| | | </when> |
| | | <otherwise> |
| | |
| | | </otherwise> |
| | | </choose> |
| | | <choose> |
| | | <when test="nodeId != null and nodeId !=''"> |
| | | <when test="nodeId != null"> |
| | | and node_id = #{nodeId,jdbcType=BIGINT} |
| | | </when> |
| | | <otherwise> |
| | |
| | | <if test="id != null">id,</if> |
| | | <if test="userId != null">user_id,</if> |
| | | <if test="planId != null">plan_id,</if> |
| | | <if test="dt != null and dt !=''">dt,</if> |
| | | <if test="dt != null">dt,</if> |
| | | <if test="status != null">status,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if> |
| | | <if test="userId != null">#{userId,jdbcType=BIGINT},</if> |
| | | <if test="planId != null">#{planId,jdbcType=BIGINT},</if> |
| | | <if test="dt != null and dt !=''">#{dt,jdbcType=TIMESTAMP},</if> |
| | | <if test="dt != null">#{dt,jdbcType=TIMESTAMP},</if> |
| | | <if test="status != null">#{status,jdbcType=TINYINT},</if> |
| | | </trim> |
| | | </insert> |
| | |
| | | <if test="planId != null"> |
| | | plan_id = #{planId,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="dt != null and dt !=''"> |
| | | <if test="dt != null"> |
| | | dt = #{dt,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="status != null"> |
| | |
| | | <if test="productId != null">#{productId,jdbcType=BIGINT},</if> |
| | | <if test="productName != null and productName !=''">#{productName,jdbcType=VARCHAR},</if> |
| | | <if test="productNo!= null and productNo !=''">#{productNo,jdbcType=VARCHAR},</if> |
| | | <if test="createTime != null and createTime !=''">#{createTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="createBy != null">#{createBy,jdbcType=BIGINT},</if> |
| | | </trim> |
| | | </insert> |
| | |
| | | <if test="productNo!= null and productNo !=''"> |
| | | product_no = #{productNo,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="createTime != null and createTime !=''"> |
| | | <if test="createTime != null"> |
| | | create_time = #{createTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="createBy != null"> |