Commit 29bce609 by 杨林龙

注册客户初始化状态为待审状态 yangll

1 parent f039c79d
...@@ -75,6 +75,7 @@ public class CustomerMgrServiceImpl implements CustomerMgrService { ...@@ -75,6 +75,7 @@ public class CustomerMgrServiceImpl implements CustomerMgrService {
String city = customerMapper.getAddressStr(customer.getCity()); String city = customerMapper.getAddressStr(customer.getCity());
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);
return customerMapper.register(customer); return customerMapper.register(customer);
} }
......
...@@ -74,6 +74,9 @@ ...@@ -74,6 +74,9 @@
<if test="city != null"> <if test="city != null">
city, city,
</if> </if>
<if test="area != null">
area,
</if>
<if test="address != null and address != ''"> <if test="address != null and address != ''">
address, address,
</if> </if>
...@@ -122,6 +125,9 @@ ...@@ -122,6 +125,9 @@
<if test="city != null"> <if test="city != null">
#{city,jdbcType=INTEGER}, #{city,jdbcType=INTEGER},
</if> </if>
<if test="area != null">
#{area,jdbcType=INTEGER},
</if>
<if test="address != null and address != ''"> <if test="address != null and address != ''">
#{address,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR},
</if> </if>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!