yangys
2024-03-28 23a939ed820ee32f9a4309f9c81b7bab5a566f30
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
package com.qianwen.smartman.modules.cps.convert;
 
import com.qianwen.smartman.modules.cps.entity.ShiftModel;
import com.qianwen.smartman.modules.cps.vo.ShiftModelVO;
import com.qianwen.smartman.modules.cps.vo.ShiftSimpleVO;
 
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/cps/convert/ShiftConvertImpl.class */
public class ShiftConvertImpl implements ShiftConvert {
    @Override // org.springblade.modules.cps.convert.ShiftConvert
    public ShiftModelVO convert(ShiftModel db) {
        if (db == null) {
            return null;
        }
        ShiftModelVO shiftModelVO = new ShiftModelVO();
        shiftModelVO.setId(db.getId());
        shiftModelVO.setCreateUser(db.getCreateUser());
        shiftModelVO.setCreateDept(db.getCreateDept());
        shiftModelVO.setCreateTime(db.getCreateTime());
        shiftModelVO.setUpdateUser(db.getUpdateUser());
        shiftModelVO.setUpdateTime(db.getUpdateTime());
        shiftModelVO.setStatus(db.getStatus());
        shiftModelVO.setIsDeleted(db.getIsDeleted());
        shiftModelVO.setCode(db.getCode());
        shiftModelVO.setName(db.getName());
        shiftModelVO.setShiftNumber(db.getShiftNumber());
        shiftModelVO.setColour(db.getColour());
        shiftModelVO.setStartTime(db.getStartTime());
        shiftModelVO.setEndTime(db.getEndTime());
        shiftModelVO.setTenantId(db.getTenantId());
        shiftModelVO.setIsDefault(db.getIsDefault());
        return shiftModelVO;
    }
 
    @Override // org.springblade.modules.cps.convert.ShiftConvert
    public ShiftSimpleVO convertSimple(ShiftModel db) {
        if (db == null) {
            return null;
        }
        ShiftSimpleVO shiftSimpleVO = new ShiftSimpleVO();
        shiftSimpleVO.setId(db.getId());
        shiftSimpleVO.setCode(db.getCode());
        shiftSimpleVO.setName(db.getName());
        shiftSimpleVO.setColour(db.getColour());
        return shiftSimpleVO;
    }
}