Commit 7f589f0d by Water Wang

otptimize

parent d3f1fb4b
...@@ -20,7 +20,7 @@ public interface AclCustomerDALService { ...@@ -20,7 +20,7 @@ public interface AclCustomerDALService {
* @param aclCustomer * @param aclCustomer
* @return * @return
*/ */
void save(AclCustomer aclCustomer); void update(AclCustomer aclCustomer);
/** /**
* 获取用户信息 * 获取用户信息
......
...@@ -19,8 +19,8 @@ public class AclCustomerDALServiceImpl implements AclCustomerDALService { ...@@ -19,8 +19,8 @@ public class AclCustomerDALServiceImpl implements AclCustomerDALService {
} }
@Override @Override
public void save(AclCustomer aclCustomer) { public void update(AclCustomer aclCustomer) {
aclCustomerMapper.insert(aclCustomer); aclCustomerMapper.updateByPrimaryKeySelective(aclCustomer);
} }
@Override @Override
......
...@@ -105,8 +105,7 @@ public class WechatController { ...@@ -105,8 +105,7 @@ public class WechatController {
System.out.println("--------->"+openId); System.out.println("--------->"+openId);
AclCustomer customer = aclCustomerDALService.findById(customerId); AclCustomer customer = aclCustomerDALService.findById(customerId);
customer.setYdWechatOpenid(openId); customer.setYdWechatOpenid(openId);
aclCustomerDALService.save(customer); aclCustomerDALService.update(customer);
List<AclCustomerLog> customerLogList = aclCustomerLogDALService.findLogInfoByCustomerId(customerId); List<AclCustomerLog> customerLogList = aclCustomerLogDALService.findLogInfoByCustomerId(customerId);
int logTimes = (customerLogList.isEmpty()) ? 0 : customerLogList.size(); int logTimes = (customerLogList.isEmpty()) ? 0 : customerLogList.size();
jumpUrl = (logTimes < 2) ? systemConfigService.getSingleConfigValue("YdLifeThanksPage") : jumpUrl; jumpUrl = (logTimes < 2) ? systemConfigService.getSingleConfigValue("YdLifeThanksPage") : jumpUrl;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment