3/4 sync 优化1.0

dev_drug_dm
wangwei 4 months ago
parent b2f8eb0f30
commit 6dd93982ca

@ -1,6 +1,7 @@
package com.glxp.api.dao.sync;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glxp.api.dao.BaseMapperPlus;
import com.glxp.api.entity.sync.BasicExportStatusEntity;
import com.glxp.api.req.sync.BasicExportStatusRequest;
import org.apache.ibatis.annotations.Mapper;
@ -9,7 +10,7 @@ import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
public interface BasicExportDao extends BaseMapper<BasicExportStatusEntity> {
public interface BasicExportDao extends BaseMapperPlus<BasicExportDao,BasicExportStatusEntity,BasicExportStatusEntity> {
List<BasicExportStatusEntity> filterExportStatus(BasicExportStatusRequest basicExportStatusRequest);

@ -1,7 +1,8 @@
package com.glxp.api.dao.sync;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glxp.api.dao.BaseMapperPlus;
import com.glxp.api.entity.sync.SyncDataChangeBustypesEntity;
public interface SyncDataChangeBustypesDao extends BaseMapper<SyncDataChangeBustypesEntity> {
public interface SyncDataChangeBustypesDao extends BaseMapperPlus<SyncDataChangeBustypesDao,SyncDataChangeBustypesEntity,SyncDataChangeBustypesEntity> {
}

@ -1,12 +1,11 @@
package com.glxp.api.dao.sync;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glxp.api.dao.BaseMapperPlus;
import com.glxp.api.entity.sync.SyncEditLogEntity;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface SyncEditLogMapper extends BaseMapper<SyncEditLogEntity> {
int insertOrUpdate(SyncEditLogEntity record);
public interface SyncEditLogMapper extends BaseMapperPlus<SyncEditLogMapper,SyncEditLogEntity,SyncEditLogEntity> {
boolean insertOrUpdate(SyncEditLogEntity record);
int insertOrUpdateSelective(SyncEditLogEntity record);
}

@ -8,5 +8,4 @@ import org.apache.ibatis.annotations.Mapper;
public interface SyncEditTypeMapper extends BaseMapper<SyncEditTypeEntity> {
int insertOrUpdate(SyncEditTypeEntity record);
int insertOrUpdateSelective(SyncEditTypeEntity record);
}

@ -12,7 +12,7 @@ public class SyncEditLogService extends ServiceImpl<SyncEditLogMapper, SyncEditL
@Resource
SyncEditLogMapper syncEditLogMapper;
public int insertOrUpdate(SyncEditLogEntity record) {
public boolean insertOrUpdate(SyncEditLogEntity record) {
return baseMapper.insertOrUpdate(record);
}

@ -21,7 +21,7 @@
</where>
order BY id
</select>
<select id="selectByParamKey" parameterType="com.glxp.api.req.system.FilterParamConfigRequest"
resultType="com.glxp.api.entity.system.SystemParamConfigEntity">
SELECT *

@ -72,115 +72,4 @@
updateTime = #{updateTime,jdbcType=TIMESTAMP},
</trim>
</insert>
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id" parameterType="com.glxp.api.entity.sync.SyncEditLogEntity" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into sync_edit_log
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="recordCode != null">
recordCode,
</if>
<if test="operType != null">
operType,
</if>
<if test="dataType != null">
dataType,
</if>
<if test="url != null">
url,
</if>
<if test="param != null">
param,
</if>
<if test="jsonResult != null">
jsonResult,
</if>
<if test="directType != null">
directType,
</if>
<if test="remark != null">
remark,
</if>
<if test="operUser != null">
operUser,
</if>
<if test="updateTime != null">
updateTime,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="recordCode != null">
#{recordCode,jdbcType=VARCHAR},
</if>
<if test="operType != null">
#{operType,jdbcType=TINYINT},
</if>
<if test="dataType != null">
#{dataType,jdbcType=VARCHAR},
</if>
<if test="url != null">
#{url,jdbcType=VARCHAR},
</if>
<if test="param != null">
#{param,jdbcType=VARCHAR},
</if>
<if test="jsonResult != null">
#{jsonResult,jdbcType=VARCHAR},
</if>
<if test="directType != null">
#{directType,jdbcType=TINYINT},
</if>
<if test="remark != null">
#{remark,jdbcType=VARCHAR},
</if>
<if test="operUser != null">
#{operUser,jdbcType=VARCHAR},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=INTEGER},
</if>
<if test="recordCode != null">
recordCode = #{recordCode,jdbcType=VARCHAR},
</if>
<if test="operType != null">
operType = #{operType,jdbcType=TINYINT},
</if>
<if test="dataType != null">
dataType = #{dataType,jdbcType=VARCHAR},
</if>
<if test="url != null">
url = #{url,jdbcType=VARCHAR},
</if>
<if test="param != null">
param = #{param,jdbcType=VARCHAR},
</if>
<if test="jsonResult != null">
jsonResult = #{jsonResult,jdbcType=VARCHAR},
</if>
<if test="directType != null">
directType = #{directType,jdbcType=TINYINT},
</if>
<if test="remark != null">
remark = #{remark,jdbcType=VARCHAR},
</if>
<if test="operUser != null">
operUser = #{operUser,jdbcType=VARCHAR},
</if>
<if test="updateTime != null">
updateTime = #{updateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
</mapper>

@ -43,52 +43,4 @@
remark = #{remark,jdbcType=VARCHAR},
</trim>
</insert>
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id" parameterType="com.glxp.api.entity.sync.SyncEditTypeEntity" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into sync_edit_type
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="code != null">
code,
</if>
<if test="name != null">
`name`,
</if>
<if test="remark != null">
remark,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="code != null">
#{code,jdbcType=VARCHAR},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="remark != null">
#{remark,jdbcType=VARCHAR},
</if>
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=INTEGER},
</if>
<if test="code != null">
code = #{code,jdbcType=VARCHAR},
</if>
<if test="name != null">
`name` = #{name,jdbcType=VARCHAR},
</if>
<if test="remark != null">
remark = #{remark,jdbcType=VARCHAR},
</if>
</trim>
</insert>
</mapper>

Loading…
Cancel
Save