Commit 7f589f0d by Water Wang

otptimize

parent d3f1fb4b
......@@ -20,7 +20,7 @@ public interface AclCustomerDALService {
* @param aclCustomer
* @return
*/
void save(AclCustomer aclCustomer);
void update(AclCustomer aclCustomer);
/**
* 获取用户信息
......
......@@ -19,8 +19,8 @@ public class AclCustomerDALServiceImpl implements AclCustomerDALService {
}
@Override
public void save(AclCustomer aclCustomer) {
aclCustomerMapper.insert(aclCustomer);
public void update(AclCustomer aclCustomer) {
aclCustomerMapper.updateByPrimaryKeySelective(aclCustomer);
}
@Override
......
......@@ -105,8 +105,7 @@ public class WechatController {
System.out.println("--------->"+openId);
AclCustomer customer = aclCustomerDALService.findById(customerId);
customer.setYdWechatOpenid(openId);
aclCustomerDALService.save(customer);
aclCustomerDALService.update(customer);
List<AclCustomerLog> customerLogList = aclCustomerLogDALService.findLogInfoByCustomerId(customerId);
int logTimes = (customerLogList.isEmpty()) ? 0 : customerLogList.size();
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