| | |
| | | @PostMapping("/NeedProblem/timedNewFightNeedProblemInventoryHandler") |
| | | public R timedNewFightNeedProblemInventoryHandler(); |
| | | |
| | | @PostMapping("/NeedProblem/taskTimed/getListTime") |
| | | public R taskTimedGetListTime(); |
| | | |
| | | |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /**************************************************************************************************************************************************** |
| | | * |
| | | * 计时器 |
| | | * |
| | | *****************************************************************************************************************************************/ |
| | | @PostMapping("/taskTimed/getListTime") |
| | | public R getListTime() |
| | | { |
| | | return claimService.getListTime(); |
| | | } |
| | | } |
| | |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @program: springcloud_k8s_panzhihuazhihuishequ |
| | | * @description: 党员双争双评排序 |
| | |
| | | |
| | | int expurgateData(@Param("id") String id); |
| | | |
| | | List<NewFightCommunityConstructionDTO> getListTime(); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | import com.panzhihua.common.model.dtos.partybuilding.NewFightCommunityConstructionDTO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @program: springcloud_k8s_panzhihuazhihuishequ |
| | | * @description: 党组织 |
| | |
| | | |
| | | R expurgateData(String id); |
| | | |
| | | |
| | | R getListTime(); |
| | | |
| | | } |
| | |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @program: springcloud_k8s_panzhihuazhihuishequ |
| | |
| | | |
| | | @Resource |
| | | private NewFightProjectPlanDAO projectPlanService; |
| | | |
| | | |
| | | @Override |
| | | public IPage<NewFightCommunityConstructionDTO> getList(int pageNum, int pageSize, |
| | |
| | | return R.fail("操作失败"); |
| | | } |
| | | |
| | | @Override |
| | | public R getListTime() |
| | | { |
| | | List<NewFightCommunityConstructionDTO> list=baseMapper.getListTime(); |
| | | if(list==null || list.size()<=0 ) |
| | | { |
| | | return R.ok(); |
| | | } |
| | | |
| | | for (NewFightCommunityConstructionDTO item:list) { |
| | | |
| | | // if(StringUtils.equals("1",item.getStatus())) |
| | | // { |
| | | // // 1 已发布 |
| | | // |
| | | // |
| | | // |
| | | // } |
| | | // else if(StringUtils.equals("2",item.getStatus())) |
| | | // { |
| | | // // 1 进行中 |
| | | // |
| | | // |
| | | // } |
| | | |
| | | //预计完成时间 |
| | | Date estimatedTime = item.getEstimatedTime(); |
| | | if (estimatedTime!=null) |
| | | { |
| | | if(new Date().getTime()>estimatedTime.getTime()) |
| | | { |
| | | NewFightCommunityConstructionDTO dto=new NewFightCommunityConstructionDTO(); |
| | | dto.setId(item.getId()); |
| | | dto.setStatus("3"); |
| | | baseMapper.editData(dto); |
| | | } |
| | | } |
| | | } |
| | | |
| | | return R.ok(); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | </delete> |
| | | |
| | | |
| | | |
| | | |
| | | <select id="getListTime" resultType="com.panzhihua.common.model.dtos.partybuilding.NewFightCommunityConstructionDTO"> |
| | | SELECT |
| | | nfcc.id, |
| | | nfcc.item_cover, |
| | | nfcc.item_title, |
| | | nfcc.agreement_title, |
| | | nfcc.agreement_customization_time, |
| | | nfcc.agreement_content, |
| | | nfcc.construction_community_id, |
| | | nfcc.estimated_time, |
| | | nfcc.creation_time, |
| | | nfcc.update_time, |
| | | nfcc.user_id, |
| | | nfcc.status, |
| | | nfcc.community_id |
| | | FROM new_fight_community_construction as nfcc |
| | | where nfcc.status in (1,2) |
| | | </select> |
| | | |
| | | |
| | | |
| | | |
| | | </mapper> |
| | | |
| | |
| | | |
| | | |
| | | |
| | | //定时任务 社区组织共建 定时更新项目进度 |
| | | @XxlJob("taskTimedGetListTimeHandler") |
| | | public ReturnT<String> taskTimedGetListTimeHandler(String param) throws Exception |
| | | { |
| | | log.info("定时任务 社区组织共建 定时更新项目进度 "); |
| | | R r = communityService.taskTimedGetListTime(); |
| | | log.info("执行结果【{}】", r.toString()); |
| | | ReturnT rt= new ReturnT<String>(); |
| | | rt.setCode(ReturnT.SUCCESS_CODE); |
| | | rt.setContent("执行结果【{"+r.toString()+"}】"); |
| | | |
| | | return rt; |
| | | } |
| | | } |