新购测试问题修改
This commit is contained in:
parent
9275d57f12
commit
78f99ec50d
|
|
@ -97,7 +97,6 @@ public class PurchaseInput extends BaseEntity
|
|||
|
||||
/** 不通过原因 */
|
||||
@ApiModelProperty(value = "不通过原因")
|
||||
@Excel(name = "不通过原因")
|
||||
private String reason;
|
||||
|
||||
/** 数据所属组织 */
|
||||
|
|
|
|||
|
|
@ -51,8 +51,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
)
|
||||
</if>
|
||||
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
|
||||
AND (pci.purchase_time BETWEEN #{startTime} AND #{endTime})
|
||||
or (pci.arrival_time BETWEEN #{startTime} AND #{endTime})
|
||||
AND (pci.purchase_time BETWEEN #{startTime} AND #{endTime}
|
||||
or pci.arrival_time BETWEEN #{startTime} AND #{endTime})
|
||||
</if>
|
||||
GROUP BY pcd.task_id
|
||||
order by pci.create_time desc
|
||||
|
|
@ -215,10 +215,11 @@ WHERE ma_machine.ma_code =
|
|||
LEFT JOIN ma_type mt2 on mt2.type_id=mt.parent_id
|
||||
WHERE pcd.task_id = pci.task_id
|
||||
)
|
||||
</if>
|
||||
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
|
||||
AND (pci.purchase_time BETWEEN #{startTime} AND #{endTime})
|
||||
or (pci.arrival_time BETWEEN #{startTime} AND #{endTime})
|
||||
</if></if>
|
||||
AND (pci.purchase_time BETWEEN #{startTime} AND #{endTime}
|
||||
or pci.arrival_time BETWEEN #{startTime} AND #{endTime})
|
||||
</if>
|
||||
order by pci.id desc
|
||||
</select>
|
||||
<select id="exportList" resultType="com.bonus.sgzb.material.domain.PurchaseCheckInfo">
|
||||
|
|
@ -226,7 +227,7 @@ WHERE ma_machine.ma_code =
|
|||
tk.CODE,
|
||||
pci.purchase_time as purchaseTime,
|
||||
pci.arrival_time as arrivalTime,
|
||||
su.user_name purchaserName,
|
||||
su.nick_name purchaserName,
|
||||
mt1.type_name as purchasingTypeName,
|
||||
mt.type_name AS purchasingTypeCode,
|
||||
mt.manage_type as manageType,
|
||||
|
|
@ -263,22 +264,43 @@ WHERE ma_machine.ma_code =
|
|||
su.user_name purchaserName,
|
||||
mt1.type_name as purchasingTypeName,
|
||||
mt.type_name as purchasingTypeCode,
|
||||
pcd.input_time as inputTime,
|
||||
su.user_name as inputUser,
|
||||
CASE
|
||||
pcd.input_status
|
||||
WHEN 0 THEN
|
||||
''
|
||||
WHEN 1 THEN
|
||||
tk.update_time ELSE ''
|
||||
END inputTime,
|
||||
CASE
|
||||
pcd.input_status
|
||||
WHEN 0 THEN
|
||||
''
|
||||
WHEN 1 THEN
|
||||
sus.user_name ELSE ''
|
||||
END inputUser,
|
||||
pcd.input_status as inputStatus
|
||||
FROM purchase_check_details pcd
|
||||
LEFT JOIN purchase_check_info pci on pci.task_id = pcd.task_id
|
||||
left join tm_task tk on pcd.task_id = tk.task_id
|
||||
LEFT JOIN sys_user sus ON tk.update_by = sus.user_id
|
||||
left join sys_user su on pci.purchaser = su.user_id
|
||||
left join ma_type mt on pcd.type_id = mt.type_id
|
||||
left join ma_type mt1 on mt.parent_id = mt1.type_id
|
||||
where task_type = 23
|
||||
and tk.task_status in (26, 28)
|
||||
<if test="taskStatus != null">and tk.task_status = #{taskStatus}</if>
|
||||
<if test="taskStatus == null">and tk.task_status in (28,105,107,123)</if>
|
||||
<if test="keyWord != null and keyWord != ''">and tk.code like concat('%',#{keyWord},'%')</if>
|
||||
<if test="purchaseTime != null and purchaseTime != ''">and pci.purchase_time = #{purchaseTime}</if>
|
||||
<if test="arrivalTime != null and arrivalTime != ''">and pci.arrival_time = #{arrivalTime}</if>
|
||||
<if test="purchaser != null ">and pci.purchaser = #{purchaser}</if>
|
||||
<if test="companyId != null ">and pci.company_id = #{companyId}</if>
|
||||
<if test="typeId != null">AND #{typeId} IN (SELECT mt2.type_id
|
||||
FROM purchase_check_details pcd
|
||||
LEFT JOIN ma_type mt on mt.type_id=pcd.type_id
|
||||
LEFT JOIN ma_type mt2 on mt2.type_id=mt.parent_id
|
||||
WHERE pcd.task_id = pci.task_id
|
||||
)
|
||||
</if>
|
||||
ORDER BY pcd.task_id desc
|
||||
</select>
|
||||
<select id="selectPutInListExamine" resultType="com.bonus.sgzb.material.domain.PurchaseCheckInfo">
|
||||
|
|
|
|||
|
|
@ -299,8 +299,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
)
|
||||
</if>
|
||||
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
|
||||
AND (pci.purchase_time BETWEEN #{startTime} AND #{endTime})
|
||||
or (pci.arrival_time BETWEEN #{startTime} AND #{endTime})
|
||||
AND (pci.purchase_time BETWEEN #{startTime} AND #{endTime}
|
||||
or pci.arrival_time BETWEEN #{startTime} AND #{endTime})
|
||||
</if>
|
||||
GROUP BY pcd.task_id
|
||||
order by pci.id desc
|
||||
|
|
@ -402,6 +402,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
and pcd.`status`!=3
|
||||
<if test="dictName != null and dictName != ''">
|
||||
and (mt.type_name like concat('%',#{dictName},'%') or
|
||||
pmi.ma_code like concat('%',#{dictName},'%') or
|
||||
mt1.type_name like concat('%',#{dictName},'%'))
|
||||
</if>
|
||||
order by status
|
||||
|
|
|
|||
|
|
@ -389,6 +389,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
AND pcd.`status` != 7
|
||||
<if test="dictName != null and dictName != ''">
|
||||
and (mt.type_name like concat('%',#{dictName},'%') or
|
||||
pmi.ma_code like concat('%',#{dictName},'%') or
|
||||
mt1.type_name like concat('%',#{dictName},'%'))
|
||||
</if>
|
||||
ORDER BY
|
||||
|
|
|
|||
|
|
@ -320,12 +320,12 @@
|
|||
width="200"
|
||||
/>
|
||||
|
||||
<el-table-column
|
||||
label="不通过原因"
|
||||
align="center"
|
||||
prop="remark"
|
||||
:show-overflow-tooltip="true"
|
||||
/>
|
||||
<!-- <el-table-column-->
|
||||
<!-- label="不通过原因"-->
|
||||
<!-- align="center"-->
|
||||
<!-- prop="remark"-->
|
||||
<!-- :show-overflow-tooltip="true"-->
|
||||
<!-- />-->
|
||||
<el-table-column label="状态" align="center" prop="status">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.status == '0'">待审核</span>
|
||||
|
|
|
|||
|
|
@ -133,13 +133,13 @@
|
|||
<el-table-column
|
||||
label="入库人员"
|
||||
align="center"
|
||||
prop="updateBy"
|
||||
prop="inputUser"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
<el-table-column
|
||||
label="入库时间"
|
||||
align="center"
|
||||
prop="updateTime"
|
||||
prop="inputTime"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
<el-table-column
|
||||
|
|
|
|||
Loading…
Reference in New Issue