@@ -122,11 +122,9 @@ public class NetEasyService {
String initPWD = employee.getEm_password();
if(! StringUtil.hasText(initPWD) || initPWD.length() <8 || ! hasThreeCharacterTypes(initPWD)){
//初始密码拼音+系统账号+SI
- initPWD = initAccount+employee.getEm_code()+"SI";
- q.addParam("password", initAccount+employee.getEm_code()+"SI");
- }else{
- q.addParam("password", initPWD);
+ initPWD = initAccount+"_SI";
}
+ q.addParam("password", initPWD);
if(StringUtil.hasText(employee.getEm_mobile())){
q.addParam("mobile", employee.getEm_mobile());
@@ -52,7 +52,7 @@ public class NetEasyTest {
@Test
public void createEmp() throws Exception {
List<Employee> EmployeeS = baseDao.query("select em_code,em_name,or_code orcode,or_neteasyid orneteasyid,em_class,em_neteasyid,em_emptype,em_isneteasy,em_position,em_password,em_mobile from employee left join hrorg on em_defaultorid=or_id"+
- " where em_code='005096' order by em_id asc"
+ " where em_code='0121146' order by em_id asc"
,
Employee.class);
netEasyService.createNetEasyEmployee(EmployeeS.get(0));