From d7f84d489282b0f3e61933bbb2df91aef5fab151 Mon Sep 17 00:00:00 2001 From: puzhibing <393733352@qq.com> Date: 星期日, 15 六月 2025 02:27:28 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- DriverQYTTravel/guns-admin/src/test/java/com/stylefeng/guns/GunsApplicationTest.java | 65 ++++++++++++++++++++++---------- 1 files changed, 45 insertions(+), 20 deletions(-) diff --git a/DriverQYTTravel/guns-admin/src/test/java/com/stylefeng/guns/GunsApplicationTest.java b/DriverQYTTravel/guns-admin/src/test/java/com/stylefeng/guns/GunsApplicationTest.java index bb41331..5a37845 100644 --- a/DriverQYTTravel/guns-admin/src/test/java/com/stylefeng/guns/GunsApplicationTest.java +++ b/DriverQYTTravel/guns-admin/src/test/java/com/stylefeng/guns/GunsApplicationTest.java @@ -1,7 +1,7 @@ package com.stylefeng.guns; import com.stylefeng.guns.modular.system.util.qianyuntong.EmployeeUtil; -import com.stylefeng.guns.modular.system.util.qianyuntong.model.SaveStaffNodeRequest; +import com.stylefeng.guns.modular.system.util.qianyuntong.model.GetStaffNodeRequest; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.boot.test.context.SpringBootTest; @@ -53,26 +53,51 @@ // request.setCode("1111"); // UserUtil.resetPwd(request); - SaveStaffNodeRequest request = new SaveStaffNodeRequest(); - request.setMobile("15828353127"); - request.setEntercode("981100006005878"); - request.setEmpName("超级管理员"); - request.setEmpNickname("超级管理员"); - request.setLoginNo("18200000000"); - request.setEmpSex("男"); - request.setMphone("18200000000"); - request.setEmail("sn93@qq.com"); - request.setDeptIds(0L); - request.setPositionId(1L); - request.setSuperLevel(0); - request.setHideMobile(0); - EmployeeUtil.saveStaffNode(request); - -// GetStaffNodeRequest request = new GetStaffNodeRequest(); -// request.setEmpId(1L); +// SaveStaffNodeRequest request = new SaveStaffNodeRequest(); // request.setMobile("15828353127"); // request.setEntercode("981100006005878"); -// EmployeeUtil.getStaffNode(request); - +// request.setEmpName("超级管理员"); +// request.setEmpNickname("超级管理员"); +// request.setLoginNo("18200000000"); +// request.setEmpSex("男"); +// request.setMphone("18200000000"); +// request.setEmail("sn93@qq.com"); +// request.setDeptId(0); +// request.setPositionId(1); +// request.setSuperLevel(0); +// request.setHideMobile(0); +// EmployeeUtil.saveStaffNode(request); + + //接口参数有问题 +// EditStaffNodeRequest request = new EditStaffNodeRequest(); +// request.setEmpId(11448036); +// request.setMobile("15828353127"); +// request.setEntercode("981100006005878"); +// request.setEnterId(981100006005878l); +// request.setEmpName("超级管理员"); +// request.setEmpNickname("超管"); +// request.setLoginNo("18200000000"); +// request.setMphone("18200000000"); +// request.setEmail("sn93@qq.com"); +// request.setDeptId(0); +// request.setPositionId(1); +// request.setSuperLevel(0); +// request.setHideMobile(0); +// EmployeeUtil.editStaffNode(request); + + + GetStaffNodeRequest request = new GetStaffNodeRequest(); + request.setEmpId(11448036L); + request.setMobile("15828353127"); + request.setEntercode("981100006005878"); + EmployeeUtil.getStaffNode(request); + + + +// DeleteStafNodeRequest request = new DeleteStafNodeRequest(); +// request.setEmpId(11448036); +// request.setMobile("15828353127"); +// request.setEntercode("981100006005878"); +// EmployeeUtil.ecrmDeleteStafNode(request); } } -- Gitblit v1.7.1