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

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 insertEntity(BasicCorpEntity basicUnitMaintainEntity);
int updateById(BasicCorpEntity basicUnitMaintainSaveRequest); int updateEntityById(BasicCorpEntity basicUnitMaintainSaveRequest);
BasicCorpEntity selectByThirdId(BasicUnitMaintainFilterRequest basicUnitMaintainFilterRequest); BasicCorpEntity selectByThirdId(BasicUnitMaintainFilterRequest basicUnitMaintainFilterRequest);
boolean deleteById(@Param("id") String id); 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); List<BasicCorpEntity> batchSelectByIds(@Param("ids") List<Integer> id);

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

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

Loading…
Cancel
Save