admin
2019-07-30 573c491b4a1ba60e12a5678a01c1546c0077c1ee
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
package com.yeshi.fanli.service.impl.user;
 
import java.util.Date;
 
import javax.annotation.Resource;
 
import org.springframework.stereotype.Service;
 
import com.yeshi.fanli.dao.mybatis.user.UserInfoDeleteRecordMapper;
import com.yeshi.fanli.entity.bus.user.UserInfo;
import com.yeshi.fanli.entity.bus.user.UserInfoDeleteRecord;
import com.yeshi.fanli.service.inter.user.UserInfoDeleteRecordService;
 
 
@Service
public class UserInfoDeleteRecordServiceImpl implements UserInfoDeleteRecordService {
 
    @Resource
    private UserInfoDeleteRecordMapper userInfoDeleteRecordMapper;
    
 
    @Override
    public void addDeleteRecord(Long uid, int state, String reason) {
         UserInfoDeleteRecord  record = new  UserInfoDeleteRecord();
         record.setState(state);
         record.setReason(reason);
         record.setUserInfo(new UserInfo(uid));
         record.setCreateTime(new Date());
         userInfoDeleteRecordMapper.insertSelective(record);
    }
    
}