保存进度!

This commit is contained in:
Kane 2023-01-18 00:39:30 +08:00
parent e602271ebe
commit 8d805b007a
2 changed files with 17 additions and 11 deletions

View File

@ -2,7 +2,7 @@
* @Author: Kane
* @Date: 2022-12-15 11:11:21
* @LastEditors: Kane
* @LastEditTime: 2023-01-13 10:08:04
* @LastEditTime: 2023-01-17 23:28:21
* @FilePath: \AdminSys\src\main\java\com\cpic\xim\web\controllers\account\P13AccountCheckController.java
* @Description: P13账号验证用Controller
*
@ -25,8 +25,8 @@ import com.cpic.xim.myutils.account.CpicXIMStaffInfo;
import com.cpic.xim.myutils.account.LdapAccountCheck;
@Controller
@RequestMapping( path = "/account")
@SuppressWarnings( "unused")
@RequestMapping( path = "/account" )
@SuppressWarnings( "unused" )
public class P13AccountCheckController
{
/*****************************************************
@ -39,7 +39,7 @@ public class P13AccountCheckController
* @return 返回一个P13AccountCheckResult对象其中提供验证结果
*****************************************************/
@ResponseBody
@RequestMapping( path = "/p13_account_check.do")
@RequestMapping( path = "/p13_account_check.do" )
public P13AccountCheckResult checkP13Account( @RequestBody P13AccountCheckRequest param,
HttpServletRequest request, HttpServletResponse response )
throws IllegalSelectorException, IOException
@ -69,7 +69,7 @@ public class P13AccountCheckController
}
// 查询结果是null说明没有查询到结果工号或p13账号不存在返回结果
if ( staff == null)
if ( staff == null )
{
result.setMessage( "人员工号或P13账号不存在" );
result.setSuccess( false );
@ -78,7 +78,7 @@ public class P13AccountCheckController
}
// 判断一下p13是否存在如果不存在就结束过程
if ( staff.getP13UID().isEmpty() == true)
if ( staff.getP13UID().isEmpty() == true )
{
result.setMessage( "P13账号不存在请联系信息技术部申请账号" );
result.setSuccess( false );
@ -90,7 +90,7 @@ public class P13AccountCheckController
boolean ldapCheckResult =
LdapAccountCheck.ldapLogin( staff.getP13UID(), param.getPassword() );
if ( ldapCheckResult == true)
if ( ldapCheckResult == true )
{
result.setSuccess( true );
result.setMessage( "验证成功!" );
@ -100,7 +100,8 @@ public class P13AccountCheckController
HttpSession session = request.getSession();
session.setAttribute( "staff_info", staff );
} else
}
else
{
result.setSuccess( false );
result.setMessage( "密码错误!" );
@ -111,4 +112,3 @@ public class P13AccountCheckController
return result;
}
}

View File

@ -2,7 +2,7 @@
* @Author: Kane
* @Date: 2023-01-12 14:43:46
* @LastEditors: Kane
* @LastEditTime: 2023-01-14 23:12:20
* @LastEditTime: 2023-01-18 00:38:04
* @FilePath: \admin_system\src\views\info\StaffInfo.vue
* @Description:
*
@ -19,12 +19,15 @@
<el-button type="danger">查询</el-button>
</el-col>
</el-row>
</el-form>
</div>
<div>
<el-table ref="table" :data="table_data"> </el-table>
</div>
</template>
<script>
/* eslint-disable */
export default {
name: "staff-info",
data()
@ -33,6 +36,9 @@ export default {
query_param: {
staff_code: "",
},
table_data: [
{ staff_name: "王炜", staff_code: "588", p13uid: "wangwei-202" },
],
};
},
};