|
@@ -3,7 +3,9 @@
|
|
<mapper namespace="com.steerinfo.dil.mapper.ShipDynamicsMapper">
|
|
<mapper namespace="com.steerinfo.dil.mapper.ShipDynamicsMapper">
|
|
<!-- 获取船舶动态表数据 -->
|
|
<!-- 获取船舶动态表数据 -->
|
|
<select id="selectAll" resultType="java.util.Map" parameterType="java.util.Map">
|
|
<select id="selectAll" resultType="java.util.Map" parameterType="java.util.Map">
|
|
- select db.BATCH_ID "batchId",
|
|
|
|
|
|
+ SELECT * FROM (
|
|
|
|
+ select DISTINCT
|
|
|
|
+ db.BATCH_ID "batchId",
|
|
DBI2.BATCH_INFACOTRY_ID "batchInfacoryId",
|
|
DBI2.BATCH_INFACOTRY_ID "batchInfacoryId",
|
|
db.result_foreign_ship_name "shipName",
|
|
db.result_foreign_ship_name "shipName",
|
|
rm.material_name "materialName",
|
|
rm.material_name "materialName",
|
|
@@ -57,7 +59,8 @@
|
|
<if test="con!=null and con!=''.toString()">
|
|
<if test="con!=null and con!=''.toString()">
|
|
and (instr(RMT.MATERIAL_TYPE_NAME,#{con}) > 0 or instr(rc.capacity_number,#{con}) > 0 or instr(rm.material_name,#{con}) > 0 or instr(db.result_foreign_ship_name,#{con}) >0 )
|
|
and (instr(RMT.MATERIAL_TYPE_NAME,#{con}) > 0 or instr(rc.capacity_number,#{con}) > 0 or instr(rm.material_name,#{con}) > 0 or instr(db.result_foreign_ship_name,#{con}) >0 )
|
|
</if>
|
|
</if>
|
|
- Order By ADN.INSERT_TIME DESC
|
|
|
|
|
|
+ )
|
|
|
|
+ Order By "batchInfacoryId" DESC
|
|
</select>
|
|
</select>
|
|
<select id="selectByshipName" resultType="java.util.Map" parameterType="java.util.Map">
|
|
<select id="selectByshipName" resultType="java.util.Map" parameterType="java.util.Map">
|
|
select sd.GM_TONNAGE as "tonnage",
|
|
select sd.GM_TONNAGE as "tonnage",
|