Compare commits

..

No commits in common. "c1b5af636470642a65c3e404add3f471551efa27" and "d535c0b7a6bf853a648f3e5bc0109286624a206b" have entirely different histories.

3 changed files with 10 additions and 24 deletions

View File

@ -194,7 +194,6 @@ public class OilOrderServiceImpl extends ServiceImpl<OilOrderMapper, OilOrder> i
@Resource
OilNumberMapper oilNumberMapper;
@Autowired
@Lazy
private PayCenterService payCenterService;
@Override

View File

@ -158,27 +158,16 @@
<select id="cashRegisterList" resultType="com.fuint.business.petrolStationManagement.vo.OilCashRegisterVo">
SELECT
o1.*,
-- 油罐id
o3.id AS oilTankId,
-- 油号 id
o2.oil_name AS oilNameId,
o2.oil_type AS oilType,
o2.oil_price AS oilPrice,
o3.tank_name
FROM
oil_gun o1
-- 通过 油枪 找 油价
LEFT JOIN oil_number o2 ON o1.number_id = o2.number_id
-- 通过 油枪 找 油罐
LEFT JOIN oil_tank o3 on o1.tank_id = o3.id
-- 通过 油价 找 油号
LEFT JOIN oil_name o4 on o4.id = o2.oil_name
select zong.*, o2.oil_name
FROM (SELECT o1.*,
o2.oil_name as oilNameId,
o2.oil_type as oilType,
o2.oil_price as oilPrice
FROM oil_gun o1
LEFT JOIN oil_number o2 ON o1.number_id = o2.number_id
WHERE o1.store_id = #{storeId} and o1.status = '启用' ) as zong
LEFT JOIN oil_name as o2 on zong.oilNameId = o2.id
WHERE
o1.store_id = #{storeId}
AND o1.STATUS = '启用'
</select>
<!-- &#45;&#45; and tank_id = #{oilGun.tankId}-->

View File

@ -20,8 +20,6 @@ public class OilCashRegisterVo extends OilGun {
* 关联表 挂牌价
*/
private BigDecimal oilPrice;
// 油号 id
private Integer oilNameId;
// 油罐id
private Integer oilTankId;
}