select user.userID, user.userOrganizeID, user.account, user.mobile, user.bindMobile, user.userPermission, user.userIdentity, user.email, user.userName, user.realName, user.source, user.image, user.password, user.name, user.registerUserTypeID, user.manufacturerStatus, user.shopID, user.auditStatus, user.auditTime, user.auditNote, user.registerTime, user.registerIP, user.ipAddress, user.loginTime, user.loginIP, user.validFlag, user.clubStatus, user.clubID, user.agreeFlag, user.serviceProviderStatus, user.serviceProviderID, ifnull(user.userMoney,0) AS userMoney, ifnull(user.ableUserMoney,0) AS ableUserMoney, user.logoffTime, user.appKey, user.appSecret, user.scanFlag, user.userBeans, user.guideFlag, user.loginFailTime, user.tipStatus, ifnull(user.onlineMoney,0) AS onlineMoney, user.unionId, user.openId insert into user userID, userOrganizeID, account, mobile, bindMobile, userPermission, userIdentity, email, userName, realName, source, image, password, name, registerUserTypeID, manufacturerStatus, shopID, auditStatus, auditTime, auditNote, registerTime, registerIP, ipAddress, loginTime, loginIP, validFlag, clubStatus, clubID, agreeFlag, serviceProviderStatus, serviceProviderID, userMoney, ableUserMoney, logoffTime, appKey, appSecret, scanFlag, userBeans, guideFlag, loginFailTime, tipStatus, onlineMoney, unionId, openId, #{userID}, #{userOrganizeID}, #{account}, #{mobile}, #{bindMobile}, #{userPermission}, #{userIdentity}, #{email}, #{userName}, #{realName}, #{source}, #{image}, #{password}, #{name}, #{registerUserTypeID}, #{manufacturerStatus}, #{shopID}, #{auditStatus}, #{auditTime}, #{auditNote}, #{registerTime}, #{registerIP}, #{ipAddress}, #{loginTime}, #{loginIP}, #{validFlag}, #{clubStatus}, #{clubID}, #{agreeFlag}, #{serviceProviderStatus}, #{serviceProviderID}, #{userMoney}, #{ableUserMoney}, #{logoffTime}, #{appKey}, #{appSecret}, #{scanFlag}, #{userBeans}, #{guideFlag}, #{loginFailTime}, #{tipStatus}, #{onlineMoney}, #{unionId}, #{openId}, update user userOrganizeID = #{userOrganizeID}, account = #{account}, mobile = #{mobile}, bindMobile = #{bindMobile}, userPermission = #{userPermission}, userIdentity = #{userIdentity}, email = #{email}, userName = #{userName}, realName = #{realName}, source = #{source}, image = #{image}, password = #{password}, name = #{name}, registerUserTypeID = #{registerUserTypeID}, manufacturerStatus = #{manufacturerStatus}, shopID = #{shopID}, auditStatus = #{auditStatus}, auditTime = #{auditTime}, auditNote = #{auditNote}, registerTime = #{registerTime}, registerIP = #{registerIP}, ipAddress = #{ipAddress}, loginTime = #{loginTime}, loginIP = #{loginIP}, validFlag = #{validFlag}, clubStatus = #{clubStatus}, clubID = #{clubID}, agreeFlag = #{agreeFlag}, serviceProviderStatus = #{serviceProviderStatus}, serviceProviderID = #{serviceProviderID}, userMoney = #{userMoney}, ableUserMoney = #{ableUserMoney}, logoffTime = #{logoffTime}, appKey = #{appKey}, appSecret = #{appSecret}, scanFlag = #{scanFlag}, userBeans = #{userBeans}, guideFlag = #{guideFlag}, loginFailTime = #{loginFailTime}, tipStatus = #{tipStatus}, onlineMoney = #{onlineMoney}, unionId = #{unionId}, openId = #{openId}, where userID = #{userID} delete from user where userID = #{userID} delete from user AS user and user.userID = #{userID} and user.userOrganizeID = #{userOrganizeID} and user.account = #{account} and user.mobile = #{mobile} and user.bindMobile = #{bindMobile} and user.userPermission = #{userPermission} and user.userIdentity = #{userIdentity} and user.email = #{email} and user.userName like concat('%', #{userName}, '%') and user.realName like concat('%', #{realName}, '%') and user.source = #{source} and user.image = #{image} and user.password = #{password} and user.name like concat('%', #{name}, '%') and user.registerUserTypeID = #{registerUserTypeID} and user.manufacturerStatus = #{manufacturerStatus} and user.shopID = #{shopID} and user.auditStatus = #{auditStatus} and user.auditTime = #{auditTime} and user.auditNote = #{auditNote} and user.registerTime = #{registerTime} and user.registerIP = #{registerIP} and user.ipAddress = #{ipAddress} and user.loginTime = #{loginTime} and user.loginIP = #{loginIP} and user.validFlag = #{validFlag} and user.clubStatus = #{clubStatus} and user.clubID = #{clubID} and user.agreeFlag = #{agreeFlag} and user.serviceProviderStatus = #{serviceProviderStatus} and user.serviceProviderID = #{serviceProviderID} and user.userMoney = #{userMoney} and user.ableUserMoney = #{ableUserMoney} and user.logoffTime = #{logoffTime} and user.appKey = #{appKey} and user.appSecret = #{appSecret} and user.scanFlag = #{scanFlag} and user.userBeans = #{userBeans} and user.guideFlag = #{guideFlag} and user.loginFailTime = #{loginFailTime} and user.tipStatus = #{tipStatus} and user.onlineMoney = #{onlineMoney} and user.unionId = #{unionId} and user.openId = #{openId}