人员中台 - MQ日志补全&相关方用户更新逻辑

xuyifeng-0724-人员中台对接-dev
water_xu 2024-08-12 10:15:37 +08:00
parent 3fc60743f2
commit 2b3510591b
9 changed files with 383 additions and 113 deletions

View File

@ -0,0 +1,18 @@
package com.zcloud.mapper.datasource.mq;
import com.zcloud.entity.PageData;
/**
* mq
* LLX
* 2024-01-10
* www.zcloudchina.com
*/
public interface MqConsumptionErrorLogMapper {
/**
* add
* @param pd
*/
void save(PageData pd);
}

View File

@ -0,0 +1,18 @@
package com.zcloud.mapper.datasource.mq;
import com.zcloud.entity.PageData;
/**
* mq
* LLX
* 2024-01-08
* www.zcloudchina.com
*/
public interface MqConsumptionLogMapper {
/**
* add
* @param pd
*/
void save(PageData pd);
}

View File

@ -3,7 +3,6 @@ package com.zcloud.service.xgf;
import com.zcloud.entity.Page; import com.zcloud.entity.Page;
import com.zcloud.entity.PageData; import com.zcloud.entity.PageData;
import com.zcloud.flow.xgf.util.XgfFlowDto; import com.zcloud.flow.xgf.util.XgfFlowDto;
import org.springframework.dao.EmptyResultDataAccessException;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import java.util.List; import java.util.List;
@ -46,4 +45,6 @@ public interface XgfUserService {
List<PageData> getWorkTask(PageData condition) throws Exception; List<PageData> getWorkTask(PageData condition) throws Exception;
void syncPhoto(PageData request) throws Exception; void syncPhoto(PageData request) throws Exception;
void edit4Mq(PageData syncInfo);
} }

View File

@ -1204,4 +1204,29 @@ public class XgfUserServiceImpl implements XgfUserService {
return "0"; return "0";
} }
@Override
@Transactional(rollbackFor = Exception.class)
public void edit4Mq(PageData syncInfo) {
// 相关方推送更新
syncInfo.put("XGF_USER_ID",syncInfo.getString("USER_ID"));
PageData localData = xgfUserMapper.findById(syncInfo);
if (localData != null && !localData.isEmpty()){
syncInfo.put("STUDY_STATUS", syncInfo.getString("STATUS"));
syncInfo.put("STATUS", "");
syncInfo.put("BELONG_TO_CORP", syncInfo.getString("EMPLOYER"));
syncInfo.put("BELONG_TO_CORP_NAME", syncInfo.getString("EMPLOYER_NAME"));
syncInfo.put("XGF_USER_NAME", syncInfo.getString("NAME"));
xgfUserMapper.edit(syncInfo);
// details
syncInfo.put("XGF_USER_DETAILS_ID",localData.getString("XGF_USER_ID"));
PageData localDetailsData = xgfUserDetailsMapper.findById(syncInfo);
if (localDetailsData != null && !localDetailsData.isEmpty()){
xgfUserDetailsMapper.edit(syncInfo);
}
}
}
} }

View File

@ -4,9 +4,8 @@ import cn.hutool.json.JSONUtil;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.zcloud.dto.TenCorpDto; import com.zcloud.dto.TenCorpDto;
import com.zcloud.entity.PageData; import com.zcloud.entity.PageData;
import com.zcloud.mapper.datasource.xgf.XgfUserDetailsMapper; import com.zcloud.mapper.datasource.mq.MqConsumptionErrorLogMapper;
import com.zcloud.mapper.datasource.xgf.XgfUserMapper; import com.zcloud.mapper.datasource.mq.MqConsumptionLogMapper;
import com.zcloud.service.mq.DockSendMessageService;
import com.zcloud.service.system.UsersService; import com.zcloud.service.system.UsersService;
import com.zcloud.service.xgf.XgfUserService; import com.zcloud.service.xgf.XgfUserService;
import com.zcloud.syncData.SyncTypeEnum; import com.zcloud.syncData.SyncTypeEnum;
@ -21,10 +20,7 @@ import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import javax.annotation.Resource;
import java.util.Date; import java.util.Date;
import java.util.HashMap;
import java.util.Map;
@Component @Component
@RocketMQMessageListener( @RocketMQMessageListener(
@ -34,25 +30,17 @@ import java.util.Map;
messageModel = MessageModel.BROADCASTING) // 添加广播模式 messageModel = MessageModel.BROADCASTING) // 添加广播模式
public class SyncDataListener implements RocketMQListener<String> { public class SyncDataListener implements RocketMQListener<String> {
// @Resource @Autowired
// private MqMessageLogMapper mqMessageLogMapper; private MqConsumptionLogMapper mqConsumptionLogMapper;
public static Map<String, String> dockingRelationMap = new HashMap();
// @Autowired
// private MqConsumptionLogMapper mqConsumptionLogMapper;
@Autowired @Autowired
private UsersService usersService; private UsersService usersService;
@Autowired
private XgfUserMapper xgfUserMapper;
@Autowired
private XgfUserDetailsMapper xgfUserDetailsMapper;
@Autowired
private DockSendMessageService dockSendMessageService;
// @Autowired @Autowired
// private static MqConsumptionErrorLogMapper mqConsumptionErrorLogMapper; private XgfUserService xgfUserService;
@Autowired
private static MqConsumptionErrorLogMapper mqConsumptionErrorLogMapper;
@Override @Override
public void onMessage(String message) { public void onMessage(String message) {
@ -90,18 +78,8 @@ public class SyncDataListener implements RocketMQListener<String> {
String str = tenCorpDto.getData().getString("syncInfo"); String str = tenCorpDto.getData().getString("syncInfo");
PageData syncInfo = JSONUtil.toBean(str, PageData.class); PageData syncInfo = JSONUtil.toBean(str, PageData.class);
if ("xgf".equals(tenCorpDto.getMessage())){ if ("xgf".equals(tenCorpDto.getMessage())){
// 相关方推送更新 // 相关方推送
syncInfo.put("XGF_USER_ID",syncInfo.getString("USER_ID")); xgfUserService.edit4Mq(syncInfo);
PageData localData = xgfUserMapper.findById(syncInfo);
if (localData != null && !localData.isEmpty()){
xgfUserMapper.edit(syncInfo);
syncInfo.put("XGF_USER_DETAILS_ID",localData.getString("XGF_USER_ID"));
PageData localDetailsData = xgfUserDetailsMapper.findById(syncInfo);
if (localDetailsData != null && !localDetailsData.isEmpty()){
xgfUserDetailsMapper.edit(syncInfo);
}
}
} }
PageData localData = usersService.findById(syncInfo); PageData localData = usersService.findById(syncInfo);
if (localData != null && !localData.isEmpty()){ if (localData != null && !localData.isEmpty()){
@ -124,14 +102,14 @@ public class SyncDataListener implements RocketMQListener<String> {
} }
// mqConsumptionLogMapper.save(productionPD); mqConsumptionLogMapper.save(productionPD);
// mqConsumptionLogMapper.save(pd); mqConsumptionLogMapper.save(pd);
} catch (Exception e) { } catch (Exception e) {
productionPD.put("SUCCESS",'0'); productionPD.put("SUCCESS",'0');
productionPD.put("ERROR_MESSAGE", StackTraceUtils.printStackTraceToString(e)); productionPD.put("ERROR_MESSAGE", StackTraceUtils.printStackTraceToString(e));
// mqConsumptionErrorLogMapper.save(productionPD); mqConsumptionErrorLogMapper.save(productionPD);
pd.put("ERROR_MESSAGE",e.getMessage()); pd.put("ERROR_MESSAGE",e.getMessage());
// mqConsumptionLogMapper.save(pd); mqConsumptionLogMapper.save(pd);
e.printStackTrace(); e.printStackTrace();
throw new RuntimeException(e); throw new RuntimeException(e);
} }

View File

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zcloud.mapper.datasource.mq.MqConsumptionErrorLogMapper">
<sql id="tableName">
`qa-gwj-prevention`.`mq_consumption_error_log`
</sql>
<sql id="Field2">
CONSUMPTION_ID,
MARK,
DATA,
MESSAGE_LOG_ID,
SUCCESS,
CREATE_TIME,
CONSUMPTION_TIME,
CONSUMPTION_TYPE,
ERROR_MESSAGE,
URL
</sql>
<sql id="FieldValue">
#{CONSUMPTION_ID},
#{MARK},
#{DATA},
#{MESSAGE_LOG_ID},
#{SUCCESS},
#{CREATE_TIME},
#{CONSUMPTION_TIME},
#{CONSUMPTION_TYPE},
#{ERROR_MESSAGE},
#{URL}
</sql>
<insert id="save" parameterType="pd">
insert into
<include refid="tableName"></include>
(
<include refid="Field2"></include>
) values (
<include refid="FieldValue"></include>
)
</insert>
</mapper>

View File

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zcloud.mapper.datasource.mq.MqConsumptionLogMapper">
<sql id="tableName">
`qa-gwj-prevention`.`mq_consumption_log`
</sql>
<sql id="Field2">
CONSUMPTION_ID,
MARK,
DATA,
MESSAGE_LOG_ID,
SUCCESS,
CREATE_TIME,
CONSUMPTION_TIME,
CONSUMPTION_TYPE,
ERROR_MESSAGE,
URL
</sql>
<sql id="FieldValue">
#{CONSUMPTION_ID},
#{MARK},
#{DATA},
#{MESSAGE_LOG_ID},
#{SUCCESS},
#{CREATE_TIME},
#{CONSUMPTION_TIME},
#{CONSUMPTION_TYPE},
#{ERROR_MESSAGE},
#{URL}
</sql>
<insert id="save" parameterType="pd">
insert into
<include refid="tableName"></include>
(
<include refid="Field2"></include>
) values (
<include refid="FieldValue"></include>
)
</insert>
</mapper>

View File

@ -218,65 +218,182 @@
<update id="edit" parameterType="pd"> <update id="edit" parameterType="pd">
update update
<include refid="tableName"></include> <include refid="tableName"></include>
set <set>
XGF_USER_DETAILS_ID = #{XGF_USER_DETAILS_ID}, <if test="XGF_USER_DETAILS_ID != null and XGF_USER_DETAILS_ID != ''">
XGF_USER_ID = #{XGF_USER_ID}, XGF_USER_DETAILS_ID = #{XGF_USER_DETAILS_ID},
XGF_USER_NAME = #{XGF_USER_NAME}, </if>
BELONG_TO_CORP = #{BELONG_TO_CORP}, <if test="XGF_USER_ID != null and XGF_USER_ID != ''">
BELONG_TO_CORP_NAME = #{BELONG_TO_CORP_NAME}, XGF_USER_ID = #{XGF_USER_ID},
PHONE = #{PHONE}, </if>
CREATE_TIME = #{CREATE_TIME}, <if test="XGF_USER_NAME != null and XGF_USER_NAME != ''">
DEPART_STATE = #{DEPART_STATE}, XGF_USER_NAME = #{XGF_USER_NAME},
IS_DELETE = #{IS_DELETE}, </if>
AGE = #{AGE}, <if test="BELONG_TO_CORP != null and BELONG_TO_CORP != ''">
HKLOCAL = #{HKLOCAL}, BELONG_TO_CORP = #{BELONG_TO_CORP},
ADDRESS = #{ADDRESS}, </if>
DEGREE_OF_EDUCATION = #{DEGREE_OF_EDUCATION}, <if test="BELONG_TO_CORP_NAME != null and BELONG_TO_CORP_NAME != ''">
DEGREE_OF_EDUCATION_NAME = #{DEGREE_OF_EDUCATION_NAME}, BELONG_TO_CORP_NAME = #{BELONG_TO_CORP_NAME},
CORP_START_DATE = #{CORP_START_DATE}, </if>
POST_ID = #{POST_ID}, <if test="PHONE != null and PHONE != ''">
POST_NAME = #{POST_NAME}, PHONE = #{PHONE},
WORK_SIGN = #{WORK_SIGN}, </if>
JOINED_DATE = #{JOINED_DATE}, <if test="CREATE_TIME != null and CREATE_TIME != ''">
WORK_DATE = #{WORK_DATE}, CREATE_TIME = #{CREATE_TIME},
PHOTO = #{PHOTO}, </if>
DATE_OF_BIRTH = #{DATE_OF_BIRTH}, <if test="DEPART_STATE != null and DEPART_STATE != ''">
ISPAY = #{ISPAY}, DEPART_STATE = #{DEPART_STATE},
ISPAY_NUMBER = #{ISPAY_NUMBER}, </if>
IS_SAFETY_TELL = #{IS_SAFETY_TELL}, <if test="IS_DELETE != null and IS_DELETE != ''">
IS_SAFETY_TIME = #{IS_SAFETY_TIME}, IS_DELETE = #{IS_DELETE},
IS_INJURIES_PAY = #{IS_INJURIES_PAY}, </if>
IS_SIGN_LABOR = #{IS_SIGN_LABOR}, <if test="AGE != null and AGE != ''">
SEX = #{SEX}, AGE = #{AGE},
ENTRY_DATE = #{ENTRY_DATE}, </if>
PERSON_WORK_TYPE = #{PERSON_WORK_TYPE}, <if test="HKLOCAL != null and HKLOCAL != ''">
PERSON_WORK_TYPE_NAME = #{PERSON_WORK_TYPE_NAME}, HKLOCAL = #{HKLOCAL},
NATIONALITY = #{NATIONALITY}, </if>
NATIONALITY_NAME = #{NATIONALITY_NAME}, <if test="ADDRESS != null and ADDRESS != ''">
POLITICAL_TIME = #{POLITICAL_TIME}, ADDRESS = #{ADDRESS},
POLITICAL_STATUS = #{POLITICAL_STATUS}, </if>
POLITICAL_STATUS_NAME = #{POLITICAL_STATUS_NAME}, <if test="DEGREE_OF_EDUCATION != null and DEGREE_OF_EDUCATION != ''">
IS_INJURIES_PAY_TIME = #{IS_INJURIES_PAY_TIME}, DEGREE_OF_EDUCATION = #{DEGREE_OF_EDUCATION},
IS_LEVEL_THREE = #{IS_LEVEL_THREE}, </if>
IS_BODY_ADAPT = #{IS_BODY_ADAPT}, <if test="DEGREE_OF_EDUCATION_NAME != null and DEGREE_OF_EDUCATION_NAME != ''">
IS_SPECIAL_JOB = #{IS_SPECIAL_JOB}, DEGREE_OF_EDUCATION_NAME = #{DEGREE_OF_EDUCATION_NAME},
CORPINFO_ID = #{CORPINFO_ID}, </if>
MANAGER_DEPARTMENT_ID = #{MANAGER_DEPARTMENT_ID}, <if test="CORP_START_DATE != null and CORP_START_DATE != ''">
MANAGER_DEPARTMENT_NAME = #{MANAGER_DEPARTMENT_NAME}, CORP_START_DATE = #{CORP_START_DATE},
COMPETENT_DEPARTMENT_ID = #{COMPETENT_DEPARTMENT_ID}, </if>
COMPETENT_DEPARTMENT_NAME = #{COMPETENT_DEPARTMENT_NAME}, <if test="POST_ID != null and POST_ID != ''">
MAIN_DEPARTMENT_ID = #{MAIN_DEPARTMENT_ID}, POST_ID = #{POST_ID},
MAIN_DEPARTMENT_NAME = #{MAIN_DEPARTMENT_NAME}, </if>
CARD_ID = #{CARD_ID}, <if test="POST_NAME != null and POST_NAME != ''">
DEPARTMENT_ID = #{DEPARTMENT_ID}, POST_NAME = #{POST_NAME},
DEPARTMENT_NAME = #{DEPARTMENT_NAME}, </if>
IS_BF = #{IS_BF}, <if test="WORK_SIGN != null and WORK_SIGN != ''">
IS_SOCIAL = #{IS_SOCIAL}, WORK_SIGN = #{WORK_SIGN},
SOCIAL_NUMBER = #{SOCIAL_NUMBER}, </if>
zzName = #{zzName}, <if test="JOINED_DATE != null and JOINED_DATE != ''">
ANNEX = #{ANNEX}, JOINED_DATE = #{JOINED_DATE},
ATTORNEY = #{ATTORNEY}, </if>
COMMITMENT_LETTER = #{COMMITMENT_LETTER} <if test="WORK_DATE != null and WORK_DATE != ''">
WORK_DATE = #{WORK_DATE},
</if>
<if test="PHOTO != null and PHOTO != ''">
PHOTO = #{PHOTO},
</if>
<if test="DATE_OF_BIRTH != null and DATE_OF_BIRTH != ''">
DATE_OF_BIRTH = #{DATE_OF_BIRTH},
</if>
<if test="ISPAY != null and ISPAY != ''">
ISPAY = #{ISPAY},
</if>
<if test="ISPAY_NUMBER != null and ISPAY_NUMBER != ''">
ISPAY_NUMBER = #{ISPAY_NUMBER},
</if>
<if test="IS_SAFETY_TELL != null and IS_SAFETY_TELL != ''">
IS_SAFETY_TELL = #{IS_SAFETY_TELL},
</if>
<if test="IS_SAFETY_TIME != null and IS_SAFETY_TIME != ''">
IS_SAFETY_TIME = #{IS_SAFETY_TIME},
</if>
<if test="IS_INJURIES_PAY != null and IS_INJURIES_PAY != ''">
IS_INJURIES_PAY = #{IS_INJURIES_PAY},
</if>
<if test="IS_SIGN_LABOR != null and IS_SIGN_LABOR != ''">
IS_SIGN_LABOR = #{IS_SIGN_LABOR},
</if>
<if test="SEX != null and SEX != ''">
SEX = #{SEX},
</if>
<if test="ENTRY_DATE != null and ENTRY_DATE != ''">
ENTRY_DATE = #{ENTRY_DATE},
</if>
<if test="PERSON_WORK_TYPE != null and PERSON_WORK_TYPE != ''">
PERSON_WORK_TYPE = #{PERSON_WORK_TYPE},
</if>
<if test="PERSON_WORK_TYPE_NAME != null and PERSON_WORK_TYPE_NAME != ''">
PERSON_WORK_TYPE_NAME = #{PERSON_WORK_TYPE_NAME},
</if>
<if test="NATIONALITY != null and NATIONALITY != ''">
NATIONALITY = #{NATIONALITY},
</if>
<if test="NATIONALITY_NAME != null and NATIONALITY_NAME != ''">
NATIONALITY_NAME = #{NATIONALITY_NAME},
</if>
<if test="POLITICAL_TIME != null and POLITICAL_TIME != ''">
POLITICAL_TIME = #{POLITICAL_TIME},
</if>
<if test="POLITICAL_STATUS != null and POLITICAL_STATUS != ''">
POLITICAL_STATUS = #{POLITICAL_STATUS},
</if>
<if test="POLITICAL_STATUS_NAME != null and POLITICAL_STATUS_NAME != ''">
POLITICAL_STATUS_NAME = #{POLITICAL_STATUS_NAME},
</if>
<if test="IS_INJURIES_PAY_TIME != null and IS_INJURIES_PAY_TIME != ''">
IS_INJURIES_PAY_TIME = #{IS_INJURIES_PAY_TIME},
</if>
<if test="IS_LEVEL_THREE != null and IS_LEVEL_THREE != ''">
IS_LEVEL_THREE = #{IS_LEVEL_THREE},
</if>
<if test="IS_BODY_ADAPT != null and IS_BODY_ADAPT != ''">
IS_BODY_ADAPT = #{IS_BODY_ADAPT},
</if>
<if test="IS_SPECIAL_JOB != null and IS_SPECIAL_JOB != ''">
IS_SPECIAL_JOB = #{IS_SPECIAL_JOB},
</if>
<if test="CORPINFO_ID != null and CORPINFO_ID != ''">
CORPINFO_ID = #{CORPINFO_ID},
</if>
<if test="MANAGER_DEPARTMENT_ID != null and MANAGER_DEPARTMENT_ID != ''">
MANAGER_DEPARTMENT_ID = #{MANAGER_DEPARTMENT_ID},
</if>
<if test="MANAGER_DEPARTMENT_NAME != null and MANAGER_DEPARTMENT_NAME != ''">
MANAGER_DEPARTMENT_NAME = #{MANAGER_DEPARTMENT_NAME},
</if>
<if test="COMPETENT_DEPARTMENT_ID != null and COMPETENT_DEPARTMENT_ID != ''">
COMPETENT_DEPARTMENT_ID = #{COMPETENT_DEPARTMENT_ID},
</if>
<if test="COMPETENT_DEPARTMENT_NAME != null and COMPETENT_DEPARTMENT_NAME != ''">
COMPETENT_DEPARTMENT_NAME = #{COMPETENT_DEPARTMENT_NAME},
</if>
<if test="MAIN_DEPARTMENT_ID != null and MAIN_DEPARTMENT_ID != ''">
MAIN_DEPARTMENT_ID = #{MAIN_DEPARTMENT_ID},
</if>
<if test="MAIN_DEPARTMENT_NAME != null and MAIN_DEPARTMENT_NAME != ''">
MAIN_DEPARTMENT_NAME = #{MAIN_DEPARTMENT_NAME},
</if>
<if test="CARD_ID != null and CARD_ID != ''">
CARD_ID = #{CARD_ID},
</if>
<if test="DEPARTMENT_ID != null and DEPARTMENT_ID != ''">
DEPARTMENT_ID = #{DEPARTMENT_ID},
</if>
<if test="DEPARTMENT_NAME != null and DEPARTMENT_NAME != ''">
DEPARTMENT_NAME = #{DEPARTMENT_NAME},
</if>
<if test="IS_BF != null and IS_BF != ''">
IS_BF = #{IS_BF},
</if>
<if test="IS_SOCIAL != null and IS_SOCIAL != ''">
IS_SOCIAL = #{IS_SOCIAL},
</if>
<if test="SOCIAL_NUMBER != null and SOCIAL_NUMBER != ''">
SOCIAL_NUMBER = #{SOCIAL_NUMBER},
</if>
<if test="zzName != null and zzName != ''">
zzName = #{zzName},
</if>
<if test="ANNEX != null and ANNEX != ''">
ANNEX = #{ANNEX},
</if>
<if test="ATTORNEY != null and ATTORNEY != ''">
ATTORNEY = #{ATTORNEY},
</if>
<if test="COMMITMENT_LETTER != null and COMMITMENT_LETTER != ''">
COMMITMENT_LETTER = #{COMMITMENT_LETTER}
</if>
</set>
where where
XGF_USER_DETAILS_ID = #{XGF_USER_DETAILS_ID} XGF_USER_DETAILS_ID = #{XGF_USER_DETAILS_ID}
</update> </update>

View File

@ -92,22 +92,53 @@
<update id="edit" parameterType="pd"> <update id="edit" parameterType="pd">
update update
<include refid="tableName"></include> <include refid="tableName"></include>
set <set>
USERNAME = #{USERNAME}, <if test="USERNAME != null and USERNAME != ''">
NAME = #{NAME}, USERNAME = #{USERNAME},
VALID_FLAG = #{VALID_FLAG}, </if>
BELONG_TO_CORP = #{BELONG_TO_CORP}, <if test="NAME != null and NAME != ''">
BELONG_TO_CORP_NAME = #{BELONG_TO_CORP_NAME}, NAME = #{NAME},
IS_DELETE = #{IS_DELETE}, </if>
CREATE_TIME = #{CREATE_TIME}, <if test="VALID_FLAG != null and VALID_FLAG != ''">
CORPINFO_ID = #{CORPINFO_ID}, VALID_FLAG = #{VALID_FLAG},
STATUS = #{STATUS}, </if>
OPERATOR_TIME = #{OPERATOR_TIME}, <if test="BELONG_TO_CORP != null and BELONG_TO_CORP != ''">
ISFLOW = #{ISFLOW}, BELONG_TO_CORP = #{BELONG_TO_CORP},
STUDY_STATUS = #{STUDY_STATUS}, </if>
CHECK_STATUS = #{CHECK_STATUS}, <if test="BELONG_TO_CORP_NAME != null and BELONG_TO_CORP_NAME != ''">
CHECK_STEP = #{CHECK_STEP}, BELONG_TO_CORP_NAME = #{BELONG_TO_CORP_NAME},
LIMIT_END_TIME = #{LIMIT_END_TIME} </if>
<if test="IS_DELETE != null and IS_DELETE != ''">
IS_DELETE = #{IS_DELETE},
</if>
<if test="CREATE_TIME != null and CREATE_TIME != ''">
CREATE_TIME = #{CREATE_TIME},
</if>
<if test="CORPINFO_ID != null and CORPINFO_ID != ''">
CORPINFO_ID = #{CORPINFO_ID},
</if>
<if test="STATUS != null and STATUS != ''">
STATUS = #{STATUS},
</if>
<if test="OPERATOR_TIME != null and OPERATOR_TIME != ''">
OPERATOR_TIME = #{OPERATOR_TIME},
</if>
<if test="ISFLOW != null and ISFLOW != ''">
ISFLOW = #{ISFLOW},
</if>
<if test="STUDY_STATUS != null and STUDY_STATUS != ''">
STUDY_STATUS = #{STUDY_STATUS},
</if>
<if test="CHECK_STATUS != null and CHECK_STATUS != ''">
CHECK_STATUS = #{CHECK_STATUS},
</if>
<if test="CHECK_STEP != null and CHECK_STEP != ''">
CHECK_STEP = #{CHECK_STEP},
</if>
<if test="LIMIT_END_TIME != null and LIMIT_END_TIME != ''">
LIMIT_END_TIME = #{LIMIT_END_TIME}
</if>
</set>
where where
XGF_USER_ID = #{XGF_USER_ID} XGF_USER_ID = #{XGF_USER_ID}
</update> </update>