@ -137,7 +137,13 @@ public class RocketmqUtil {
String staffCode = Util . null2String ( jsonObject . get ( "staffCode" ) ) ;
String actType = Util . null2String ( jsonObject . get ( "actType" ) ) ;
String email = Util . null2String ( jsonObject . get ( "email" ) ) ;
String email = "" ;
if ( jsonObject . containsKey ( "eMail" ) ) {
email = Util . null2String ( jsonObject . get ( "eMail" ) ) ;
} else if ( jsonObject . containsKey ( "email" ) ) {
email = Util . null2String ( jsonObject . get ( "email" ) ) ;
}
String sysUserId = Util . null2String ( jsonObject . get ( "sysUserId" ) ) ;
String sysUserCode = Util . null2String ( jsonObject . get ( "sysUserCode" ) ) ;
String userName = Util . null2String ( jsonObject . get ( "userName" ) ) ;
@ -707,7 +713,7 @@ public class RocketmqUtil {
if ( "A" . equals ( actType ) | | "M" . equals ( actType ) )
{
//当岗位为主岗位时才更新, 1: 主岗位
if ( "1" . equals ( defaultFlag ) ) {
// if ("1".equals(defaultFlag)){
String updateUserJobSql = " update hrmresource set jobtitle=?,modified=?,modifier=? where id=? " ;
bb . writeLog ( "updateUserJobSql:" + updateUserJobSql ) ;
boolean flag = rs . executeUpdate ( updateUserJobSql , new Object [ ] { jobtitlesId , currentDateTime , updateStaff , userId } ) ;
@ -722,7 +728,7 @@ public class RocketmqUtil {
dataMap . put ( "errmessage" , "更新人员岗位sql执行成功" ) ;
}
recordErrorData ( dataMap ) ;
}
// }
} else if ( "D" . equals ( actType ) ) {
jobtitlesId = null ;
String updateUserJobSql = " update hrmresource set jobtitle=?,modified=?,modifier=? where id=? " ;
@ -1163,8 +1169,13 @@ public class RocketmqUtil {
String staffName = Util . null2String ( jsonObject . get ( "staffName" ) ) ;
String staffCode = Util . null2String ( jsonObject . get ( "staffCode" ) ) ;
String actType = Util . null2String ( jsonObject . get ( "actType" ) ) ;
String email = "" ;
if ( jsonObject . containsKey ( "eMail" ) ) {
email = Util . null2String ( jsonObject . get ( "eMail" ) ) ;
} else if ( jsonObject . containsKey ( "email" ) ) {
email = Util . null2String ( jsonObject . get ( "email" ) ) ;
}
String email = Util . null2String ( jsonObject . get ( "email" ) ) ;
String pwdSmsTel = Util . null2String ( jsonObject . get ( "pwdSmsTel" ) ) ;
String loginedNum = Util . null2String ( jsonObject . get ( "sysUserId" ) ) ;
@ -1175,7 +1186,12 @@ public class RocketmqUtil {
String lastname = staffName ;
String staffId = Util . null2String ( jsonObject . get ( "staffId" ) ) ;
String eId = Util . null2String ( jsonObject . get ( "eId" ) ) ;
String eId = "" ;
if ( jsonObject . containsKey ( "eid" ) ) {
eId = Util . null2String ( jsonObject . get ( "eid" ) ) ;
} else if ( jsonObject . containsKey ( "eId" ) ) {
eId = Util . null2String ( jsonObject . get ( "eId" ) ) ;
}
bb . writeLog ( "eId:" + eId ) ;
bb . writeLog ( "staffId:" + staffId ) ;
@ -1214,9 +1230,9 @@ public class RocketmqUtil {
if ( "M" . equalsIgnoreCase ( actType ) )
{
String userUpdateSql = " update hrmresource set lastname=?,departmentid=?,subcompanyid1=?," +
" creater=?,email=?,mobile=?, jobtitle=?, status=?,dsporder=?,lastmoddate=?,modified=? where workcode=? ";
" creater=?,email=?,mobile=?, status=?,dsporder=?,lastmoddate=?,modified=? where workcode=? ";
bb . writeLog ( "userUpdateSql:" + userUpdateSql ) ;
boolean flag = rs . executeUpdate ( userUpdateSql , new Object [ ] { lastname , deptId , subcompanyid1 , creator , email , pwdSmsTel , jobTitleId, status, loginedNum , currentDate , currentDateTime , staffCode } ) ;
boolean flag = rs . executeUpdate ( userUpdateSql , new Object [ ] { lastname , deptId , subcompanyid1 , creator , email , pwdSmsTel , status, loginedNum , currentDate , currentDateTime , staffCode } ) ;
bb . writeLog ( "flag:" + flag ) ;
Map < String , String > dataMap = new HashMap < String , String > ( ) ;
dataMap . put ( "syndate" , nowDateTime ) ;