Commit a76035c7 by 徐高华

朋友圈

parent 9af69a04
......@@ -57,4 +57,6 @@ public interface QwMomentPlanAttendMapper {
void updateQwData(@Param("planId") Long planId, @Param("clerkId") String clerkId, @Param("likeCount")int likeCount, @Param("momentCount")int momentCount);
CountBO getQwCount(@Param("planId")Long planId);
int getTotalTask(String enterpriseId, String clerkId, Date date);
}
......@@ -23,6 +23,7 @@ import com.gic.haoban.manage.api.util.notify.NoticeMessageUtil;
import com.gic.haoban.manage.service.dao.mapper.TabHaobanStaffClerkRelationMapper;
import com.gic.haoban.manage.service.dao.mapper.WxEnterpriseRelatedMapper;
import com.gic.haoban.manage.service.dao.mapper.chat.*;
import com.gic.haoban.manage.service.dao.mapper.moment.QwMomentPlanAttendMapper;
import com.gic.haoban.manage.service.service.StaffClerkRelationService;
import com.gic.haoban.manage.service.service.content.impl.GroupMessageServiceImpl;
import com.gic.haoban.manage.service.util.StreamUtils;
......@@ -139,6 +140,8 @@ public class GroupChatPlanServiceImpl implements GroupChatPlanService {
private StaffClerkRelationService staffClerkRelationService ;
@Autowired
private SettingApiService settingApiService ;
@Autowired
private QwMomentPlanAttendMapper qwMomentPlanAttendMapper ;
private static GicMQClient mqClient = GICMQClientUtil.getClientInstance();
......@@ -954,6 +957,9 @@ public class GroupChatPlanServiceImpl implements GroupChatPlanService {
int overdue = this.groupChatPlanOwnerLogMapper.getOverdueTask(enterpriseId,clerkId,date) ;
this.qywxGroupSendCanvasApiService.saveNoticeLog(enterpriseId,clerkId,total,overdue,invalid,"chat") ;
}
// 朋友圈
int momentTotal = this.qwMomentPlanAttendMapper.getTotalTask(enterpriseId,clerkId,date) ;
}
}
}
......
......@@ -172,6 +172,14 @@
select <include refid="Base_Column_List" /> from tab_haoban_qw_moment_plan_attend where attend_id = #{attendId}
</select>
<select id="getTotalTask" resultType="int">
select count(1) from tab_haoban_qw_moment_plan_attend a LEFT JOIN tab_haoban_qw_moment_plan b ON a.plan_id = b.plan_id
where a.enterprise_id = #{enterpriseId} and b.end_date <![CDATA[ > ]]> now()
AND a.clerk_id = #{clerkId} AND a.task_status = 1 and a.delete_flag = 0
</select>
<update id="delClerks">
update tab_haoban_qw_moment_plan_attend set delete_flag = 1 , update_time=now() where plan_id = #{planId}
<if test="null != list">
......
......@@ -306,12 +306,12 @@ public class QwMomentController {
for (HaobanQwMomentPlanVO vo : voList) {
if(null != vo.getExecRate() && vo.getExecRate() > 0) {
vo.setExecRateFloat(BigDecimal.valueOf(vo.getExecRate()).divide(BigDecimal.valueOf(100),2,2).doubleValue());
if(vo.getStatusFlag()==1) {
if (vo.getBeginDate().getTime() > System.currentTimeMillis()) {
vo.setStatusFlag(0);
}else if(vo.getEndDate().getTime() < System.currentTimeMillis()) {
vo.setStatusFlag(3);
}
}
if(vo.getStatusFlag()==1) {
if (vo.getBeginDate().getTime() > System.currentTimeMillis()) {
vo.setStatusFlag(0);
}else if(vo.getEndDate().getTime() < System.currentTimeMillis()) {
vo.setStatusFlag(3);
}
}
}
......
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