Commit 5bc06930 by 杨林龙

添加注册客户创建时间 yangll

1 parent 29bce609
...@@ -18,6 +18,7 @@ import javax.annotation.Resource; ...@@ -18,6 +18,7 @@ import javax.annotation.Resource;
import java.security.NoSuchAlgorithmException; import java.security.NoSuchAlgorithmException;
import java.security.PrivateKey; import java.security.PrivateKey;
import java.security.PublicKey; import java.security.PublicKey;
import java.util.Date;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
...@@ -47,7 +48,7 @@ public class CustomerMgrServiceImpl implements CustomerMgrService { ...@@ -47,7 +48,7 @@ public class CustomerMgrServiceImpl implements CustomerMgrService {
@Override @Override
public Integer startAndStop(Integer id, Integer status) { public Integer startAndStop(Integer id, Integer status) {
return customerMapper.updateStatusByCustomerId(id,status); return customerMapper.updateStatusByCustomerId(id, status);
} }
@Override @Override
...@@ -76,6 +77,7 @@ public class CustomerMgrServiceImpl implements CustomerMgrService { ...@@ -76,6 +77,7 @@ public class CustomerMgrServiceImpl implements CustomerMgrService {
String area = customerMapper.getAddressStr(customer.getArea()); String area = customerMapper.getAddressStr(customer.getArea());
customer.setAddress(province + city + area + customer.getAddress()); customer.setAddress(province + city + area + customer.getAddress());
customer.setStatus(2); customer.setStatus(2);
customer.setCreateTime(new Date());
return customerMapper.register(customer); return customerMapper.register(customer);
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!