select id, index_no, xj, xm_no, xm_ms, wl_no, wl_ms, gys_no, gys_mc, jh_amt, ht_dj, sap_no, xh, jh_qty, ht_qty, dw, status,entity_id, remark, create_by, create_time, update_by, update_time, is_delete from gys_jh
insert into gys_jh
index_no,
xj,
xm_no,
xm_ms,
wl_no,
wl_ms,
gys_no,
gys_mc,
jh_amt,
ht_dj,
sap_no,
xh,
jh_qty,
ht_qty,
dw,
status,
entity_id,
remark,
create_by,
create_time,
update_by,
update_time,
is_delete,
#{indexNo},
#{xj},
#{xmNo},
#{xmMs},
#{wlNo},
#{wlMs},
#{gysNo},
#{gysMc},
#{jhAmt},
#{htDj},
#{sapNo},
#{xh},
#{jhQty},
#{htQty},
#{dw},
#{status},
#{entityId},
#{remark},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{isDelete},
update gys_jh
index_no = #{indexNo},
xj = #{xj},
xm_no = #{xmNo},
xm_ms = #{xmMs},
wl_no = #{wlNo},
wl_ms = #{wlMs},
gys_no = #{gysNo},
gys_mc = #{gysMc},
jh_amt = #{jhAmt},
ht_dj = #{htDj},
sap_no = #{sapNo},
xh = #{xh},
jh_qty = #{jhQty},
ht_qty = #{htQty},
dw = #{dw},
status = #{status},
entity_id = #{entityId},
remark = #{remark},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
is_delete = #{isDelete},
where id = #{id}
update gys_jh
set status = '1'
where id = #{id}
UPDATE gys_jh
SET status = 0
WHERE sap_no IN
#{sapNo}
UPDATE gys_jh
SET status = '2'
WHERE id IN
#{id}
UPDATE gys_jh
SET jh_qty = jh_qty - #{realQty}
WHERE id = #{id}
delete from gys_jh where id = #{id}
delete from gys_jh where id in
#{id}