and ${criterion.condition}
and ${criterion.condition} #{criterion.value}
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
and ${criterion.condition}
#{listItem}
and ${criterion.condition}
and ${criterion.condition} #{criterion.value}
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
and ${criterion.condition}
#{listItem}
id, agent_id, agent_name, phone, user_pwd, with_pwd, nick_name, real_name, id_card,
account_type, user_amt, enable_amt, enale_withdraw_amt, hk_amt, sum_charge_amt, sum_buy_amt,
recom_phone, is_lock, is_login, reg_time, reg_ip, reg_address, img1_key, img2_key,
img3_key, is_active, auth_msg, user_index_amt, enable_index_amt, user_fut_amt, enable_fut_amt,
withdrawal_Pwd, trading_amount, is_authorize, sgzj, djzj
delete from user
where id = #{id,jdbcType=INTEGER}
delete from user
SELECT LAST_INSERT_ID()
insert into user ( agent_id, agent_name,
phone, user_pwd, with_pwd,
nick_name, real_name, id_card,
account_type, user_amt, enable_amt,
enale_withdraw_amt, hk_amt, sum_charge_amt,
sum_buy_amt, recom_phone, is_lock,
is_login, reg_time, reg_ip,
reg_address, img1_key, img2_key,
img3_key, is_active, auth_msg,
user_index_amt, enable_index_amt, user_fut_amt,
enable_fut_amt, withdrawal_Pwd, trading_amount,
is_authorize, sgzj, djzj
)
values ( #{agentId,jdbcType=INTEGER}, #{agentName,jdbcType=VARCHAR},
#{phone,jdbcType=VARCHAR}, #{userPwd,jdbcType=VARCHAR}, #{withPwd,jdbcType=VARCHAR},
#{nickName,jdbcType=VARCHAR}, #{realName,jdbcType=VARCHAR}, #{idCard,jdbcType=VARCHAR},
#{accountType,jdbcType=INTEGER}, #{userAmt,jdbcType=DECIMAL}, #{enableAmt,jdbcType=DECIMAL},
#{enaleWithdrawAmt,jdbcType=DECIMAL}, #{hkAmt,jdbcType=DECIMAL}, #{sumChargeAmt,jdbcType=DECIMAL},
#{sumBuyAmt,jdbcType=DECIMAL}, #{recomPhone,jdbcType=VARCHAR}, #{isLock,jdbcType=INTEGER},
#{isLogin,jdbcType=INTEGER}, #{regTime,jdbcType=TIMESTAMP}, #{regIp,jdbcType=VARCHAR},
#{regAddress,jdbcType=VARCHAR}, #{img1Key,jdbcType=VARCHAR}, #{img2Key,jdbcType=VARCHAR},
#{img3Key,jdbcType=VARCHAR}, #{isActive,jdbcType=INTEGER}, #{authMsg,jdbcType=VARCHAR},
#{userIndexAmt,jdbcType=DECIMAL}, #{enableIndexAmt,jdbcType=DECIMAL}, #{userFutAmt,jdbcType=DECIMAL},
#{enableFutAmt,jdbcType=DECIMAL}, #{withdrawalPwd,jdbcType=VARCHAR}, #{tradingAmount,jdbcType=DECIMAL},
#{isAuthorize,jdbcType=INTEGER}, #{sgzj,jdbcType=DECIMAL}, #{djzj,jdbcType=DECIMAL}
)
SELECT LAST_INSERT_ID()
insert into user
id,
agent_id,
agent_name,
phone,
user_pwd,
with_pwd,
nick_name,
real_name,
id_card,
account_type,
user_amt,
enable_amt,
enale_withdraw_amt,
hk_amt,
sum_charge_amt,
sum_buy_amt,
recom_phone,
is_lock,
is_login,
reg_time,
reg_ip,
reg_address,
img1_key,
img2_key,
img3_key,
is_active,
auth_msg,
user_index_amt,
enable_index_amt,
user_fut_amt,
enable_fut_amt,
withdrawal_Pwd,
trading_amount,
is_authorize,
sgzj,
djzj,
#{id,jdbcType=INTEGER},
#{agentId,jdbcType=INTEGER},
#{agentName,jdbcType=VARCHAR},
#{phone,jdbcType=VARCHAR},
#{userPwd,jdbcType=VARCHAR},
#{withPwd,jdbcType=VARCHAR},
#{nickName,jdbcType=VARCHAR},
#{realName,jdbcType=VARCHAR},
#{idCard,jdbcType=VARCHAR},
#{accountType,jdbcType=INTEGER},
#{userAmt,jdbcType=DECIMAL},
#{enableAmt,jdbcType=DECIMAL},
#{enaleWithdrawAmt,jdbcType=DECIMAL},
#{hkAmt,jdbcType=DECIMAL},
#{sumChargeAmt,jdbcType=DECIMAL},
#{sumBuyAmt,jdbcType=DECIMAL},
#{recomPhone,jdbcType=VARCHAR},
#{isLock,jdbcType=INTEGER},
#{isLogin,jdbcType=INTEGER},
#{regTime,jdbcType=TIMESTAMP},
#{regIp,jdbcType=VARCHAR},
#{regAddress,jdbcType=VARCHAR},
#{img1Key,jdbcType=VARCHAR},
#{img2Key,jdbcType=VARCHAR},
#{img3Key,jdbcType=VARCHAR},
#{isActive,jdbcType=INTEGER},
#{authMsg,jdbcType=VARCHAR},
#{userIndexAmt,jdbcType=DECIMAL},
#{enableIndexAmt,jdbcType=DECIMAL},
#{userFutAmt,jdbcType=DECIMAL},
#{enableFutAmt,jdbcType=DECIMAL},
#{withdrawalPwd,jdbcType=VARCHAR},
#{tradingAmount,jdbcType=DECIMAL},
#{isAuthorize,jdbcType=INTEGER},
#{sgzj,jdbcType=DECIMAL},
#{djzj,jdbcType=DECIMAL},
update user
id = #{record.id,jdbcType=INTEGER},
agent_id = #{record.agentId,jdbcType=INTEGER},
agent_name = #{record.agentName,jdbcType=VARCHAR},
phone = #{record.phone,jdbcType=VARCHAR},
with_pwd = #{record.withPwd,jdbcType=VARCHAR},
nick_name = #{record.nickName,jdbcType=VARCHAR},
real_name = #{record.realName,jdbcType=VARCHAR},
id_card = #{record.idCard,jdbcType=VARCHAR},
account_type = #{record.accountType,jdbcType=INTEGER},
user_amt = #{record.userAmt,jdbcType=DECIMAL},
enable_amt = #{record.enableAmt,jdbcType=DECIMAL},
enale_withdraw_amt = #{record.enaleWithdrawAmt,jdbcType=DECIMAL},
hk_amt = #{record.hkAmt,jdbcType=DECIMAL},
sum_charge_amt = #{record.sumChargeAmt,jdbcType=DECIMAL},
sum_buy_amt = #{record.sumBuyAmt,jdbcType=DECIMAL},
recom_phone = #{record.recomPhone,jdbcType=VARCHAR},
is_lock = #{record.isLock,jdbcType=INTEGER},
is_login = #{record.isLogin,jdbcType=INTEGER},
reg_time = #{record.regTime,jdbcType=TIMESTAMP},
reg_ip = #{record.regIp,jdbcType=VARCHAR},
reg_address = #{record.regAddress,jdbcType=VARCHAR},
img1_key = #{record.img1Key,jdbcType=VARCHAR},
img2_key = #{record.img2Key,jdbcType=VARCHAR},
img3_key = #{record.img3Key,jdbcType=VARCHAR},
is_active = #{record.isActive,jdbcType=INTEGER},
auth_msg = #{record.authMsg,jdbcType=VARCHAR},
user_index_amt = #{record.userIndexAmt,jdbcType=DECIMAL},
enable_index_amt = #{record.enableIndexAmt,jdbcType=DECIMAL},
user_fut_amt = #{record.userFutAmt,jdbcType=DECIMAL},
enable_fut_amt = #{record.enableFutAmt,jdbcType=DECIMAL},
withdrawal_Pwd = #{record.withdrawalPwd,jdbcType=VARCHAR},
trading_amount = #{record.tradingAmount,jdbcType=DECIMAL},
is_authorize = #{record.isAuthorize,jdbcType=INTEGER},
sgzj = #{record.sgzj,jdbcType=DECIMAL},
djzj = #{record.djzj,jdbcType=DECIMAL},
update user
set id = #{record.id,jdbcType=INTEGER},
agent_id = #{record.agentId,jdbcType=INTEGER},
agent_name = #{record.agentName,jdbcType=VARCHAR},
phone = #{record.phone,jdbcType=VARCHAR},
with_pwd = #{record.withPwd,jdbcType=VARCHAR},
nick_name = #{record.nickName,jdbcType=VARCHAR},
real_name = #{record.realName,jdbcType=VARCHAR},
id_card = #{record.idCard,jdbcType=VARCHAR},
account_type = #{record.accountType,jdbcType=INTEGER},
user_amt = #{record.userAmt,jdbcType=DECIMAL},
enable_amt = #{record.enableAmt,jdbcType=DECIMAL},
enale_withdraw_amt = #{record.enaleWithdrawAmt,jdbcType=DECIMAL},
hk_amt = #{record.hkAmt,jdbcType=DECIMAL},
sum_charge_amt = #{record.sumChargeAmt,jdbcType=DECIMAL},
sum_buy_amt = #{record.sumBuyAmt,jdbcType=DECIMAL},
recom_phone = #{record.recomPhone,jdbcType=VARCHAR},
is_lock = #{record.isLock,jdbcType=INTEGER},
is_login = #{record.isLogin,jdbcType=INTEGER},
reg_time = #{record.regTime,jdbcType=TIMESTAMP},
reg_ip = #{record.regIp,jdbcType=VARCHAR},
reg_address = #{record.regAddress,jdbcType=VARCHAR},
img1_key = #{record.img1Key,jdbcType=VARCHAR},
img2_key = #{record.img2Key,jdbcType=VARCHAR},
img3_key = #{record.img3Key,jdbcType=VARCHAR},
is_active = #{record.isActive,jdbcType=INTEGER},
auth_msg = #{record.authMsg,jdbcType=VARCHAR},
user_index_amt = #{record.userIndexAmt,jdbcType=DECIMAL},
enable_index_amt = #{record.enableIndexAmt,jdbcType=DECIMAL},
user_fut_amt = #{record.userFutAmt,jdbcType=DECIMAL},
enable_fut_amt = #{record.enableFutAmt,jdbcType=DECIMAL},
withdrawal_Pwd = #{record.withdrawalPwd,jdbcType=VARCHAR},
trading_amount = #{record.tradingAmount,jdbcType=DECIMAL},
is_authorize = #{record.isAuthorize,jdbcType=INTEGER},
sgzj = #{record.sgzj,jdbcType=DECIMAL},
djzj = #{record.djzj,jdbcType=DECIMAL}
update user
agent_id = #{agentId,jdbcType=INTEGER},
agent_name = #{agentName,jdbcType=VARCHAR},
phone = #{phone,jdbcType=VARCHAR},
user_pwd = #{userPwd,jdbcType=VARCHAR},
with_pwd = #{withPwd,jdbcType=VARCHAR},
nick_name = #{nickName,jdbcType=VARCHAR},
real_name = #{realName,jdbcType=VARCHAR},
id_card = #{idCard,jdbcType=VARCHAR},
account_type = #{accountType,jdbcType=INTEGER},
user_amt = #{userAmt,jdbcType=DECIMAL},
enable_amt = #{enableAmt,jdbcType=DECIMAL},
enale_withdraw_amt = #{enaleWithdrawAmt,jdbcType=DECIMAL},
hk_amt = #{hkAmt,jdbcType=DECIMAL},
sum_charge_amt = #{sumChargeAmt,jdbcType=DECIMAL},
sum_buy_amt = #{sumBuyAmt,jdbcType=DECIMAL},
recom_phone = #{recomPhone,jdbcType=VARCHAR},
is_lock = #{isLock,jdbcType=INTEGER},
is_login = #{isLogin,jdbcType=INTEGER},
reg_time = #{regTime,jdbcType=TIMESTAMP},
reg_ip = #{regIp,jdbcType=VARCHAR},
reg_address = #{regAddress,jdbcType=VARCHAR},
img1_key = #{img1Key,jdbcType=VARCHAR},
img2_key = #{img2Key,jdbcType=VARCHAR},
img3_key = #{img3Key,jdbcType=VARCHAR},
is_active = #{isActive,jdbcType=INTEGER},
auth_msg = #{authMsg,jdbcType=VARCHAR},
user_index_amt = #{userIndexAmt,jdbcType=DECIMAL},
enable_index_amt = #{enableIndexAmt,jdbcType=DECIMAL},
user_fut_amt = #{userFutAmt,jdbcType=DECIMAL},
enable_fut_amt = #{enableFutAmt,jdbcType=DECIMAL},
withdrawal_Pwd = #{withdrawalPwd,jdbcType=VARCHAR},
trading_amount = #{tradingAmount,jdbcType=DECIMAL},
is_authorize = #{isAuthorize,jdbcType=INTEGER},
sgzj = #{sgzj,jdbcType=DECIMAL},
djzj = #{djzj,jdbcType=DECIMAL},
where id = #{id,jdbcType=INTEGER}
update user
set agent_id = #{agentId,jdbcType=INTEGER},
agent_name = #{agentName,jdbcType=VARCHAR},
phone = #{phone,jdbcType=VARCHAR},
with_pwd = #{withPwd,jdbcType=VARCHAR},
nick_name = #{nickName,jdbcType=VARCHAR},
real_name = #{realName,jdbcType=VARCHAR},
id_card = #{idCard,jdbcType=VARCHAR},
account_type = #{accountType,jdbcType=INTEGER},
user_amt = #{userAmt,jdbcType=DECIMAL},
enable_amt = #{enableAmt,jdbcType=DECIMAL},
enale_withdraw_amt = #{enaleWithdrawAmt,jdbcType=DECIMAL},
hk_amt = #{hkAmt,jdbcType=DECIMAL},
sum_charge_amt = #{sumChargeAmt,jdbcType=DECIMAL},
sum_buy_amt = #{sumBuyAmt,jdbcType=DECIMAL},
recom_phone = #{recomPhone,jdbcType=VARCHAR},
is_lock = #{isLock,jdbcType=INTEGER},
is_login = #{isLogin,jdbcType=INTEGER},
reg_time = #{regTime,jdbcType=TIMESTAMP},
reg_ip = #{regIp,jdbcType=VARCHAR},
reg_address = #{regAddress,jdbcType=VARCHAR},
img1_key = #{img1Key,jdbcType=VARCHAR},
img2_key = #{img2Key,jdbcType=VARCHAR},
img3_key = #{img3Key,jdbcType=VARCHAR},
is_active = #{isActive,jdbcType=INTEGER},
auth_msg = #{authMsg,jdbcType=VARCHAR},
user_index_amt = #{userIndexAmt,jdbcType=DECIMAL},
enable_index_amt = #{enableIndexAmt,jdbcType=DECIMAL},
user_fut_amt = #{userFutAmt,jdbcType=DECIMAL},
enable_fut_amt = #{enableFutAmt,jdbcType=DECIMAL},
withdrawal_Pwd = #{withdrawalPwd,jdbcType=VARCHAR},
trading_amount = #{tradingAmount,jdbcType=DECIMAL},
is_authorize = #{isAuthorize,jdbcType=INTEGER},
sgzj = #{sgzj,jdbcType=DECIMAL},
djzj = #{djzj,jdbcType=DECIMAL}
where id = #{id,jdbcType=INTEGER}
update `user` set user_amt = user_amt + #{user_amt} where id = #{user_id}