lidongdong
2023-11-18 139d5946b674129881526f6786c27bcad0c0d3cb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
package com.panzhihua.service_dangjian.service.impl;
 
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.common.model.vos.community.building.IntegratingTaskVO;
import com.panzhihua.service_dangjian.dao.NewFightIntegratingTaskDao;
import com.panzhihua.service_dangjian.entity.IntegratingTask;
import com.panzhihua.service_dangjian.service.NewFightIntegratingTaskService;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
/**
 * @program: springcloud_k8s_panzhihuazhihuishequ
 * @description: 党组织
 * @author: huang.hongfa weixin hhf9596 qq 959656820
 * @create: 2020-11-30 11:40
 **/
@Service
public class NewFightIntegratingTaskServiceImpl extends ServiceImpl<NewFightIntegratingTaskDao,
        IntegratingTask> implements NewFightIntegratingTaskService
{
 
    @Override
    public List<IntegratingTask> getList(String userId, String communityId)
    {
        return baseMapper.getList(userId,communityId);
    }
 
 
    @Override
    public R addData(IntegratingTaskVO item)
    {
        int num=baseMapper.addData(item);
        if(num>0)
        {
            return R.ok();
        }
        return R.fail("操作失败");
    }
 
    @Override
    public R editData(IntegratingTaskVO item) {
        int num=baseMapper.editData(item);
        if(num>0)
        {
            return R.ok();
        }
        return R.fail("操作失败");
    }
 
 
    @Override
    public R expurgateData(String id)
    {
        int num= baseMapper.expurgateData(id);
        if(num>0)
        {
            return R.ok();
        }
        return R.fail("操作失败");
    }
 
    @Override
    public R truncateData() {
        int num= baseMapper.truncateData();
        if(num>0)
        {
            return R.ok();
        }
        return R.fail("操作失败");
    }
 
 
}