Commit 5eb20660 by 胡懿

修复台账中查询二维码功能

parent 0774eee2
...@@ -236,5 +236,28 @@ ...@@ -236,5 +236,28 @@
<select id="findUniqueByProperty" resultType="LedgerInfo" statementType="STATEMENT"> <select id="findUniqueByProperty" resultType="LedgerInfo" statementType="STATEMENT">
select * FROM t_wh_ledger_info where ${propertyName} = '${value}' select * FROM t_wh_ledger_info where ${propertyName} = '${value}'
</select> </select>
<select id="findListByQrIdAndCode" resultType="LedgerInfo" >
SELECT
<include refid="ledgerInfoColumns"/>
FROM t_wh_ledger_info a
<include refid="ledgerInfoJoins"/>
<where>
a.del_flag = #{DEL_FLAG_NORMAL}
${dataScope}
<if test="code != null and code != ''">
AND a.code = #{code}
</if>
<if test="qr != null and qr.id != null and qr.id != ''">
AND a.qr_id = #{qr.id}
</if>
</where>
<choose>
<when test="page !=null and page.orderBy != null and page.orderBy != ''">
ORDER BY ${page.orderBy}
</when>
<otherwise>
ORDER BY a.create_date ASC
</otherwise>
</choose>
</select>
</mapper> </mapper>
\ No newline at end of file
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