由内向外同步--方法名冲突解决

master
wj 2 years ago
parent 1996f5a762
commit 29ed419219

@ -20,13 +20,13 @@ public interface BasicCorpDao extends BaseMapperPlus<BasicCorpDao, BasicCorpEnti
int insertEntity(BasicCorpEntity basicUnitMaintainEntity);
int updateById(BasicCorpEntity basicUnitMaintainSaveRequest);
int updateEntityById(BasicCorpEntity basicUnitMaintainSaveRequest);
BasicCorpEntity selectByThirdId(BasicUnitMaintainFilterRequest basicUnitMaintainFilterRequest);
boolean deleteById(@Param("id") String id);
BasicCorpEntity selectById(@Param("id") String id);
BasicCorpEntity selectEntityById(@Param("id") String id);
List<BasicCorpEntity> batchSelectByIds(@Param("ids") List<Integer> id);

@ -56,7 +56,7 @@ public class BasicCorpServiceImpl extends ServiceImpl<BasicCorpDao, BasicCorpEnt
@Override
public boolean updateById(BasicCorpEntity basicUnitMaintainSaveRequest) {
basicUnitMaintainSaveRequest.setUpdateTime(new Date());
return basicCorpDao.updateById(basicUnitMaintainSaveRequest) == 0 ? false : true;
return basicCorpDao.updateEntityById(basicUnitMaintainSaveRequest) == 0 ? false : true;
}
@Override
@ -117,7 +117,7 @@ public class BasicCorpServiceImpl extends ServiceImpl<BasicCorpDao, BasicCorpEnt
@Override
public BasicCorpEntity selectById(String id) {
return basicCorpDao.selectById(id);
return basicCorpDao.selectEntityById(id);
}
@Override

@ -174,7 +174,7 @@
</insert>
<update id="updateById" parameterType="com.glxp.api.entity.basic.BasicCorpEntity">
<update id="updateEntityById" parameterType="com.glxp.api.entity.basic.BasicCorpEntity">
UPDATE basic_corp
<trim prefix="set" suffixOverrides=",">
<if test="thirdId != null">thirdId=#{thirdId},</if>
@ -214,7 +214,7 @@
</delete>
<select id="selectById" parameterType="Map" resultType="com.glxp.api.entity.basic.BasicCorpEntity">
<select id="selectEntityById" parameterType="Map" resultType="com.glxp.api.entity.basic.BasicCorpEntity">
select *
FROM basic_corp
WHERE id = #{id}

Loading…
Cancel
Save