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;
|
}
|
}
|