yangys
2024-03-27 44028c2d1a7f21da831cb07ecb1b4a7873d8627b
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
package com.qianwen.smartman.modules.system.convert;
 
import java.util.List;
import java.util.Map;
import com.qianwen.smartman.modules.system.dto.LicenseDetailDTO;
import com.qianwen.smartman.modules.system.vo.LicenseDetailVO;
 
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/system/convert/LicenseConverterImpl.class */
public class LicenseConverterImpl implements LicenseConverter {
    @Override // org.springblade.modules.system.convert.LicenseConverter
    public LicenseDetailVO convert(LicenseDetailDTO detailDTO, Map<String, List<String>> collect) {
        if (detailDTO == null && collect == null) {
            return null;
        }
        LicenseDetailVO licenseDetailVO = new LicenseDetailVO();
        if (detailDTO != null) {
            licenseDetailVO.setAccount(detailDTO.getAccount());
            licenseDetailVO.setType(detailDTO.getType());
            licenseDetailVO.setExpireDate(detailDTO.getExpireDate());
            licenseDetailVO.setApplyDate(detailDTO.getApplyDate());
        }
        licenseDetailVO.setModuleNames(collect);
        return licenseDetailVO;
    }
}