Commit eabf8376 authored by wangzb's avatar wangzb

feature-wzb :项目新增第一归属和第二归属字段

parent e839d12b
...@@ -522,9 +522,9 @@ public class TSettleDomain extends BaseEntity { ...@@ -522,9 +522,9 @@ public class TSettleDomain extends BaseEntity {
@Schema(description = "BU归属") @Schema(description = "BU归属")
private String buBelong; private String buBelong;
@Schema(description = "一级指标归属") @Schema(description = "一级指标归属", name = "firstIndicatorBelong")
private String firstIndicatorBelong ; private String firstIndicatorBelong ;
@Schema(description = "二级指标归属") @Schema(description = "二级指标归属", name = "secondIndicatorBelong")
private String secondIndicatorBelong ; private String secondIndicatorBelong ;
} }
...@@ -106,4 +106,7 @@ public interface TSettleDomainMapper extends BaseMapper<TSettleDomain> { ...@@ -106,4 +106,7 @@ public interface TSettleDomainMapper extends BaseMapper<TSettleDomain> {
IPage<CustomerOwnerSelectVo> getCustomerOwnerPage(Page page, IPage<CustomerOwnerSelectVo> getCustomerOwnerPage(Page page,
@Param("customerName")String customerName, @Param("customerName")String customerName,
@Param("userId")String userId); @Param("userId")String userId);
TSettleDomain updateHistoryData(@Param("departNo")String DepartNo);
} }
...@@ -216,8 +216,11 @@ public class TSettleDomainServiceImpl extends ServiceImpl<TSettleDomainMapper, T ...@@ -216,8 +216,11 @@ public class TSettleDomainServiceImpl extends ServiceImpl<TSettleDomainMapper, T
log.error(JSON.toJSONString(vo)); log.error(JSON.toJSONString(vo));
if (Common.isNotNull(tSettleDomainInfo)) { if (Common.isNotNull(tSettleDomainInfo)) {
baseMapper.updateById(domain); baseMapper.updateById(domain);
baseMapper.updateHistoryData(domain.getDepartNo());
} else { } else {
baseMapper.insert(domain); baseMapper.insert(domain);
baseMapper.updateHistoryData(domain.getDepartNo());
} }
} }
return R.ok(); return R.ok();
......
...@@ -473,4 +473,7 @@ ...@@ -473,4 +473,7 @@
and a.id in (select b.settle_id from m_setttle_customer_user b where b.user_id = #{userId}) and a.DELETE_FLAG = '0' and a.id in (select b.settle_id from m_setttle_customer_user b where b.user_id = #{userId}) and a.DELETE_FLAG = '0'
group by a.CUSTOMER_NO order by CREATE_TIME desc group by a.CUSTOMER_NO order by CREATE_TIME desc
</select> </select>
<update id="updateHistoryData">
update ekp_24a8e6a7fc143bb8c48a a,t_settle_domain b set b.FIRST_INDICATOR_BELONG = a.fd_3b1abe1f56113e_text,b.SECOND_INDICATOR_BELONG = a.fd_3b1abe1f56113e_text where a.fd_3a37fe508071fe = b.DEPART_NO
</update>
</mapper> </mapper>
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