master
wangning 7 years ago
parent f6be2111f2
commit 2b414c537d

@ -20,7 +20,6 @@ import au.com.royalpay.payment.tools.exceptions.ServerErrorException;
import au.com.royalpay.payment.tools.locale.LocaleSupport; import au.com.royalpay.payment.tools.locale.LocaleSupport;
import au.com.royalpay.payment.tools.mail.SendMail; import au.com.royalpay.payment.tools.mail.SendMail;
import au.com.royalpay.payment.tools.utils.PasswordUtils; import au.com.royalpay.payment.tools.utils.PasswordUtils;
import au.com.royalpay.payment.tools.utils.id.IdUtil;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.github.qcloudsms.SmsSingleSender; import com.github.qcloudsms.SmsSingleSender;
@ -226,12 +225,10 @@ public class SimpleClientApplyServiceImpl implements SimpleClientApplyService {
public void saveOrUpdateApplyInfo(JSONObject applyInfo, String username) { public void saveOrUpdateApplyInfo(JSONObject applyInfo, String username) {
JSONObject apply = sysClientPreMapperMapper.findByUserName(username); JSONObject apply = sysClientPreMapperMapper.findByUserName(username);
if (apply == null ){ if (apply == null ){
applyInfo.put("client_pre_apply_id", IdUtil.getId());
sysClientPreMapperMapper.save(applyInfo); sysClientPreMapperMapper.save(applyInfo);
}else { }else {
applyInfo.put("client_pre_apply_id", apply.getIntValue("client_pre_apply_id")); applyInfo.put("client_pre_apply_id", apply.getIntValue("client_pre_apply_id"));
applyInfo.put("update_time", new Date()); applyInfo.put("update_time", new Date());
sysClientPreMapperMapper.update(applyInfo); sysClientPreMapperMapper.update(applyInfo);
if(applyInfo.getBoolean("agree")){ if(applyInfo.getBoolean("agree")){
applyerToClient(username); applyerToClient(username);

Loading…
Cancel
Save