Commit 195bd2d0 authored by eddie.woo's avatar eddie.woo

fix sql

parent 24f00f61
...@@ -524,11 +524,11 @@ public class EnterpriseAccountServiceImpl extends AbstractService { ...@@ -524,11 +524,11 @@ public class EnterpriseAccountServiceImpl extends AbstractService {
//create operationlog for creating enterprise account set //create operationlog for creating enterprise account set
UpdateLogParams updateLogParams = new UpdateLogParams(); UpdateLogParams updateLogParams = new UpdateLogParams();
updateLogParams.setOperationUser(authUserHelper.getCurrentAuditor().get()); updateLogParams.setOperationUser(authUserHelper.getCurrentAuditor().get());
updateLogParams.setUpdateState(""); // updateLogParams.setUpdateState("");
updateLogParams.setOriginalState(""); // updateLogParams.setOriginalState("");
updateLogParams.setOperationContent(""); // updateLogParams.setOperationContent("");
updateLogParams.setOperationModule(OperationModule.BasicDataEnterpriceAccount.value()); updateLogParams.setOperationModule(OperationModule.BasicDataEnterpriceAccount.value());
updateLogParams.setComment(""); // updateLogParams.setComment("");
updateLogParams.setOperateLogType(OperateLogType.OperationLogEnterPrise.value()); updateLogParams.setOperateLogType(OperateLogType.OperationLogEnterPrise.value());
updateLogParams.setOperationAction(OperationAction.AddEnterpriseAccountSet.value()); updateLogParams.setOperationAction(OperationAction.AddEnterpriseAccountSet.value());
updateLogParams.setOperationObject(enterpriseAccountSet.getName()); updateLogParams.setOperationObject(enterpriseAccountSet.getName());
......
...@@ -424,13 +424,13 @@ public class EnterpriseAccountSetServiceImpl { ...@@ -424,13 +424,13 @@ public class EnterpriseAccountSetServiceImpl {
for (EnterpriseAccountSetOrgDto enterpriseAccountSetOrgDto : enterpriseAccountSetOrgDtoList) { for (EnterpriseAccountSetOrgDto enterpriseAccountSetOrgDto : enterpriseAccountSetOrgDtoList) {
UpdateLogParams updateLogParams = new UpdateLogParams(); UpdateLogParams updateLogParams = new UpdateLogParams();
updateLogParams.setOperationUser(authUserHelper.getCurrentAuditor().get()); updateLogParams.setOperationUser(authUserHelper.getCurrentAuditor().get());
updateLogParams.setUpdateState(""); // updateLogParams.setUpdateState("");
updateLogParams.setOriginalState(""); // updateLogParams.setOriginalState("");
updateLogParams.setOperationContent(enterpriseAccountSetOrgDto.getOrganizationName()); updateLogParams.setOperationContent(enterpriseAccountSetOrgDto.getOrganizationName());
updateLogParams.setOperationObject(enterpriseAccountSetDto.getName()); updateLogParams.setOperationObject(enterpriseAccountSetDto.getName());
updateLogParams.setOperationModule(OperationModule.BasicDataEnterpriceAccount.value()); updateLogParams.setOperationModule(OperationModule.BasicDataEnterpriceAccount.value());
updateLogParams.setOperateLogType(OperateLogType.OperationLogEnterPrise.value()); updateLogParams.setOperateLogType(OperateLogType.OperationLogEnterPrise.value());
updateLogParams.setComment(""); // updateLogParams.setComment("");
updateLogParams.setOperationAction(OperationAction.DeleteRelevantOrg.value()); updateLogParams.setOperationAction(OperationAction.DeleteRelevantOrg.value());
updateLogParamsList.add(updateLogParams); updateLogParamsList.add(updateLogParams);
} }
......
...@@ -15,34 +15,34 @@ ...@@ -15,34 +15,34 @@
<insert id="insertSmart" parameterType="pwc.taxtech.atms.entity.OperationLogSmart"> <insert id="insertSmart" parameterType="pwc.taxtech.atms.entity.OperationLogSmart">
insert into ${tableName} insert into ${tableName}
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null"> <if test="@org.apache.commons.lang3.StringUtils@isNotBlank(id)">
ID, ID,
</if> </if>
<if test="operationContent != null"> <if test="@org.apache.commons.lang3.StringUtils@isNotBlank(operationContent)">
OPERATION_CONTENT, OPERATION_CONTENT,
</if> </if>
<if test="moduleName != null"> <if test="@org.apache.commons.lang3.StringUtils@isNotBlank(moduleName)">
MODULE_NAME, MODULE_NAME,
</if> </if>
<if test="operationObject != null"> <if test="@org.apache.commons.lang3.StringUtils@isNotBlank(operationObject)">
OPERATION_OBJECT, OPERATION_OBJECT,
</if> </if>
<if test="operationAction != null"> <if test="@org.apache.commons.lang3.StringUtils@isNotBlank(operationAction)">
OPERATION_ACTION, OPERATION_ACTION,
</if> </if>
<if test="originalState != null"> <if test="@org.apache.commons.lang3.StringUtils@isNotBlank(originalState)">
ORIGINAL_STATE, ORIGINAL_STATE,
</if> </if>
<if test="updateState != null"> <if test="@org.apache.commons.lang3.StringUtils@isNotBlank(updateState)">
UPDATE_STATE, UPDATE_STATE,
</if> </if>
<if test="operationUser != null"> <if test="@org.apache.commons.lang3.StringUtils@isNotBlank(operationUser)">
OPERATION_USER, OPERATION_USER,
</if> </if>
<if test="ip != null"> <if test="@org.apache.commons.lang3.StringUtils@isNotBlank(ip)">
IP, IP,
</if> </if>
<if test="comment != null"> <if test="@org.apache.commons.lang3.StringUtils@isNotBlank(comment)">
"COMMENT", "COMMENT",
</if> </if>
<if test="createTime != null"> <if test="createTime != null">
...@@ -50,34 +50,34 @@ ...@@ -50,34 +50,34 @@
</if> </if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null"> <if test="@org.apache.commons.lang3.StringUtils@isNotBlank(id)">
#{id,jdbcType=VARCHAR}, #{id,jdbcType=VARCHAR},
</if> </if>
<if test="operationContent != null"> <if test="@org.apache.commons.lang3.StringUtils@isNotBlank(operationContent)">
#{operationContent,jdbcType=VARCHAR}, #{operationContent,jdbcType=VARCHAR},
</if> </if>
<if test="moduleName != null"> <if test="@org.apache.commons.lang3.StringUtils@isNotBlank(moduleName)">
#{moduleName,jdbcType=VARCHAR}, #{moduleName,jdbcType=VARCHAR},
</if> </if>
<if test="operationObject != null"> <if test="@org.apache.commons.lang3.StringUtils@isNotBlank(operationObject)">
#{operationObject,jdbcType=VARCHAR}, #{operationObject,jdbcType=VARCHAR},
</if> </if>
<if test="operationAction != null"> <if test="@org.apache.commons.lang3.StringUtils@isNotBlank(operationAction)">
#{operationAction,jdbcType=VARCHAR}, #{operationAction,jdbcType=VARCHAR},
</if> </if>
<if test="originalState != null"> <if test="@org.apache.commons.lang3.StringUtils@isNotBlank(originalState)">
#{originalState,jdbcType=VARCHAR}, #{originalState,jdbcType=VARCHAR},
</if> </if>
<if test="updateState != null"> <if test="@org.apache.commons.lang3.StringUtils@isNotBlank(updateState)">
#{updateState,jdbcType=VARCHAR}, #{updateState,jdbcType=VARCHAR},
</if> </if>
<if test="operationUser != null"> <if test="@org.apache.commons.lang3.StringUtils@isNotBlank(operationUser)">
#{operationUser,jdbcType=VARCHAR}, #{operationUser,jdbcType=VARCHAR},
</if> </if>
<if test="ip != null"> <if test="@org.apache.commons.lang3.StringUtils@isNotBlank(ip)">
#{ip,jdbcType=VARCHAR}, #{ip,jdbcType=VARCHAR},
</if> </if>
<if test="comment != null"> <if test="@org.apache.commons.lang3.StringUtils@isNotBlank(comment)">
#{comment,jdbcType=VARCHAR}, #{comment,jdbcType=VARCHAR},
</if> </if>
<if test="createTime != null"> <if test="createTime != null">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment