This commit is contained in:
parent
1e9b48b79f
commit
12b0f4eab7
|
|
@ -4,6 +4,17 @@
|
||||||
<facet type="Spring" name="Spring">
|
<facet type="Spring" name="Spring">
|
||||||
<configuration />
|
<configuration />
|
||||||
</facet>
|
</facet>
|
||||||
|
<facet type="web" name="Web">
|
||||||
|
<configuration>
|
||||||
|
<webroots>
|
||||||
|
<root url="file://$MODULE_DIR$/src/main/webapp" relative="/" />
|
||||||
|
</webroots>
|
||||||
|
<sourceRoots>
|
||||||
|
<root url="file://$MODULE_DIR$/src/main/java" />
|
||||||
|
<root url="file://$MODULE_DIR$/src/main/resources" />
|
||||||
|
</sourceRoots>
|
||||||
|
</configuration>
|
||||||
|
</facet>
|
||||||
</component>
|
</component>
|
||||||
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
|
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
|
||||||
<output url="file://$MODULE_DIR$/target/classes" />
|
<output url="file://$MODULE_DIR$/target/classes" />
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,7 @@ public class ApiLoginController {
|
||||||
return new ResultVo(ApiConst.API_SYS_ERR_CODE, ApiConst.API_SYS_ERR_MSG);
|
return new ResultVo(ApiConst.API_SYS_ERR_CODE, ApiConst.API_SYS_ERR_MSG);
|
||||||
}else {
|
}else {
|
||||||
// user.setPassword(newPassword);
|
// user.setPassword(newPassword);
|
||||||
apiUserService.save(user);
|
// apiUserService.save(user);
|
||||||
return new ResultVo(ApiConst.API_OPT_SUCCESS_CODE, ApiConst.API_OPT_SUCCESS_MSG);
|
return new ResultVo(ApiConst.API_OPT_SUCCESS_CODE, ApiConst.API_OPT_SUCCESS_MSG);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,14 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
|
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
|
||||||
|
<component name="FacetManager">
|
||||||
|
<facet type="web" name="Web">
|
||||||
|
<configuration>
|
||||||
|
<webroots>
|
||||||
|
<root url="file://$MODULE_DIR$/src/main/webapp" relative="/" />
|
||||||
|
</webroots>
|
||||||
|
</configuration>
|
||||||
|
</facet>
|
||||||
|
</component>
|
||||||
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
|
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
|
||||||
<output url="file://$MODULE_DIR$/target/classes" />
|
<output url="file://$MODULE_DIR$/target/classes" />
|
||||||
<output-test url="file://$MODULE_DIR$/target/test-classes" />
|
<output-test url="file://$MODULE_DIR$/target/test-classes" />
|
||||||
|
|
|
||||||
|
|
@ -19,9 +19,4 @@ public interface BssEmployeeRepository extends BaseRepository<BssEmployee, Long>
|
||||||
|
|
||||||
BssEmployee findByPhoneNum(String telephone);
|
BssEmployee findByPhoneNum(String telephone);
|
||||||
|
|
||||||
@Modifying
|
|
||||||
@Transactional
|
|
||||||
@Query(value = "update bss_employee set pwd = ?1 where id = ?2 and status <> " + StatusConst.DELETE, nativeQuery = true)
|
|
||||||
void update(String pwd, int id);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -12,5 +12,4 @@ public interface ApiUserService {
|
||||||
|
|
||||||
BssEmployee getUserByPhoneNum(String telephone);
|
BssEmployee getUserByPhoneNum(String telephone);
|
||||||
|
|
||||||
void save(BssEmployee user);
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -31,8 +31,4 @@ public class ApiUserServiceImpl implements ApiUserService {
|
||||||
return bssEmployeeRepository.findByPhoneNum(telephone);
|
return bssEmployeeRepository.findByPhoneNum(telephone);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void save(BssEmployee user) {
|
|
||||||
// bssEmployeeRepository.update(user.getPwd, user.getId());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue