|
@@ -0,0 +1,26 @@
|
|
|
+package com.yc.education.service.impl;
|
|
|
+
|
|
|
+import com.yc.education.mapper.AdminsMapper;
|
|
|
+import com.yc.education.model.Admins;
|
|
|
+import com.yc.education.service.AdminsService;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.stereotype.Service;
|
|
|
+
|
|
|
+@Service("AdminsServiceImpl")
|
|
|
+public class AdminsServiceImpl extends BaseService<Admins> implements AdminsService {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ AdminsMapper mapper;
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public Admins findadminlogin(String loginname, String password) {
|
|
|
+ // TODO Auto-generated method stub
|
|
|
+ try {
|
|
|
+ return mapper.findadminlogin(loginname, password);
|
|
|
+ } catch (Exception e) {
|
|
|
+ // TODO Auto-generated catch block
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+}
|