Browse Source

删除签到记录

master
yinzuomei 3 years ago
parent
commit
4b3d076a23
  1. 8
      epmet-module/resi-partymember/resi-partymember-server/src/main/java/com/epmet/modules/partyOrg/service/impl/IcPartyActServiceImpl.java
  2. 1
      epmet-module/resi-partymember/resi-partymember-server/src/main/resources/mapper/partyOrg/IcPartyActDao.xml
  3. 1
      epmet-module/resi-partymember/resi-partymember-server/src/main/resources/mapper/partyOrg/IcPartyActOrgDao.xml

8
epmet-module/resi-partymember/resi-partymember-server/src/main/java/com/epmet/modules/partyOrg/service/impl/IcPartyActServiceImpl.java

@ -84,7 +84,8 @@ public class IcPartyActServiceImpl extends BaseServiceImpl<IcPartyActDao, IcPart
private IcPartyActTypeDictService partyActTypeDictService;
@Autowired
private IcPartyMemberDao icPartyMemberDao;
@Autowired
private IcPartyActSignInRecordDao icPartyActSignInRecordDao;
/**
* 活动类型列表
@ -649,8 +650,13 @@ public class IcPartyActServiceImpl extends BaseServiceImpl<IcPartyActDao, IcPart
}
icPartyActIds.forEach(icPartyActId->{
//删除活动主表和参与活动党组织关系表记录
//只有本人发布的活动才可以删除
baseDao.deleteIcPartyAct(customerId,userId,icPartyActId);
icPartyActOrgDao.updateToDel(userId,icPartyActId);
//删除签到记录
LambdaQueryWrapper<IcPartyActSignInRecordEntity> queryWrapper=new LambdaQueryWrapper<>();
queryWrapper.eq(IcPartyActSignInRecordEntity::getIcPartyActId,icPartyActId);
icPartyActSignInRecordDao.delete(queryWrapper);
});
}

1
epmet-module/resi-partymember/resi-partymember-server/src/main/resources/mapper/partyOrg/IcPartyActDao.xml

@ -204,6 +204,7 @@
UPDATED_TIME=now()
where customer_id=#{customerId}
and id=#{icPartyActId}
and PUBLISH_STAFF_ID=#{userId}
</update>
<select id="selectNeedRemindAutoPublishAct" parameterType="java.lang.String" resultType="com.epmet.modules.partyOrg.entity.IcPartyActEntity">

1
epmet-module/resi-partymember/resi-partymember-server/src/main/resources/mapper/partyOrg/IcPartyActOrgDao.xml

@ -33,5 +33,6 @@
UPDATED_BY=#{userId},
UPDATED_TIME=now()
where IC_PARTY_ACT_ID=#{icPartyActId}
and CREATED_BY=#{userId}
</update>
</mapper>
Loading…
Cancel
Save