|
@@ -1,5 +1,11 @@
|
|
|
<?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="org.jeecg.modules.cost.mapper.SyCostAllocationMapper">
|
|
|
-
|
|
|
+ <select id="queryByFabric" resultType="String">
|
|
|
+ select JSON_EXTRACT(JSON_EXTRACT(r.content,"$**.fabricOMOrderList1"),"$**.fabricMoOrderRKList") from sy_fabric_loss_report r
|
|
|
+ where plan_code= #{planCode}
|
|
|
+ union all
|
|
|
+ select JSON_EXTRACT(JSON_EXTRACT(r.content,"$**.fabricOMOrderList2"),"$**.fabricMoOrderRKList") from sy_fabric_loss_report r
|
|
|
+ where plan_code= #{planCode}
|
|
|
+ </select>
|
|
|
</mapper>
|