电商数据,新增是否上传照片以及需求方字段存值展示,打印
This commit is contained in:
@@ -44,6 +44,8 @@
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="isUploadPhoto" column="is_upload_photo"/>
|
||||
<result property="demandDeptName" column="demand_dept_name"/>
|
||||
</resultMap>
|
||||
|
||||
<!-- ==================== Base Select ==================== -->
|
||||
@@ -72,7 +74,7 @@
|
||||
rb.create_time,
|
||||
rb.update_by,
|
||||
rb.update_time,
|
||||
|
||||
rb.is_upload_photo,
|
||||
mt.type_name AS wl_type_name,
|
||||
COALESCE(sit.type_name, sot.type_name) AS operation_type_name,
|
||||
su.nick_name AS operator_name,
|
||||
@@ -199,7 +201,9 @@
|
||||
create_time,
|
||||
update_by,
|
||||
update_time,
|
||||
is_delete
|
||||
is_delete,
|
||||
is_upload_photo,
|
||||
demand_dept_name
|
||||
FROM rk_bill
|
||||
WHERE bill_no = #{billNo}
|
||||
AND (is_delete = '0' OR is_delete IS NULL)
|
||||
@@ -229,7 +233,9 @@
|
||||
remark,
|
||||
create_by,
|
||||
create_time,
|
||||
is_delete
|
||||
is_delete,
|
||||
is_upload_photo,
|
||||
demand_dept_name
|
||||
) VALUES (
|
||||
#{billNo},
|
||||
#{bizType},
|
||||
@@ -248,7 +254,9 @@
|
||||
#{remark},
|
||||
#{createBy},
|
||||
#{createTime},
|
||||
#{isDelete}
|
||||
#{isDelete},
|
||||
#{isUploadPhoto},
|
||||
#{demandDeptName}
|
||||
)
|
||||
</insert>
|
||||
|
||||
@@ -272,6 +280,8 @@
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="isDelivery != null and isDelivery != ''">is_delivery = #{isDelivery},</if>
|
||||
<if test="isDelete != null and isDelete != ''">is_delete = #{isDelete},</if>
|
||||
<if test="isUploadPhoto != null ">is_upload_photo = #{isUploadPhoto},</if>
|
||||
<if test="demandDeptName != null and demandDeptName != ''">demand_dept_name = #{demandDeptName},</if>
|
||||
</trim>
|
||||
WHERE id = #{id}
|
||||
</update>
|
||||
|
||||
@@ -68,6 +68,8 @@
|
||||
<result property="isUpdate" column="is_update"/>
|
||||
<result property="scene" column="scene"/>
|
||||
<result property="sceneName" column="sceneName"/>
|
||||
<result property="isUploadPhoto" column="is_upload_photo"/>
|
||||
<result property="demandDeptName" column="demand_dept_name"/>
|
||||
</resultMap>
|
||||
|
||||
<!-- ========================= 公共查询 SQL(联表完整版) ========================= -->
|
||||
@@ -275,6 +277,9 @@
|
||||
<if test="endDate != null">
|
||||
AND ri.operation_time <= #{endDate}
|
||||
</if>
|
||||
<if test="remark != null and remark != ''">
|
||||
AND ri.remark LIKE CONCAT('%', #{remark}, '%')
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
@@ -309,7 +314,7 @@
|
||||
is_delivery,
|
||||
fycde_1, fycde_2,
|
||||
is_update,
|
||||
create_by, create_time, is_delete,scene
|
||||
create_by, create_time, is_delete,scene,is_upload_photo,demand_dept_name
|
||||
)
|
||||
VALUES (
|
||||
#{operationType}, #{bizType}, #{wlType}, #{cangku}, #{operationTime}, #{operator},
|
||||
@@ -327,7 +332,7 @@
|
||||
#{isDelivery},
|
||||
#{fycde1}, #{fycde2},
|
||||
#{isUpdate},
|
||||
#{createBy}, #{createTime}, #{isDelete},#{scene}
|
||||
#{createBy}, #{createTime}, #{isDelete},#{scene},#{isUploadPhoto},#{demandDeptName}
|
||||
)
|
||||
</insert>
|
||||
|
||||
@@ -383,7 +388,9 @@
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="isDelete != null">is_delete = #{isDelete},</if>
|
||||
<if test="scene != null">scene = #{scene}</if>
|
||||
<if test="scene != null">scene = #{scene},</if>
|
||||
<if test="isUploadPhoto != null">is_upload_photo = #{isUploadPhoto},</if>
|
||||
<if test="demandDeptName != null">demand_dept_name = #{demandDeptName},</if>
|
||||
</trim>
|
||||
WHERE id = #{id}
|
||||
</update>
|
||||
@@ -691,6 +698,9 @@
|
||||
<if test="isDelivery != null">
|
||||
is_delivery = #{isDelivery},
|
||||
</if>
|
||||
<if test="isUploadPhoto != null">
|
||||
is_upload_photo = #{isUploadPhoto},
|
||||
</if>
|
||||
</set>
|
||||
WHERE bill_no = #{billNo}
|
||||
</update>
|
||||
|
||||
@@ -86,6 +86,8 @@
|
||||
<result property="operatorName" column="operatorName"/>
|
||||
<result property="parentWarehouseName" column="parentWarehouseName"/>
|
||||
<result property="warehouseName" column="warehouseName"/>
|
||||
<result property="isUploadPhoto" column="is_upload_photo"/>
|
||||
<result property="demandDeptName" column="demand_dept_name"/>
|
||||
</resultMap>
|
||||
|
||||
<!-- ===================== 查询字段(统一视图) ===================== -->
|
||||
@@ -404,7 +406,9 @@
|
||||
create_time,
|
||||
update_by,
|
||||
update_time,
|
||||
is_delete
|
||||
is_delete,
|
||||
is_upload_photo,
|
||||
demand_dept_name
|
||||
)
|
||||
VALUES (
|
||||
|
||||
@@ -471,7 +475,9 @@
|
||||
#{createTime},
|
||||
#{updateBy},
|
||||
#{updateTime},
|
||||
#{isDelete}
|
||||
#{isDelete},
|
||||
#{isUploadPhoto},
|
||||
#{demandDeptName}
|
||||
)
|
||||
</insert>
|
||||
|
||||
@@ -542,6 +548,8 @@
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="isDelete != null">is_delete = #{isDelete},</if>
|
||||
<if test="isUploadPhoto != null">is_upload_photo = #{isUploadPhoto},</if>
|
||||
<if test="demandDeptName != null">demand_dept_name = #{demandDeptName},</if>
|
||||
</trim>
|
||||
WHERE id = #{id}
|
||||
</update>
|
||||
@@ -840,6 +848,9 @@
|
||||
<if test="endDate != null">
|
||||
AND rr.operation_time < DATE_ADD(#{endDate}, INTERVAL 1 DAY)
|
||||
</if>
|
||||
<if test="remark != null and remark != ''">
|
||||
AND rr.remark LIKE CONCAT('%', #{remark}, '%')
|
||||
</if>
|
||||
</where>
|
||||
|
||||
</select>
|
||||
@@ -930,7 +941,9 @@
|
||||
<if test="isDelivery != null">
|
||||
is_delivery = #{isDelivery},
|
||||
</if>
|
||||
|
||||
<if test="isUploadPhoto != null">
|
||||
is_upload_photo = #{isUploadPhoto},
|
||||
</if>
|
||||
update_time = NOW()
|
||||
</set>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user