| | |
| | | package com.vci.plugins.controller; |
| | | |
| | | import com.vci.corba.common.VCIError; |
| | | import com.vci.client.bof.ClientBusinessObject; |
| | | import com.vci.client.bof.ClientBusinessObjectOperation; |
| | | import com.vci.corba.common.PLException; |
| | | import com.vci.corba.query.data.KV; |
| | | import com.vci.plugins.dto.AuditTaskDTO; |
| | | import com.vci.starter.web.pagemodel.BaseResult; |
| | | import com.vci.starter.web.util.VciBaseUtil; |
| | |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import plm.bs.bom.clientobject.ClientBusinessObject; |
| | | import plm.bs.bom.clientobject.ClientBusinessObjectOperation; |
| | | import plm.corba.qt.KV; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Arrays; |
| | |
| | | cbo.setAttributeValue("departmentname","PLNAME".equals(kvs[index][0].key.toUpperCase(Locale.ROOT)) ? kvs[index][0].value : kvs[index][1].value); |
| | | createList.add(cbo); |
| | | } |
| | | } catch (VCIError vciError) { |
| | | } catch ( PLException vciError) { |
| | | vciError.printStackTrace(); |
| | | } |
| | | }); |
| | | operation.batchSaveCreateBuinessObject(createList.toArray(new ClientBusinessObject[0])); |
| | | } catch (VCIError vciError) { |
| | | } catch ( PLException vciError) { |
| | | vciError.printStackTrace(); |
| | | return BaseResult.fail("创建评审任务失败"); |
| | | } |
| | |
| | | if (StringUtils.isNotBlank(attributeValue)) { |
| | | cbo.setAttributeValue(attributeName, attributeValue); |
| | | } |
| | | } catch (VCIError vciError) { |
| | | } catch (PLException vciError) { |
| | | vciError.printStackTrace(); |
| | | } |
| | | } |