You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.5 KiB
XML

1 year ago
<?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.ruoyi.api.mapper.BroadApiMapper">
<select id="getArea" resultMap="com.ruoyi.manage.mapper.BaseStoreMapper.BaseStoreResult">
select store_name,store_id from base_store where store_tag=2
</select>
<resultMap id="BroadCountNumberMap" type="com.ruoyi.api.domain.BroadCountNumber">
<result property="areaName" column="store_name"/>
<result property="locationCode" column="location_code"/>
<result property="countNumber" column="conum"/>
</resultMap>
<select id="getCountNumberById" resultMap="BroadCountNumberMap">
select bs.store_name, bl.location_code, count(lr.objid) as conum
from base_location bl
left join base_store bs on bs.store_id = bl.store_id
left join ledger_rfid lr on bl.location_code = lr.location_code
where stote_tag = 2
and bl.store_id = #{id}
group by bl.location_code
</select>
1 year ago
<select id="getLedgerByCode" resultMap="com.ruoyi.manage.mapper.LedgerRfidMapper.LedgerRfidResult">
select manufacturer_name, rifd_code, batch_code, create_time
from ledger_rfid lr
left join base_manufacturer bm on lr.manufacturer_id = bm.manufacturer_id
where is_scrap = 1
and location_code = #{locationCode}
1 year ago
</select>
1 year ago
</mapper>