luoyuanqiao
2022-03-01 1a44a6409a672dcd30a6bcafbf177c918c6e9c68
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActEasyPhotoHandlerServiceImpl.java
@@ -116,4 +116,23 @@
    public R queryByList(PageComActEasyPhotoHandlerDto comActEasyPhotoHandler) {
        return R.ok(this.baseMapper.queryAllByList(comActEasyPhotoHandler));
    }
    /**
     * 添加随手拍、微心愿处理关联记录
     * @param communityId   社区id
     * @param userId    用户id
     * @param serviceId 业务id
     * @param type  人员类型(1.后台用户 2.党员 3.志愿者 4.社工 5.四长四员)
     * @param serviceType   业务类型(1.随手拍 2.微心愿)
     */
    @Override
    public void addHandleRecord(Long communityId, Long userId, Long serviceId, Integer type, Integer serviceType) {
        ComActEasyPhotoHandler easyPhotoHandler = new ComActEasyPhotoHandler();
        easyPhotoHandler.setCommunityId(communityId);
        easyPhotoHandler.setUserId(userId);
        easyPhotoHandler.setServiceId(serviceId);
        easyPhotoHandler.setType(type);
        easyPhotoHandler.setServiceType(serviceType);
        this.baseMapper.insert(easyPhotoHandler);
    }
}