Commit 313dafc0 authored by chew's avatar chew

增加用户关联

parent e0530246
......@@ -44,7 +44,7 @@ public class ScanController {
}
@PostMapping("/manual/update")
public Result<List<ManualTallyUpdateResp>> manualTallyUpdate(@RequestBody @Valid List<ManualTallyUpdateReq> reqList) {
public Result<List<ManualTallyUpdateResp>> manualTallyUpdate(@RequestBody @Valid List<ManualTallyUpdateReq> reqList , @RequestAttribute("userId") String userId) {
if (CollectionUtils.isEmpty(reqList)) {
return Result.success(Collections.emptyList());
}
......
......@@ -61,7 +61,7 @@
h.ORDERTYPE AS orderType,
h.REFERENCE5 AS reference5,
h.TEMPERATURECLASS AS temperatureclass,
h.CUSTOMER_ADDR AS temperatureclass,
h.CUSTOMER_ADDR AS customerAddr,
d.LINE_NO AS lineNo,
d.ITEM_CODE AS itemCode,
d.ITEM_NAME AS itemName,
......@@ -80,23 +80,6 @@
ON h.ORGANIZATIONID = d.ORGANIZATIONID
AND h.ORDER_NO = d.ORDER_NO
WHERE h.CUSTOMER_ADDR = #{customerAddr,jdbcType=VARCHAR}
-- AND h.scan_user = #{scanUser, jdbcType=VARCHAR}
AND NVL(d.TALLY_QTY, 0) <![CDATA[ < ]]> NVL(d.ORDER_QTY, 0)
<!-- <if test="orderType != null and orderType != ''">-->
<!-- AND (NVL(h.ORDERTYPE, '') = ''-->
<!-- OR INSTR(',' || #{orderType, jdbcType=VARCHAR} || ',', ',' || h.ORDERTYPE || ',') <![CDATA[ > ]]> 0)-->
<!-- </if>-->
<!-- <if test="reference5 != null and reference5 != ''">-->
<!-- AND (NVL(h.REFERENCE5, '') = ''-->
<!-- OR INSTR(',' || #{reference5, jdbcType=VARCHAR} || ',', ',' || h.REFERENCE5 || ',') <![CDATA[ > ]]> 0)-->
<!-- </if>-->
<!-- <if test="temperatureclass != null and temperatureclass != ''">-->
<!-- AND (NVL(h.TEMPERATURECLASS, '') = ''-->
<!-- OR INSTR(',' || #{temperatureclass, jdbcType=VARCHAR} || ',', ',' || h.TEMPERATURECLASS || ',') <![CDATA[ > ]]> 0)-->
<!-- </if>-->
AND EXISTS (SELECT 1 FROM TMP_OUTBOUND_SCAN_PERMISSION p
WHERE 1=1
<if test="scanUser != null and scanUser != ''">
......@@ -107,6 +90,7 @@
AND (h.ORDER_NO LIKE p.ORDER_PREFIX || '%'
OR h.CUSTOMER_ORDER_NO LIKE p.ORDER_PREFIX || '%'
OR h.EDI_KEY LIKE p.ORDER_PREFIX || '%') ) ) )
AND NVL(d.TALLY_QTY, 0) <![CDATA[ < ]]> NVL(d.ORDER_QTY, 0)
ORDER BY h.ORDER_NO, d.LINE_NO
</select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment