@ -355,7 +355,8 @@ public class SelfServiceInfoCmd {
recordMap . put ( "code" , "200" ) ;
recordMap . put ( "code" , "200" ) ;
recordMap . put ( "type" , "1" ) ;
recordMap . put ( "type" , "1" ) ;
} else {
} else {
int count = initCustomServiceData ( groupId , sourceType , field_id , employeeId , uf_zzfwrktaby_qy , uf_zzfwrkpz_qy , objId ) ;
log . error ( "uf_zzfwrkpz is null " ) ;
int count = initCustomServiceData ( groupId , sourceType , field_id , employeeId , uf_zzfwrktaby_qy , uf_zzfwrkpz_qy ) ;
if ( count > 0 ) {
if ( count > 0 ) {
recordMap . put ( "code" , "-100" ) ;
recordMap . put ( "code" , "-100" ) ;
} else {
} else {
@ -378,7 +379,7 @@ public class SelfServiceInfoCmd {
* @param sourceType
* @param sourceType
* @return
* @return
* /
* /
public int initCustomServiceData ( String groupId , String sourceType , String field_id , String employeeId , String uf_zzfwrktaby_qy , String uf_zzfwrkpz_qy ,String objId ){
public int initCustomServiceData ( String groupId , String sourceType , String field_id , String employeeId , String uf_zzfwrktaby_qy , String uf_zzfwrkpz_qy ){
int errcount = 0 ;
int errcount = 0 ;
try {
try {
List < Map < String , Object > > recordList = getFieldOptionList ( sourceType , groupId , field_id ) ;
List < Map < String , Object > > recordList = getFieldOptionList ( sourceType , groupId , field_id ) ;
@ -670,17 +671,12 @@ public class SelfServiceInfoCmd {
Map < String , Object > recordMap = new HashMap < String , Object > ( ) ;
Map < String , Object > recordMap = new HashMap < String , Object > ( ) ;
String pkey = "uf_zzfwrktaby.qy.value" ;
String uf_zzfwrktaby_qy = jucailinPortalUtils . getUfPropData ( pkey , tenant_key ) ;
pkey = "uf_zzfwrkpz.qy.value" ;
String uf_zzfwrkpz_qy = jucailinPortalUtils . getUfPropData ( pkey , tenant_key ) ;
String code1 = "" ;
String code1 = "" ;
String code2 = "" ;
String code2 = "" ;
try {
try {
String sql1 = " update uf_zzfwrktaby set qy=" + uf_zzfwrktaby_qy + ",updater =" + employeeId + ",is_flow=0,data_status=1 where ry =" + employeeId + " and tenant_key='" + tenant_key + "' and delete_type = 0 " ;
if ( StringUtils . isNotBlank ( employeeId ) ) {
String sql1 = " update uf_zzfwrktaby set delete_type = 1,is_delete=1 where ry =" + employeeId + " and tenant_key='" + tenant_key + "' " ;
Map < String , Object > result1 = databaseUtils . execute ( sourceType , groupId , sql1 ) ;
Map < String , Object > result1 = databaseUtils . execute ( sourceType , groupId , sql1 ) ;
Iterator < Map . Entry < String , Object > > iterator1 = result1 . entrySet ( ) . iterator ( ) ;
Iterator < Map . Entry < String , Object > > iterator1 = result1 . entrySet ( ) . iterator ( ) ;
while ( iterator1 . hasNext ( ) ) {
while ( iterator1 . hasNext ( ) ) {
@ -691,7 +687,7 @@ public class SelfServiceInfoCmd {
code1 = String . valueOf ( result1 . get ( "code" ) ) ;
code1 = String . valueOf ( result1 . get ( "code" ) ) ;
}
}
String sql2 = " update uf_zzfwrkpz set qy="+ uf_zzfwrkpz_qy + ",updater =" + employeeId + ",is_flow=0,data_status =1 where ry ="+ employeeId + " and tenant_key='" + tenant_key + "' and delete_type = 0 ";
String sql2 = " update uf_zzfwrkpz set delete_type = 1,is_delete =1 where ry ="+ employeeId + " and tenant_key='" + tenant_key + "' ";
Map < String , Object > result2 = databaseUtils . execute ( sourceType , groupId , sql2 ) ;
Map < String , Object > result2 = databaseUtils . execute ( sourceType , groupId , sql2 ) ;
Iterator < Map . Entry < String , Object > > iterator2 = result2 . entrySet ( ) . iterator ( ) ;
Iterator < Map . Entry < String , Object > > iterator2 = result2 . entrySet ( ) . iterator ( ) ;
while ( iterator2 . hasNext ( ) ) {
while ( iterator2 . hasNext ( ) ) {
@ -701,6 +697,7 @@ public class SelfServiceInfoCmd {
if ( result2 . containsKey ( "code" ) ) {
if ( result2 . containsKey ( "code" ) ) {
code2 = String . valueOf ( result2 . get ( "code" ) ) ;
code2 = String . valueOf ( result2 . get ( "code" ) ) ;
}
}
}
} catch ( Exception e ) {
} catch ( Exception e ) {
log . error ( "testSapi51-Exception:" + e . getMessage ( ) ) ;
log . error ( "testSapi51-Exception:" + e . getMessage ( ) ) ;