Commit 7ab8ea9a by 杨林龙

完成Dubbo基本开发 yangll

1 parent 815f68c8
...@@ -17,7 +17,7 @@ public interface CustomerMgrService { ...@@ -17,7 +17,7 @@ public interface CustomerMgrService {
int register(PlatformCustomer customer); int register(PlatformCustomer customer);
int login(PlatformCustomer customer); PlatformCustomer login(PlatformCustomer customer);
List<String> getAddressOptionList(int id); List<String> getAddressOptionList(int id);
} }
...@@ -23,7 +23,7 @@ public interface PlatformCustomerMapper extends OreMapper<PlatformCustomer> { ...@@ -23,7 +23,7 @@ public interface PlatformCustomerMapper extends OreMapper<PlatformCustomer> {
int getCustomerCount(); int getCustomerCount();
int login(PlatformCustomer customer); PlatformCustomer login(PlatformCustomer customer);
List<String> getAddressOptionList(@Param("id") int id); List<String> getAddressOptionList(@Param("id") int id);
......
...@@ -73,7 +73,7 @@ public class CustomerMgrServiceImpl implements CustomerMgrService { ...@@ -73,7 +73,7 @@ public class CustomerMgrServiceImpl implements CustomerMgrService {
} }
@Override @Override
public int login(PlatformCustomer customer) { public PlatformCustomer login(PlatformCustomer customer) {
return customerMapper.login(customer); return customerMapper.login(customer);
} }
......
...@@ -76,8 +76,8 @@ ...@@ -76,8 +76,8 @@
from t_platform_customer from t_platform_customer
</select> </select>
<select id="login" parameterType="cn.com.glsx.openplatform.model.PlatformCustomer" resultType="java.lang.Integer"> <select id="login" parameterType="cn.com.glsx.openplatform.model.PlatformCustomer" resultMap="BaseResultMap">
select count(1) select *
from t_platform_customer from t_platform_customer
where contact_number = #{contactNumber,jdbcType=VARCHAR} where contact_number = #{contactNumber,jdbcType=VARCHAR}
and password = #{password,jdbcType=VARCHAR} and password = #{password,jdbcType=VARCHAR}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!