
2 changed files with 52 additions and 0 deletions
@ -0,0 +1,48 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
<mapper namespace="com.yxt.storage.biz.storageansbill.StorageAnsBillMapper"> |
||||
|
<select id="listPage" resultType="com.yxt.storage.biz.storageansbilldetail.StorageAnsBillDetailVo"> |
||||
|
select wd.goodsSkuSid, wd.goodsSpuName, wd.goodsSkuCode, wd.goodsSkuTitle, wd.goodSpuSid |
||||
|
from storage_ans_bill_detail wd |
||||
|
<where> |
||||
|
${ew.sqlSegment} |
||||
|
</where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="listPages" resultType="com.yxt.storage.biz.storageansbill.StorageAnsBillVo"> |
||||
|
select wab.sid, |
||||
|
wab.billNo, |
||||
|
DATE_FORMAT(wab.createTime, '%Y-%m-%d') as createTime, |
||||
|
wab.createByName, |
||||
|
wab.sourceBillNo, |
||||
|
wab.busTypeValue, |
||||
|
wab.supplierName, |
||||
|
wab.contact, |
||||
|
wab.mobile, |
||||
|
DATE_FORMAT(wab.deliveryDate, '%Y-%m-%d') as deliveryDate, |
||||
|
wab.billState, |
||||
|
wab.reviewStatus, |
||||
|
wab.refuseReason |
||||
|
from storage_ans_bill wab |
||||
|
<where> |
||||
|
${ew.sqlSegment} |
||||
|
</where> |
||||
|
order by wab.id desc |
||||
|
</select> |
||||
|
|
||||
|
<select id="details" resultType="com.yxt.storage.biz.storageansbill.StorageAnsDetailsVo"> |
||||
|
select wab.billNo, |
||||
|
wab.createByName, |
||||
|
DATE_FORMAT(wab.createTime, '%Y-%m-%d') as createTime, |
||||
|
wab.sourceBillNo, |
||||
|
wab.busTypeKey, |
||||
|
wab.busTypeValue, |
||||
|
wab.supplierSid, |
||||
|
wab.supplierName, |
||||
|
DATE_FORMAT(wab.deliveryDate, '%Y-%m-%d') as deliveryDate, |
||||
|
wab.billState, |
||||
|
wab.reviewStatus |
||||
|
from storage_ans_bill wab |
||||
|
where sid = #{sid} |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,4 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
<mapper namespace="com.yxt.storage.biz.storagedistributebill.StorageDistributeBillMapper"> |
||||
|
</mapper> |
Loading…
Reference in new issue