| | |
| | |
|
| | | import org.apache.commons.beanutils.PropertyUtils;
|
| | | import org.springframework.stereotype.Service;
|
| | | import org.yeshi.utils.tencentcloud.COSManager;
|
| | |
|
| | | import com.yeshi.fanli.dao.mybatis.homemodule.SpecialCardMapper;
|
| | | import com.yeshi.fanli.dao.mybatis.homemodule.SuperSpecialCardMapper;
|
| | | import com.yeshi.fanli.entity.bus.homemodule.Special;
|
| | | import com.yeshi.fanli.entity.bus.homemodule.SpecialCard;
|
| | | import com.yeshi.fanli.entity.bus.homemodule.SuperSpecialCard;
|
| | | import com.yeshi.fanli.entity.system.System;
|
| | | import com.yeshi.fanli.service.inter.config.SystemService;
|
| | | import com.yeshi.fanli.entity.system.BusinessSystem;
|
| | | import com.yeshi.fanli.service.inter.config.BusinessSystemService;
|
| | | import com.yeshi.fanli.service.inter.homemodule.SpecialCardService;
|
| | | import com.yeshi.fanli.service.inter.homemodule.SpecialService;
|
| | | import com.yeshi.fanli.util.StringUtil;
|
| | |
|
| | |
|
| | | @Service
|
| | |
| | | private SpecialCardMapper specialCardMapper;
|
| | |
|
| | | @Resource
|
| | | private SystemService systemService;
|
| | | private BusinessSystemService businessSystemService;
|
| | |
|
| | | @Resource
|
| | | private SpecialService specialService;
|
| | |
| | | return null;
|
| | | }
|
| | |
|
| | | List<System> systemList = systemService.getSystems();
|
| | | List<BusinessSystem> systemList = businessSystemService.getBusinessSystems();
|
| | |
|
| | | List<Long> listCardId = new ArrayList<Long>();
|
| | | for (SpecialCard specialCard: listObj) {
|
| | |
| | |
|
| | | Long id = specialCard.getId();
|
| | |
|
| | | List<System> newList = new ArrayList<System>();
|
| | | List<BusinessSystem> newList = new ArrayList<BusinessSystem>();
|
| | | // 是否有关联系统选项
|
| | | for (System dsystem : systemList) {
|
| | | for (BusinessSystem dsystem : systemList) {
|
| | |
|
| | | System newsystem = new System();
|
| | | BusinessSystem newsystem = new BusinessSystem();
|
| | |
|
| | | try {
|
| | | PropertyUtils.copyProperties(newsystem, dsystem);
|
| | |
| | |
|
| | | for (SuperSpecialCard superSpecialCard : listSuper) {
|
| | | SpecialCard special = superSpecialCard.getSpecialCard();
|
| | | System system = superSpecialCard.getSystem();
|
| | | BusinessSystem system = superSpecialCard.getSystem();
|
| | |
|
| | | // 当前专题 、当前系统
|
| | | if (special != null && system != null && id == special.getId()
|