| | |
| | | import com.iailab.module.model.mpk.dao.ModelMethodDao; |
| | | import com.iailab.module.model.mpk.dto.ModelMethodDTO; |
| | | import com.iailab.module.model.mpk.entity.ModelMethodEntity; |
| | | import com.iailab.module.model.mpk.service.MethodSettingService; |
| | | import com.iailab.module.model.mpk.service.ModelMethodService; |
| | | import com.iailab.module.model.mpk.service.SettingSelectService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | |
| | | public class ModelMethodServiceImpl extends BaseServiceImpl<ModelMethodDao, ModelMethodEntity> implements ModelMethodService { |
| | | |
| | | @Autowired |
| | | private SettingSelectService settingSelectService; |
| | | private MethodSettingService methodSettingService; |
| | | |
| | | @Override |
| | | public void deleteByMap(Map<String, Object> map) { |
| | |
| | | entity.setMpkFileId(fileId); |
| | | entity.setSort(i); |
| | | baseDao.insert(entity); |
| | | settingSelectService.insertList(list.get(i).getMethodSettings(), entity.getId()); |
| | | if (!CollectionUtils.isEmpty(list.get(i).getMethodSettings())) { |
| | | methodSettingService.insertList(list.get(i).getMethodSettings(), entity.getId()); |
| | | } |
| | | } |
| | | } |
| | | |