增加提单功能

This commit is contained in:
wuweihua
2026-11-03 17:50:35 +08:00
parent c87f49a14b
commit 98ae525403
14 changed files with 1087 additions and 0 deletions
@@ -0,0 +1,38 @@
<?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.bms.price.airbill.mapper.OracleBillAirMapper">
<select id="selectAllBillAir" resultType="java.util.HashMap" fetchSize="500">
SELECT GUID, BILL_CODE, BILL_TYPE, BL_STATUS, WARNING_STATUS, WARNING_COUNT,
START_AIRPORT, END_AIRPORT, DES_PORT, ROUTE_NAME, AIR_TYPE,
PIECE_NUMBER, VOLUME, ACTUAL_WEIGHT, ACTUAL_VOLUME, VOLUME_WEIGHT,
AIR_COMPANY, SEND_MAN_CODE, ACCEPT_MAN_CODE, DATA_FROM,
CREATE_MAN_CODE, CREATE_TIME, MODIFIER_CODE, MODIFY_TIME, REMARK,
BL_CHECK, CHECK_REMARK, BL_CONFIRM, CONFIRM_MAN_CODE, CONFIRM_TIME,
PRICE, AMOUNT, CALC_EXP, CALC_RE, PRICE_REMARK,
BAOGUAN_FEE, BAOGUAN_OTHER_FEE, STOCK_FEE, DES_PORT_AGENT_FEE,
AIR_OTHER_FEE, OTHER_FEE, COMPENSATE_REMARK, CHARGE_MAN_CODE,
AIR_NO, ACTUAL_AIR_NO, AIR_OMPANY_AGENT, DES_PORT_AGENT, BOARD_NO,
BAND_BOX_COUNT, BAND_VOLUME, BAND_BOX_WEIGHT, DIVISOR_VALUE,
FIRST_LANDING_TIME, SECOND_TAKEOFF_TIME, AIR_DELAY_TIME, TRUNK_DESTINATIONS,
BL_RETRIEVAL, RETRIEVAL_DATE, RETRIEVAL_MAN_CODE, PICK_BOX_COUNT, PICK_COUNT_REAL,
DECLARE_CODE, CLEARANCE_CODE, QINGGUAN_AGENT, CLEARANCE_OP_CODE,
STOCK_ADDR, STOCK_OUT_REMARK, DELIVER_COUNT, FIRST_DELIVER_COUNT, LAST_DELIVER_COUNT,
AC_DELIVER_DIFF, DELIVER_END_DIFF, CHECK_ORDER_COUNT, CHECK_LEAVE_COUNT, INTERNAL_CHECK_TIME,
START_TIME_PLAN, ARRIVE_TIME_PLAN, SHIPPING_DATE, START_TIME, ARRIVE_TIME,
ARRIVE_STOCK_TIME, CLEARANCE_TIME, END_OPRATE_TIME,
BL_BGFX, BGFX_TIME, UPDATE_TIME_BGFX,
BL_SJQF, SJQF_TIME, UPDATE_TIME_SJQF,
BL_SJDD, SJDD_TIME, UPDATE_TIME_SJDD,
BL_TZDC, TZDC_TIME, UPDATE_TIME_TZDC,
BL_THDC, THDC_TIME, UPDATE_TIME_THDC,
BL_QGWC, QGWC_TIME, UPDATE_TIME_QGWC,
BL_GXFC, GXFC_TIME, UPDATE_TIME_GXFC,
BL_FJH, FJH_TIME, UPDATE_TIME_FJH,
BL_TRACK_GEN_BG, BL_TRACK_GEN_BGFX, BL_TRACK_GEN_QF, BL_TRACK_GEN_DD,
BL_TRACK_GEN_QG, BL_TRACK_GEN_DC
FROM WEISHI_USER.TAB_BILL_AIR
</select>
</mapper>
@@ -0,0 +1,220 @@
<?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.bms.price.airbill.mapper.SrvBillAirSyncMapper">
<insert id="upsertBillAir">
INSERT INTO srv_bill_air (
guid, bill_code, bill_type, bl_status, warning_status, warning_count,
start_airport, end_airport, des_port, route_name, air_type,
piece_number, volume, actual_weight, actual_volume, volume_weight,
air_company, send_man_code, accept_man_code, data_from,
create_man_code, create_time, modifier_code, modify_time, remark
) VALUES
<foreach collection="list" item="it" separator=",">
(#{it.guid}, #{it.billCode}, #{it.billType}, #{it.blStatus}, #{it.warningStatus}, #{it.warningCount},
#{it.startAirport}, #{it.endAirport}, #{it.desPort}, #{it.routeName}, #{it.airType},
#{it.pieceNumber}, #{it.volume}, #{it.actualWeight}, #{it.actualVolume}, #{it.volumeWeight},
#{it.airCompany}, #{it.sendManCode}, #{it.acceptManCode}, #{it.dataFrom},
#{it.createManCode}, #{it.createTime}, #{it.modifierCode}, #{it.modifyTime}, #{it.remark})
</foreach>
ON DUPLICATE KEY UPDATE
bill_code = VALUES(bill_code),
bill_type = VALUES(bill_type),
bl_status = VALUES(bl_status),
warning_status = VALUES(warning_status),
warning_count = VALUES(warning_count),
start_airport = VALUES(start_airport),
end_airport = VALUES(end_airport),
des_port = VALUES(des_port),
route_name = VALUES(route_name),
air_type = VALUES(air_type),
piece_number = VALUES(piece_number),
volume = VALUES(volume),
actual_weight = VALUES(actual_weight),
actual_volume = VALUES(actual_volume),
volume_weight = VALUES(volume_weight),
air_company = VALUES(air_company),
send_man_code = VALUES(send_man_code),
accept_man_code = VALUES(accept_man_code),
data_from = VALUES(data_from),
create_man_code = VALUES(create_man_code),
create_time = VALUES(create_time),
modifier_code = VALUES(modifier_code),
modify_time = VALUES(modify_time),
remark = VALUES(remark)
</insert>
<insert id="upsertBillAirFinance">
INSERT INTO srv_bill_air_finance (
guid, bill_code, bl_check, check_remark, bl_confirm, confirm_man_code, confirm_time,
price, amount, calc_exp, calc_re, price_remark,
baoguan_fee, baoguan_other_fee, stock_fee, des_port_agent_fee,
air_other_fee, other_fee, compensate_remark, charge_man_code
) VALUES
<foreach collection="list" item="it" separator=",">
(#{it.guid}, #{it.billCode}, #{it.blCheck}, #{it.checkRemark}, #{it.blConfirm}, #{it.confirmManCode}, #{it.confirmTime},
#{it.price}, #{it.amount}, #{it.calcExp}, #{it.calcRe}, #{it.priceRemark},
#{it.baoguanFee}, #{it.baoguanOtherFee}, #{it.stockFee}, #{it.desPortAgentFee},
#{it.airOtherFee}, #{it.otherFee}, #{it.compensateRemark}, #{it.chargeManCode})
</foreach>
ON DUPLICATE KEY UPDATE
bill_code = VALUES(bill_code),
bl_check = VALUES(bl_check),
check_remark = VALUES(check_remark),
bl_confirm = VALUES(bl_confirm),
confirm_man_code = VALUES(confirm_man_code),
confirm_time = VALUES(confirm_time),
price = VALUES(price),
amount = VALUES(amount),
calc_exp = VALUES(calc_exp),
calc_re = VALUES(calc_re),
price_remark = VALUES(price_remark),
baoguan_fee = VALUES(baoguan_fee),
baoguan_other_fee = VALUES(baoguan_other_fee),
stock_fee = VALUES(stock_fee),
des_port_agent_fee = VALUES(des_port_agent_fee),
air_other_fee = VALUES(air_other_fee),
other_fee = VALUES(other_fee),
compensate_remark = VALUES(compensate_remark),
charge_man_code = VALUES(charge_man_code)
</insert>
<insert id="upsertBillAirFlight">
INSERT INTO srv_bill_air_flight (
guid, bill_code, air_no, actual_air_no, air_ompany_agent, des_port_agent_code,
board_no, band_box_count, band_volume, band_box_weight, divisor_value,
first_landing_time, second_takeoff_time, air_delay_time, trunk_destinations
) VALUES
<foreach collection="list" item="it" separator=",">
(#{it.guid}, #{it.billCode}, #{it.airNo}, #{it.actualAirNo}, #{it.airOmpanyAgent}, #{it.desPortAgentCode},
#{it.boardNo}, #{it.bandBoxCount}, #{it.bandVolume}, #{it.bandBoxWeight}, #{it.divisorValue},
#{it.firstLandingTime}, #{it.secondTakeoffTime}, #{it.airDelayTime}, #{it.trunkDestinations})
</foreach>
ON DUPLICATE KEY UPDATE
bill_code = VALUES(bill_code),
air_no = VALUES(air_no),
actual_air_no = VALUES(actual_air_no),
air_ompany_agent = VALUES(air_ompany_agent),
des_port_agent_code = VALUES(des_port_agent_code),
board_no = VALUES(board_no),
band_box_count = VALUES(band_box_count),
band_volume = VALUES(band_volume),
band_box_weight = VALUES(band_box_weight),
divisor_value = VALUES(divisor_value),
first_landing_time = VALUES(first_landing_time),
second_takeoff_time = VALUES(second_takeoff_time),
air_delay_time = VALUES(air_delay_time),
trunk_destinations = VALUES(trunk_destinations)
</insert>
<insert id="upsertBillAirOp">
INSERT INTO srv_bill_air_op (
guid, bill_code, bl_retrieval, retrieval_date, retrieval_man_code,
pick_box_count, pick_count_real, declare_code, clearance_code, qingguan_agent,
clearance_op_code, stock_addr, stock_out_remark, deliver_count,
first_deliver_count, last_deliver_count, ac_deliver_diff, deliver_end_diff,
check_order_count, check_leave_count, internal_check_time
) VALUES
<foreach collection="list" item="it" separator=",">
(#{it.guid}, #{it.billCode}, #{it.blRetrieval}, #{it.retrievalDate}, #{it.retrievalManCode},
#{it.pickBoxCount}, #{it.pickCountReal}, #{it.declareCode}, #{it.clearanceCode}, #{it.qingguanAgent},
#{it.clearanceOpCode}, #{it.stockAddr}, #{it.stockOutRemark}, #{it.deliverCount},
#{it.firstDeliverCount}, #{it.lastDeliverCount}, #{it.acDeliverDiff}, #{it.deliverEndDiff},
#{it.checkOrderCount}, #{it.checkLeaveCount}, #{it.internalCheckTime})
</foreach>
ON DUPLICATE KEY UPDATE
bill_code = VALUES(bill_code),
bl_retrieval = VALUES(bl_retrieval),
retrieval_date = VALUES(retrieval_date),
retrieval_man_code = VALUES(retrieval_man_code),
pick_box_count = VALUES(pick_box_count),
pick_count_real = VALUES(pick_count_real),
declare_code = VALUES(declare_code),
clearance_code = VALUES(clearance_code),
qingguan_agent = VALUES(qingguan_agent),
clearance_op_code = VALUES(clearance_op_code),
stock_addr = VALUES(stock_addr),
stock_out_remark = VALUES(stock_out_remark),
deliver_count = VALUES(deliver_count),
first_deliver_count = VALUES(first_deliver_count),
last_deliver_count = VALUES(last_deliver_count),
ac_deliver_diff = VALUES(ac_deliver_diff),
deliver_end_diff = VALUES(deliver_end_diff),
check_order_count = VALUES(check_order_count),
check_leave_count = VALUES(check_leave_count),
internal_check_time = VALUES(internal_check_time)
</insert>
<insert id="upsertBillAirTrack">
INSERT INTO srv_bill_air_track (
guid, bill_code, start_time_plan, arrive_time_plan, shipping_date,
start_time, arrive_time, arrive_stock_time, clearance_time, end_oprate_time,
bl_bgfx, bgfx_time, update_time_bgfx,
bl_sjqf, sjqf_time, update_time_sjqf,
bl_sjdd, sjdd_time, update_time_sjdd,
bl_tzdc, tzdc_time, update_time_tzdc,
bl_thdc, thdc_time, update_time_thdc,
bl_qgwc, qgwc_time, update_time_qgwc,
bl_gxfc, gxfc_time, update_time_gxfc,
bl_fjh, fjh_time, update_time_fjh,
bl_track_gen_bg, bl_track_gen_bgfx, bl_track_gen_qf, bl_track_gen_dd,
bl_track_gen_qg, bl_track_gen_dc
) VALUES
<foreach collection="list" item="it" separator=",">
(#{it.guid}, #{it.billCode}, #{it.startTimePlan}, #{it.arriveTimePlan}, #{it.shippingDate},
#{it.startTime}, #{it.arriveTime}, #{it.arriveStockTime}, #{it.clearanceTime}, #{it.endOprateTime},
#{it.blBgfx}, #{it.bgfxTime}, #{it.updateTimeBgfx},
#{it.blSjqf}, #{it.sjqfTime}, #{it.updateTimeSjqf},
#{it.blSjdd}, #{it.sjddTime}, #{it.updateTimeSjdd},
#{it.blTzdc}, #{it.tzdcTime}, #{it.updateTimeTzdc},
#{it.blThdc}, #{it.thdcTime}, #{it.updateTimeThdc},
#{it.blQgwc}, #{it.qgwcTime}, #{it.updateTimeQgwc},
#{it.blGxfc}, #{it.gxfcTime}, #{it.updateTimeGxfc},
#{it.blFjh}, #{it.fjhTime}, #{it.updateTimeFjh},
#{it.blTrackGenBg}, #{it.blTrackGenBgfx}, #{it.blTrackGenQf}, #{it.blTrackGenDd},
#{it.blTrackGenQg}, #{it.blTrackGenDc})
</foreach>
ON DUPLICATE KEY UPDATE
bill_code = VALUES(bill_code),
start_time_plan = VALUES(start_time_plan),
arrive_time_plan = VALUES(arrive_time_plan),
shipping_date = VALUES(shipping_date),
start_time = VALUES(start_time),
arrive_time = VALUES(arrive_time),
arrive_stock_time = VALUES(arrive_stock_time),
clearance_time = VALUES(clearance_time),
end_oprate_time = VALUES(end_oprate_time),
bl_bgfx = VALUES(bl_bgfx),
bgfx_time = VALUES(bgfx_time),
update_time_bgfx = VALUES(update_time_bgfx),
bl_sjqf = VALUES(bl_sjqf),
sjqf_time = VALUES(sjqf_time),
update_time_sjqf = VALUES(update_time_sjqf),
bl_sjdd = VALUES(bl_sjdd),
sjdd_time = VALUES(sjdd_time),
update_time_sjdd = VALUES(update_time_sjdd),
bl_tzdc = VALUES(bl_tzdc),
tzdc_time = VALUES(tzdc_time),
update_time_tzdc = VALUES(update_time_tzdc),
bl_thdc = VALUES(bl_thdc),
thdc_time = VALUES(thdc_time),
update_time_thdc = VALUES(update_time_thdc),
bl_qgwc = VALUES(bl_qgwc),
qgwc_time = VALUES(qgwc_time),
update_time_qgwc = VALUES(update_time_qgwc),
bl_gxfc = VALUES(bl_gxfc),
gxfc_time = VALUES(gxfc_time),
update_time_gxfc = VALUES(update_time_gxfc),
bl_fjh = VALUES(bl_fjh),
fjh_time = VALUES(fjh_time),
update_time_fjh = VALUES(update_time_fjh),
bl_track_gen_bg = VALUES(bl_track_gen_bg),
bl_track_gen_bgfx = VALUES(bl_track_gen_bgfx),
bl_track_gen_qf = VALUES(bl_track_gen_qf),
bl_track_gen_dd = VALUES(bl_track_gen_dd),
bl_track_gen_qg = VALUES(bl_track_gen_qg),
bl_track_gen_dc = VALUES(bl_track_gen_dc)
</insert>
</mapper>