Commit 5bc06930 by 杨林龙

添加注册客户创建时间 yangll

1 parent 29bce609
......@@ -18,6 +18,7 @@ import javax.annotation.Resource;
import java.security.NoSuchAlgorithmException;
import java.security.PrivateKey;
import java.security.PublicKey;
import java.util.Date;
import java.util.List;
import java.util.Map;
......@@ -47,7 +48,7 @@ public class CustomerMgrServiceImpl implements CustomerMgrService {
@Override
public Integer startAndStop(Integer id, Integer status) {
return customerMapper.updateStatusByCustomerId(id,status);
return customerMapper.updateStatusByCustomerId(id, status);
}
@Override
......@@ -76,6 +77,7 @@ public class CustomerMgrServiceImpl implements CustomerMgrService {
String area = customerMapper.getAddressStr(customer.getArea());
customer.setAddress(province + city + area + customer.getAddress());
customer.setStatus(2);
customer.setCreateTime(new Date());
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!