You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1344 lines
41 KiB
1344 lines
41 KiB
package com.spring.modules.sampleManagement.controller;
|
|
|
|
|
|
|
|
import com.spring.common.utils.PageUtils;
|
|
import com.spring.common.utils.R;
|
|
import com.spring.modules.base.data.PlmBmModelHeaderData;
|
|
import com.spring.modules.base.data.PlmBmPropertiesValueData;
|
|
import com.spring.modules.change.vo.ChangeRequestVo;
|
|
import com.spring.modules.part.entity.BomDetailEntity;
|
|
import com.spring.modules.part.entity.RoutingDetailEntity;
|
|
import com.spring.modules.part.vo.*;
|
|
import com.spring.modules.project.data.PlmOperatorData;
|
|
import com.spring.modules.project.data.PlmProjectPartData;
|
|
import com.spring.modules.project.data.TechnicalCustomerInfoData;
|
|
import com.spring.modules.quotation.entity.QuotationHeader;
|
|
import com.spring.modules.quotation.vo.QuotationDetailVo;
|
|
import com.spring.modules.sampleManagement.dao.UpBMRevNoData;
|
|
import com.spring.modules.sampleManagement.data.*;
|
|
import com.spring.modules.sampleManagement.entity.NodeVo;
|
|
import com.spring.modules.sampleManagement.service.TechnicalSpecificationService;
|
|
import com.spring.modules.sampleManagement.service.TechnicalSpecificationSheetService;
|
|
import com.spring.modules.sift.utils.QueryCriteriaConstructorDefault;
|
|
import com.spring.modules.sift.vo.QuerySavedVo;
|
|
import com.spring.modules.sys.dao.SysMenuDao;
|
|
import com.spring.modules.sys.entity.SysUserEntity;
|
|
import org.apache.shiro.SecurityUtils;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
import java.util.HashMap;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
|
|
@RequestMapping("/technicalSpecification")
|
|
@Controller
|
|
public class TechnicalSpecificationController {
|
|
|
|
@Autowired
|
|
private TechnicalSpecificationService technicalSpecificationService;
|
|
@Autowired
|
|
private TechnicalSpecificationSheetService technicalSpecificationSheetService;
|
|
@Autowired
|
|
private SysMenuDao sysMenuDao;
|
|
@Autowired
|
|
private QueryCriteriaConstructorDefault queryCriteriaConstructorDefault;
|
|
|
|
@PostMapping(value="/technicalSpecificationListSearch")
|
|
@ResponseBody
|
|
public R technicalSpecificationListSearch(@RequestBody PlmTechnicalSpecificationSheetData data){
|
|
PageUtils page = technicalSpecificationService.technicalSpecificationListSearch(data);
|
|
// PageUtils page = technicalSpecificationSheetService.technicalSpecificationListSearch(data);
|
|
return R.ok().put("page", page);
|
|
}
|
|
|
|
@PostMapping(value="/technicalSpecificationListSearch/any")
|
|
@ResponseBody
|
|
public R technicalSpecificationListSearchByAnyField(@RequestBody QuerySavedVo querySavedVo){
|
|
PageUtils page = technicalSpecificationService.technicalSpecificationListSearchByAnyField(querySavedVo);
|
|
return R.ok().put("page", page);
|
|
}
|
|
|
|
/**
|
|
* @Description TODO
|
|
* @Title saveTechnicalSpecificationSheet
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/9/27 9:33
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/saveTechnicalSpecificationSheet")
|
|
@ResponseBody
|
|
public R saveTechnicalSpecificationSheet(@RequestBody PlmTechnicalSpecificationSheetData data){
|
|
PlmTechnicalSpecificationSheetData result= technicalSpecificationService.saveTechnicalSpecificationSheet(data);
|
|
return R.ok().put("row",result);
|
|
}
|
|
|
|
@PostMapping(value="/searchPartLastQuotationNo")
|
|
@ResponseBody
|
|
public R searchPartLastQuotationNo(@RequestBody QuotationDetailVo data){
|
|
List<QuotationHeader> result= technicalSpecificationService.searchPartLastQuotationNo(data);
|
|
return R.ok().put("rows",result);
|
|
}
|
|
|
|
|
|
/**
|
|
* @Description 工具条件查询人员
|
|
* @Title searchTechnicalSpecificationTeamStr
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/9/27 11:05
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/searchTechnicalSpecificationTeamStr")
|
|
@ResponseBody
|
|
public R searchTechnicalSpecificationTeamStr(@RequestBody PlmTechnicalSpecificationTeamData data){
|
|
List<String> list = technicalSpecificationService.searchTechnicalSpecificationTeamStr(data);
|
|
return R.ok().put("rows", list);
|
|
}
|
|
|
|
/**
|
|
* @Description TODO
|
|
* @Title getTechnicalCustomerInfoData
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/10/8 16:16
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/getTechnicalCustomerInfoData")
|
|
@ResponseBody
|
|
public R getTechnicalCustomerInfoData(@RequestBody TechnicalCustomerInfoData data){
|
|
TechnicalCustomerInfoData out = technicalSpecificationService.getTechnicalCustomerInfoData(data);
|
|
return R.ok().put("row", out);
|
|
}
|
|
|
|
@PostMapping(value="/searchBMUser")
|
|
@ResponseBody
|
|
public R searchBMUser(@RequestBody PlmOperatorData data){
|
|
List<PlmOperatorData> rows = technicalSpecificationService.searchBMUser(data);
|
|
return R.ok().put("rows", rows);
|
|
}
|
|
|
|
/**
|
|
* @Description TODO
|
|
* @Title tsdBasicInformationSearch
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/10/8 16:20
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/tsdBasicInformationSearch")
|
|
@ResponseBody
|
|
public R tsdBasicInformationSearch(@RequestBody PlmTechnicalSpecificationSheetData data){
|
|
PlmTechnicalSpecificationSheetData row = technicalSpecificationService.tsdBasicInformationSearch(data);
|
|
return R.ok().put("row", row);
|
|
}
|
|
|
|
@PostMapping(value="/BMBasicInformationSearch")
|
|
@ResponseBody
|
|
public R BMBasicInformationSearch(@RequestBody PlmTechnicalSpecificationSheetData data){
|
|
PlmTechnicalSpecificationSheetData row = technicalSpecificationService.BMBasicInformationSearch(data);
|
|
return R.ok().put("row", row);
|
|
}
|
|
|
|
/**
|
|
* @Description TODO
|
|
* @Title deleteTechnicalSpecificationList
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/10/10 10:15
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/deleteTechnicalSpecificationList")
|
|
@ResponseBody
|
|
public R deleteTechnicalSpecificationList(@RequestBody PlmTechnicalSpecificationSheetData data){
|
|
technicalSpecificationService.deleteTechnicalSpecificationList(data);
|
|
return R.ok();
|
|
}
|
|
/**
|
|
* @Description 反刷Process
|
|
* @Title updateBMProcess
|
|
* @param data
|
|
* @author rq
|
|
* @date 2024/4/2 15:10
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/updateBMProcess")
|
|
@ResponseBody
|
|
public R updateBMProcess(@RequestBody PlmTechnicalSpecificationSheetData data){
|
|
technicalSpecificationService.updateBMProcess(data);
|
|
return R.ok();
|
|
}
|
|
/**
|
|
* @Description TODO
|
|
* @Title getTestPartChangeData
|
|
* @param
|
|
* @author rq
|
|
* @date 2023/10/10 15:58
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/getTestPartChangeData")
|
|
@ResponseBody
|
|
public R getTestPartChangeData(@RequestBody PlmProjectPartData inData){
|
|
PlmProjectPartData row = technicalSpecificationService.getTestPartChangeData(inData);
|
|
return R.ok().put("row", row);
|
|
}
|
|
|
|
@PostMapping(value="/getProofingDataByUserRole")
|
|
@ResponseBody
|
|
public R getProofingDataByUserRole(@RequestBody PlmTechnicalSpecificationSheetData inData){
|
|
List<PlmTechnicalSpecificationSheetData> rows = technicalSpecificationService.getProofingDataByUserRole(inData);
|
|
return R.ok().put("rows", rows);
|
|
}
|
|
|
|
/**
|
|
* @Description 保存基础信息 BM
|
|
* @Title updateBMBasicInformation
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/11/15 17:03
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/updateBMBasicInformation")
|
|
@ResponseBody
|
|
public R updateBMBasicInformation(@RequestBody PlmTechnicalSpecificationSheetData data){
|
|
technicalSpecificationService.updateBMBasicInformation(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @Description 查询客户相关信息
|
|
* @Title searchBMcustomerInfo
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/11/16 17:20
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/searchBMcustomerInfo")
|
|
@ResponseBody
|
|
public R searchBMcustomerInfo(@RequestBody PlmTechnicalSpecificationSheetData data){
|
|
List<PlmTechnicalSpecificationSheetData> rows= technicalSpecificationService.searchBMcustomerInfo(data);
|
|
return R.ok().put("rows", rows);
|
|
}
|
|
|
|
/**
|
|
* @Description 查询客户相关信息
|
|
* @Title searchBMcustomerInfo
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/11/16 17:20
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/updateBMcustomerInfo")
|
|
@ResponseBody
|
|
public R updateBMcustomerInfo(@RequestBody PlmTechnicalSpecificationSheetData data){
|
|
technicalSpecificationService.updateBMcustomerInfo(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @Description 查询客户相关信息
|
|
* @Title searchBMPackageInfo
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/11/16 17:20
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/searchBMPackageInfo")
|
|
@ResponseBody
|
|
public R searchBMPackageInfo(@RequestBody PlmBmPackageInfoData data){
|
|
List<PlmBmPackageInfoData> rows= technicalSpecificationService.searchBMPackageInfo(data);
|
|
return R.ok().put("rows", rows);
|
|
}
|
|
|
|
/**
|
|
* @Description 查询客户相关信息
|
|
* @Title searchBMcustomerInfo
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/11/16 17:20
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/updateBMPackageInfo")
|
|
@ResponseBody
|
|
public R updateBMPackageInfo(@RequestBody PlmBmPackageInfoData data){
|
|
technicalSpecificationService.updateBMPackageInfo(data);
|
|
return R.ok();
|
|
}
|
|
/**
|
|
* @Description TODO
|
|
* @Title searchPartDataForSelect
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/11/22 17:00
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/searchPartDataForSelect")
|
|
@ResponseBody
|
|
public R searchPartDataForSelect(@RequestBody PartInformationVo data){
|
|
List<PartInformationVo> rows= technicalSpecificationService.searchPartDataForSelect(data);
|
|
return R.ok().put("rows", rows);
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @param data
|
|
* @return
|
|
*/
|
|
@PostMapping(value="/saveBMBom")
|
|
@ResponseBody
|
|
public R saveBMBom(@RequestBody PlmBmBomData data){
|
|
technicalSpecificationService.saveBMBom(data);
|
|
return R.ok();
|
|
}
|
|
/**
|
|
* @Description 查询BOM
|
|
* @Title searchBMBom
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/11/22 18:02
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/searchBMBom")
|
|
@ResponseBody
|
|
public R searchBMBom(@RequestBody PlmBmBomData data){
|
|
// List<PlmBmBomData> rows= technicalSpecificationService.searchBMBom(data);
|
|
Map<String, Object> map= technicalSpecificationService.searchBMBom(data);
|
|
return R.ok().put("row", map.get("row")).put("rows", map.get("rows"));
|
|
}
|
|
/**
|
|
* @Description TODO
|
|
* @Title searchBMBomDetail
|
|
* @param data
|
|
* @author rq
|
|
* @date 2024/3/12 16:11
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/searchBMBomDetail")
|
|
@ResponseBody
|
|
public R searchBMBomDetail(@RequestBody BomDetailEntity data){
|
|
List<BomDetailVo> rows= technicalSpecificationService.searchBMBomDetail(data);
|
|
return R.ok().put("rows", rows);
|
|
}
|
|
/**
|
|
* @Description 删除bom
|
|
* @Title deleteBMBom
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/11/24 10:29
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/deleteBMBom")
|
|
@ResponseBody
|
|
public R deleteBMBom(@RequestBody PlmBmBomData data){
|
|
technicalSpecificationService.deleteBMBom(data);
|
|
return R.ok();
|
|
}
|
|
|
|
|
|
@PostMapping(value="/searchBMRoutingDetail")
|
|
@ResponseBody
|
|
public R searchBMRoutingDetail(@RequestBody PlmBmRoutingData data){
|
|
List<PlmBmRoutingData> rows= technicalSpecificationService.searchBMRoutingDetail(data);
|
|
return R.ok().put("rows", rows);
|
|
}
|
|
|
|
/**
|
|
* @Description TODO
|
|
* @Title updateBMRoutingDetail
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/11/27 14:46
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/updateBMRoutingDetail")
|
|
@ResponseBody
|
|
public R updateBMRoutingDetail(@RequestBody PlmBmRoutingData data){
|
|
technicalSpecificationService.updateBMRoutingDetail(data);
|
|
return R.ok();
|
|
}
|
|
|
|
@PostMapping(value="/searchBMPropertiesValue")
|
|
@ResponseBody
|
|
public R searchBMPropertiesValue(@RequestBody SearchBMData data){
|
|
List<PlmBmPropertiesValueData> rows= technicalSpecificationService.searchBMPropertiesValue(data);
|
|
return R.ok().put("rows", rows);
|
|
}
|
|
|
|
@PostMapping(value="/saveBMPropertiesValue")
|
|
@ResponseBody
|
|
public R saveBMPropertiesValue(@RequestBody List<PlmBmPropertiesValueData> data){
|
|
technicalSpecificationService.saveBMPropertiesValue(data);
|
|
return R.ok();
|
|
}
|
|
@PostMapping(value="/refreshBMPageModal")
|
|
@ResponseBody
|
|
public R refreshBMPageModal(@RequestBody SearchBMData data){
|
|
technicalSpecificationService.refreshBMPageModal(data);
|
|
return R.ok();
|
|
}
|
|
|
|
@PostMapping(value="/getBMPageBase")
|
|
@ResponseBody
|
|
public R getBMPageBase(@RequestBody SearchBMData data){
|
|
String page= technicalSpecificationService.getBMPageBase(data);
|
|
return R.ok().put("row",page);
|
|
}
|
|
|
|
// @PostMapping(value="/searchBMRoute")
|
|
// @ResponseBody
|
|
// public R searchBMRoute(@RequestBody SearchBMData data){
|
|
// List<PlmBmRoutingDetailData> rows= technicalSpecificationService.searchBMRoute(data);
|
|
// return R.ok().put("rows", rows);
|
|
// }
|
|
|
|
/**
|
|
* @Description TODO
|
|
* @Title searchBMRoute
|
|
* @param data
|
|
* @author rq
|
|
* @date 2024/3/6 10:40
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/searchBMRoute")
|
|
@ResponseBody
|
|
public R searchBMRoute(@RequestBody PlmBmBomData data){
|
|
Map<String, Object> map= technicalSpecificationService.searchBMRoute(data);
|
|
|
|
return R.ok().put("rows", map.get("rows")).put("row", map.get("row"));
|
|
}
|
|
|
|
/**
|
|
* @Description TODO
|
|
* @Title searchBMRoute
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/12/6 17:29
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/saveBMRoute")
|
|
@ResponseBody
|
|
public R saveBMRoute(@RequestBody PlmBmRoutingDetailData data){
|
|
technicalSpecificationService.saveBMRoute(data);
|
|
return R.ok();
|
|
}
|
|
|
|
@PostMapping(value="/deleteBMRoute")
|
|
@ResponseBody
|
|
public R deleteBMRoute(@RequestBody PlmBmRoutingDetailData data){
|
|
technicalSpecificationService.deleteBMRoute(data);
|
|
return R.ok();
|
|
}
|
|
|
|
|
|
@PostMapping(value="/searchBMTPInfoColor")
|
|
@ResponseBody
|
|
public R searchBMTPInfoColor(@RequestBody SearchBMData data){
|
|
List<PlmBmTpInfoColorData> rows= technicalSpecificationService.searchBMTPInfoColor(data);
|
|
return R.ok().put("rows", rows);
|
|
}
|
|
/**
|
|
* @Description TODO
|
|
* @Title searchBMRoute
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/12/6 17:29
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/saveBMTPInfoColor")
|
|
@ResponseBody
|
|
public R saveBMTPInfoColor(@RequestBody PlmBmTpInfoColorData data){
|
|
technicalSpecificationService.saveBMTPInfoColor(data);
|
|
return R.ok();
|
|
}
|
|
|
|
@PostMapping(value="/deleteBMTPInfoColor")
|
|
@ResponseBody
|
|
public R deleteBMTPInfoColor(@RequestBody PlmBmTpInfoColorData data){
|
|
technicalSpecificationService.deleteBMTPInfoColor(data);
|
|
return R.ok();
|
|
}
|
|
|
|
@PostMapping(value="/searchBMTPInfoCut")
|
|
@ResponseBody
|
|
public R searchBMTPInfoCut(@RequestBody SearchBMData data){
|
|
List<PlmBmTpInfoCutData> rows= technicalSpecificationService.searchBMTPInfoCut(data);
|
|
return R.ok().put("rows", rows);
|
|
}
|
|
/**
|
|
* @Description TODO
|
|
* @Title searchBMRoute
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/12/6 17:29
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/saveBMTPInfoCut")
|
|
@ResponseBody
|
|
public R saveBMTPInfoCut(@RequestBody PlmBmTpInfoCutData data){
|
|
technicalSpecificationService.saveBMTPInfoCut(data);
|
|
return R.ok();
|
|
}
|
|
|
|
@PostMapping(value="/deleteBMTPInfoCut")
|
|
@ResponseBody
|
|
public R deleteBMTPInfoCut(@RequestBody PlmBmTpInfoCutData data){
|
|
technicalSpecificationService.deleteBMTPInfoCut(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @Description 查询客户相关信息
|
|
* @Title searchBMPackageInfo
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/11/16 17:20
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/searchBMTPInfoDetail")
|
|
@ResponseBody
|
|
public R searchBMTPInfoDetail(@RequestBody PlmBmTpInfoDetailData data){
|
|
List<PlmBmTpInfoDetailData> rows= technicalSpecificationService.searchBMTPInfoDetail(data);
|
|
return R.ok().put("rows", rows);
|
|
}
|
|
|
|
/**
|
|
* @Description 查询客户相关信息
|
|
* @Title searchBMcustomerInfo
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/11/16 17:20
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/updateBMTPInfoDetail")
|
|
@ResponseBody
|
|
public R updateBMTPInfoDetail(@RequestBody PlmBmTpInfoDetailData data){
|
|
technicalSpecificationService.updateBMTPInfoDetail(data);
|
|
return R.ok();
|
|
}
|
|
|
|
|
|
/**
|
|
* @Description
|
|
* @Title searchBMPrepressDetail
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/11/16 17:20
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/searchBMPrepressDetail")
|
|
@ResponseBody
|
|
public R searchBMPrepressDetail(@RequestBody PlmBmPrepressData data){
|
|
List<PlmBmPrepressData> rows= technicalSpecificationService.searchBMPrepressDetail(data);
|
|
return R.ok().put("rows", rows);
|
|
}
|
|
|
|
/**
|
|
* @Description
|
|
* @Title updateBMPrepressDetail
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/11/16 17:20
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/updateBMPrepressDetail")
|
|
@ResponseBody
|
|
public R updateBMPrepressDetail(@RequestBody PlmBmPrepressData data){
|
|
technicalSpecificationService.updateBMPrepressDetail(data);
|
|
return R.ok();
|
|
}
|
|
|
|
@PostMapping(value="/searchBMPrepressColor")
|
|
@ResponseBody
|
|
public R searchBMPrepressColor(@RequestBody SearchBMData data){
|
|
List<PlmBmPrepressColorData> rows= technicalSpecificationService.searchBMPrepressColor(data);
|
|
return R.ok().put("rows", rows);
|
|
}
|
|
/**
|
|
* @Description TODO
|
|
* @Title saveBMPrepressColor
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/12/6 17:29
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/saveBMPrepressColor")
|
|
@ResponseBody
|
|
public R saveBMPrepressColor(@RequestBody PlmBmPrepressColorData data){
|
|
technicalSpecificationService.saveBMPrepressColor(data);
|
|
return R.ok();
|
|
}
|
|
|
|
@PostMapping(value="/deleteBMPrepressColor")
|
|
@ResponseBody
|
|
public R deleteBMPrepressColor(@RequestBody PlmBmPrepressColorData data){
|
|
technicalSpecificationService.deleteBMPrepressColor(data);
|
|
return R.ok();
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
* @Description
|
|
* @Title searchBMPrepressDetail
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/11/16 17:20
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/searchBMPrintOtherDetail")
|
|
@ResponseBody
|
|
public R searchBMPrintOtherDetail(@RequestBody PlmBmPrintOtherData data){
|
|
List<PlmBmPrintOtherData> rows= technicalSpecificationService.searchBMPrintOtherDetail(data);
|
|
return R.ok().put("rows", rows);
|
|
}
|
|
|
|
/**
|
|
* @Description
|
|
* @Title updateBMPrintOtherDetail
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/11/16 17:20
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/updateBMPrintOtherDetail")
|
|
@ResponseBody
|
|
public R updateBMPrintOtherDetail(@RequestBody PlmBmPrintOtherData data){
|
|
technicalSpecificationService.updateBMPrintOtherDetail(data);
|
|
return R.ok();
|
|
}
|
|
|
|
@PostMapping(value="/searchBMPrintOtherColor")
|
|
@ResponseBody
|
|
public R searchBMPrintOtherColor(@RequestBody SearchBMData data){
|
|
List<PlmBmPrintOtherColorData> rows= technicalSpecificationService.searchBMPrintOtherColor(data);
|
|
return R.ok().put("rows", rows);
|
|
}
|
|
/**
|
|
* @Description TODO
|
|
* @Title saveBMPrintOtherColor
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/12/6 17:29
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/saveBMPrintOtherColor")
|
|
@ResponseBody
|
|
public R saveBMPrintOtherColor(@RequestBody PlmBmPrintOtherColorData data){
|
|
technicalSpecificationService.saveBMPrintOtherColor(data);
|
|
return R.ok();
|
|
}
|
|
|
|
@PostMapping(value="/deleteBMPrintOtherColor")
|
|
@ResponseBody
|
|
public R deleteBMPrintOtherColor(@RequestBody PlmBmPrintOtherColorData data){
|
|
technicalSpecificationService.deleteBMPrintOtherColor(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @Description 修改BM模板信息
|
|
* @Title
|
|
* @param null
|
|
* @author rq
|
|
* @date 2023/12/19 16:35
|
|
* @return null
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/updateBMModal")
|
|
@ResponseBody
|
|
public R updateBMModal(@RequestBody PlmBmModelHeaderData data){
|
|
technicalSpecificationService.updateBMModal(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* @Description 查下BM页面是哪个模板的
|
|
* @Title searchBMPropertiesHeaderForBM
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/12/20 10:38
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/searchBMPropertiesHeaderForBM")
|
|
@ResponseBody
|
|
public R searchBMPropertiesHeaderForBM(@RequestBody SearchBMData data){
|
|
PlmBmModelHeaderData row= technicalSpecificationService.searchBMPropertiesHeaderForBM(data);
|
|
return R.ok().put("row", row);
|
|
}
|
|
//------------------------Ink Mixing 油墨房-----------------------------
|
|
/**
|
|
* @Description
|
|
* @Title searchBMPrepressDetail
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/11/16 17:20
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/searchBMInkMixingDetail")
|
|
@ResponseBody
|
|
public R searchBMInkMixingDetail(@RequestBody PlmBmInkMixingData data){
|
|
List<PlmBmInkMixingData> rows= technicalSpecificationService.searchBMInkMixingDetail(data);
|
|
return R.ok().put("rows", rows);
|
|
}
|
|
|
|
/**
|
|
* @Description
|
|
* @Title updateBMInkMixingDetail
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/11/16 17:20
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/updateBMInkMixingDetail")
|
|
@ResponseBody
|
|
public R updateBMInkMixingDetail(@RequestBody PlmBmInkMixingData data){
|
|
technicalSpecificationService.updateBMInkMixingDetail(data);
|
|
return R.ok();
|
|
}
|
|
|
|
@PostMapping(value="/searchBMInkMixingColor")
|
|
@ResponseBody
|
|
public R searchBMInkMixingColor(@RequestBody SearchBMData data){
|
|
List<PlmBmInkMixingColorData> rows= technicalSpecificationService.searchBMInkMixingColor(data);
|
|
return R.ok().put("rows", rows);
|
|
}
|
|
/**
|
|
* @Description TODO
|
|
* @Title saveBMInkMixingColor
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/12/6 17:29
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/saveBMInkMixingColor")
|
|
@ResponseBody
|
|
public R saveBMInkMixingColor(@RequestBody PlmBmInkMixingColorData data){
|
|
technicalSpecificationService.saveBMInkMixingColor(data);
|
|
return R.ok();
|
|
}
|
|
|
|
@PostMapping(value="/deleteBMInkMixingColor")
|
|
@ResponseBody
|
|
public R deleteBMInkMixingColor(@RequestBody PlmBmInkMixingColorData data){
|
|
technicalSpecificationService.deleteBMInkMixingColor(data);
|
|
return R.ok();
|
|
}
|
|
|
|
//------------------------Ink Formulation 油墨配方-----------------------------
|
|
|
|
/**
|
|
* @Description
|
|
* @Title searchBMPrepressDetail
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/11/16 17:20
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/searchBMInkFormulationDetail")
|
|
@ResponseBody
|
|
public R searchBMInkFormulationDetail(@RequestBody PlmBmInkFormulationData data){
|
|
List<PlmBmInkFormulationData> rows= technicalSpecificationService.searchBMInkFormulationDetail(data);
|
|
return R.ok().put("rows", rows);
|
|
}
|
|
|
|
/**
|
|
* @Description
|
|
* @Title updateBMInkFormulationDetail
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/11/16 17:20
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/updateBMInkFormulationDetail")
|
|
@ResponseBody
|
|
public R updateBMInkFormulationDetail(@RequestBody PlmBmInkFormulationData data){
|
|
technicalSpecificationService.updateBMInkFormulationDetail(data);
|
|
return R.ok();
|
|
}
|
|
|
|
@PostMapping(value="/searchBMInkFormulationColor")
|
|
@ResponseBody
|
|
public R searchBMInkFormulationColor(@RequestBody SearchBMData data){
|
|
List<PlmBmInkFormulationColorData> rows= technicalSpecificationService.searchBMInkFormulationColor(data);
|
|
return R.ok().put("rows", rows);
|
|
}
|
|
/**
|
|
* @Description TODO
|
|
* @Title saveBMInkFormulationColor
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/12/6 17:29
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/saveBMInkFormulationColor")
|
|
@ResponseBody
|
|
public R saveBMInkFormulationColor(@RequestBody PlmBmInkFormulationColorData data){
|
|
technicalSpecificationService.saveBMInkFormulationColor(data);
|
|
return R.ok();
|
|
}
|
|
|
|
@PostMapping(value="/deleteBMInkFormulationColor")
|
|
@ResponseBody
|
|
public R deleteBMInkFormulationColor(@RequestBody PlmBmInkFormulationColorData data){
|
|
technicalSpecificationService.deleteBMInkFormulationColor(data);
|
|
return R.ok();
|
|
}
|
|
|
|
|
|
//------------------------lamination 覆膜-----------------------------
|
|
|
|
/**
|
|
* @Description
|
|
* @Title searchBMPrepressDetail
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/11/16 17:20
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/searchBMLaminationDetail")
|
|
@ResponseBody
|
|
public R searchBMLaminationDetail(@RequestBody PlmBmLaminationData data){
|
|
List<PlmBmLaminationData> rows= technicalSpecificationService.searchBMLaminationDetail(data);
|
|
return R.ok().put("rows", rows);
|
|
}
|
|
|
|
/**
|
|
* @Description
|
|
* @Title updateBMLaminationDetail
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/11/16 17:20
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/updateBMLaminationDetail")
|
|
@ResponseBody
|
|
public R updateBMLaminationDetail(@RequestBody PlmBmLaminationData data){
|
|
technicalSpecificationService.updateBMLaminationDetail(data);
|
|
return R.ok();
|
|
}
|
|
|
|
@PostMapping(value="/searchBMLaminationCut")
|
|
@ResponseBody
|
|
public R searchBMLaminationCut(@RequestBody SearchBMData data){
|
|
List<PlmBmLaminationCutData> rows= technicalSpecificationService.searchBMLaminationCut(data);
|
|
return R.ok().put("rows", rows);
|
|
}
|
|
/**
|
|
* @Description TODO
|
|
* @Title saveBMLaminationCut
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/12/6 17:29
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/saveBMLaminationCut")
|
|
@ResponseBody
|
|
public R saveBMLaminationCut(@RequestBody PlmBmLaminationCutData data){
|
|
technicalSpecificationService.saveBMLaminationCut(data);
|
|
return R.ok();
|
|
}
|
|
|
|
@PostMapping(value="/deleteBMLaminationCut")
|
|
@ResponseBody
|
|
public R deleteBMLaminationCut(@RequestBody PlmBmLaminationCutData data){
|
|
technicalSpecificationService.deleteBMLaminationCut(data);
|
|
return R.ok();
|
|
}
|
|
|
|
|
|
//------------------------ CNC-----------------------------
|
|
|
|
/**
|
|
* @Description
|
|
* @Title searchBMPrepressDetail
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/11/16 17:20
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/searchBMCncDetail")
|
|
@ResponseBody
|
|
public R searchBMCncDetail(@RequestBody PlmBmCncData data){
|
|
List<PlmBmCncData> rows= technicalSpecificationService.searchBMCncDetail(data);
|
|
return R.ok().put("rows", rows);
|
|
}
|
|
|
|
/**
|
|
* @Description
|
|
* @Title updateBMCncDetail
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/11/16 17:20
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/updateBMCncDetail")
|
|
@ResponseBody
|
|
public R updateBMCncDetail(@RequestBody PlmBmCncData data){
|
|
technicalSpecificationService.updateBMCncDetail(data);
|
|
return R.ok();
|
|
}
|
|
|
|
@PostMapping(value="/searchBMCncCut")
|
|
@ResponseBody
|
|
public R searchBMCncCut(@RequestBody SearchBMData data){
|
|
List<PlmBmCncCutData> rows= technicalSpecificationService.searchBMCncCut(data);
|
|
return R.ok().put("rows", rows);
|
|
}
|
|
/**
|
|
* @Description TODO
|
|
* @Title saveBMCncCut
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/12/6 17:29
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/saveBMCncCut")
|
|
@ResponseBody
|
|
public R saveBMCncCut(@RequestBody PlmBmCncCutData data){
|
|
technicalSpecificationService.saveBMCncCut(data);
|
|
return R.ok();
|
|
}
|
|
|
|
@PostMapping(value="/deleteBMCncCut")
|
|
@ResponseBody
|
|
public R deleteBMCncCut(@RequestBody PlmBmCncCutData data){
|
|
technicalSpecificationService.deleteBMCncCut(data);
|
|
return R.ok();
|
|
}
|
|
|
|
//------------------------ Cut-----------------------------
|
|
|
|
/**
|
|
* @Description
|
|
* @Title searchBMPrepressDetail
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/11/16 17:20
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/searchBMCutDetail")
|
|
@ResponseBody
|
|
public R searchBMCutDetail(@RequestBody PlmBmCutData data){
|
|
List<PlmBmCutData> rows= technicalSpecificationService.searchBMCutDetail(data);
|
|
return R.ok().put("rows", rows);
|
|
}
|
|
|
|
/**
|
|
* @Description
|
|
* @Title updateBMCutDetail
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/11/16 17:20
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/updateBMCutDetail")
|
|
@ResponseBody
|
|
public R updateBMCutDetail(@RequestBody PlmBmCutData data){
|
|
technicalSpecificationService.updateBMCutDetail(data);
|
|
return R.ok();
|
|
}
|
|
|
|
@PostMapping(value="/searchBMCutCut")
|
|
@ResponseBody
|
|
public R searchBMCutCut(@RequestBody SearchBMData data){
|
|
List<PlmBmCutCutData> rows= technicalSpecificationService.searchBMCutCut(data);
|
|
return R.ok().put("rows", rows);
|
|
}
|
|
/**
|
|
* @Description TODO
|
|
* @Title saveBMCutCut
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/12/6 17:29
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/saveBMCutCut")
|
|
@ResponseBody
|
|
public R saveBMCutCut(@RequestBody PlmBmCutCutData data){
|
|
technicalSpecificationService.saveBMCutCut(data);
|
|
return R.ok();
|
|
}
|
|
|
|
@PostMapping(value="/deleteBMCutCut")
|
|
@ResponseBody
|
|
public R deleteBMCutCut(@RequestBody PlmBmCutCutData data){
|
|
technicalSpecificationService.deleteBMCutCut(data);
|
|
return R.ok();
|
|
}
|
|
|
|
|
|
//------------------------printing 印刷-----------------------------
|
|
/**
|
|
* @Description
|
|
* @Title searchBMPrepressDetail
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/11/16 17:20
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/searchBMPrintingDetail")
|
|
@ResponseBody
|
|
public R searchBMPrintingDetail(@RequestBody PlmBmPrintingData data){
|
|
List<PlmBmPrintingData> rows= technicalSpecificationService.searchBMPrintingDetail(data);
|
|
return R.ok().put("rows", rows);
|
|
}
|
|
|
|
/**
|
|
* @Description
|
|
* @Title updateBMPrintingDetail
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/11/16 17:20
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/updateBMPrintingDetail")
|
|
@ResponseBody
|
|
public R updateBMPrintingDetail(@RequestBody PlmBmPrintingData data){
|
|
technicalSpecificationService.updateBMPrintingDetail(data);
|
|
return R.ok();
|
|
}
|
|
|
|
@PostMapping(value="/searchBMPrintingColor")
|
|
@ResponseBody
|
|
public R searchBMPrintingColor(@RequestBody SearchBMData data){
|
|
List<PlmBmPrintingColorData> rows= technicalSpecificationService.searchBMPrintingColor(data);
|
|
return R.ok().put("rows", rows);
|
|
}
|
|
/**
|
|
* @Description TODO
|
|
* @Title saveBMPrintingColor
|
|
* @param data
|
|
* @author rq
|
|
* @date 2023/12/6 17:29
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/saveBMPrintingColor")
|
|
@ResponseBody
|
|
public R saveBMPrintingColor(@RequestBody PlmBmPrintingColorData data){
|
|
technicalSpecificationService.saveBMPrintingColor(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* 一键导入
|
|
*/
|
|
@PostMapping(value="/saveBMPrintingColorBatch")
|
|
@ResponseBody
|
|
public R saveBMPrintingColorBatch(@RequestBody PlmBmPrintingColorData data){
|
|
technicalSpecificationService.saveBMPrintingColorBatch(data);
|
|
return R.ok();
|
|
}
|
|
|
|
@PostMapping(value="/deleteBMPrintingColor")
|
|
@ResponseBody
|
|
public R deleteBMPrintingColor(@RequestBody PlmBmPrintingColorData data){
|
|
technicalSpecificationService.deleteBMPrintingColor(data);
|
|
return R.ok();
|
|
}
|
|
|
|
@PostMapping(value="/upBMRevNo")
|
|
@ResponseBody
|
|
public R upBMRevNo(@RequestBody UpBMRevNoData data){
|
|
technicalSpecificationService.upBMRevNo(data);
|
|
return R.ok();
|
|
}
|
|
|
|
@PostMapping(value="/updateBMBomRev")
|
|
@ResponseBody
|
|
public R updateBMBomRev(@RequestBody PlmTechnicalSpecificationSheetData data){
|
|
technicalSpecificationService.updateBMBomRev(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* 保存数据
|
|
*/
|
|
@PostMapping(value="/updateBMProcessBom")
|
|
@ResponseBody
|
|
public R updateBMProcessBom(@RequestBody PlmTechnicalSpecificationSheetData data){
|
|
technicalSpecificationService.updateBMProcessBom(data);
|
|
return R.ok();
|
|
}
|
|
|
|
@PostMapping(value="/updateBMRouteRev")
|
|
@ResponseBody
|
|
public R updateBMRouteRev(@RequestBody PlmTechnicalSpecificationSheetData data){
|
|
technicalSpecificationService.updateBMRouteRev(data);
|
|
return R.ok();
|
|
}
|
|
/**
|
|
* @Description 查询物料所有工艺路线
|
|
* @Title searchRouteDetail
|
|
* @param data
|
|
* @author rq
|
|
* @date 2024/3/16 13:42
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/searchRouteDetail")
|
|
@ResponseBody
|
|
public R searchRouteDetail(@RequestBody RoutingDetailEntity data){
|
|
List<RoutingDetailVo> rows= technicalSpecificationService.searchRouteDetail(data);
|
|
return R.ok().put("rows", rows);
|
|
}
|
|
|
|
@PostMapping(value="/searchBMRemarkPage")
|
|
@ResponseBody
|
|
public R searchBMRemarkPage(@RequestBody PlmTechnicalSpecificationSheetData data){
|
|
List<PlmTechnicalSpecificationSheetData> rows= technicalSpecificationService.searchBMRemarkPage(data);
|
|
return R.ok().put("rows", rows);
|
|
}
|
|
@PostMapping(value="/updateBMRemarkPage")
|
|
@ResponseBody
|
|
public R updateBMRemarkPage(@RequestBody PlmTechnicalSpecificationSheetData data){
|
|
technicalSpecificationService.updateBMRemarkPage(data);
|
|
return R.ok();
|
|
}
|
|
|
|
@PostMapping(value="/checkUrl")
|
|
@ResponseBody
|
|
public R checkUrl(@RequestBody BmUrlData data){
|
|
BmUrlData result= technicalSpecificationService.checkUrl(data);
|
|
return R.ok().put("url", result.getUrl());
|
|
}
|
|
|
|
|
|
@PostMapping(value="/searchBMprintFlexoColor")
|
|
@ResponseBody
|
|
public R searchBMprintFlexoColor(@RequestBody SearchBMData data){
|
|
List<PlmBmPrintFlexoColorData> rows= technicalSpecificationService.searchBMprintFlexoColor(data);
|
|
return R.ok().put("rows", rows);
|
|
}
|
|
|
|
@PostMapping(value="/saveBMprintFlexoColor")
|
|
@ResponseBody
|
|
public R saveBMPrintingColor(@RequestBody PlmBmPrintFlexoColorData data){
|
|
technicalSpecificationService.saveBMprintFlexoColor(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* 一键导入
|
|
*/
|
|
@PostMapping(value="/saveBMPrintFlexoColorBatch")
|
|
@ResponseBody
|
|
public R saveBMPrintFlexoColorBatch(@RequestBody PlmBmPrintFlexoColorData data){
|
|
technicalSpecificationService.saveBMPrintFlexoColorBatch(data);
|
|
return R.ok();
|
|
}
|
|
|
|
@PostMapping(value="/deleteBMprintFlexoColor")
|
|
@ResponseBody
|
|
public R deleteBMprintFlexoColor(@RequestBody PlmBmPrintFlexoColorData data){
|
|
technicalSpecificationService.deleteBMprintFlexoColor(data);
|
|
return R.ok();
|
|
}
|
|
|
|
@PostMapping(value="/searchBMprintIndigoColor")
|
|
@ResponseBody
|
|
public R searchBMprintIndigoColor(@RequestBody SearchBMData data){
|
|
List<PlmBmPrintIndigoColorData> rows= technicalSpecificationService.searchBMprintIndigoColor(data);
|
|
return R.ok().put("rows", rows);
|
|
}
|
|
|
|
@PostMapping(value="/saveBMprintIndigoColor")
|
|
@ResponseBody
|
|
public R saveBMPrintingColor(@RequestBody PlmBmPrintIndigoColorData data){
|
|
technicalSpecificationService.saveBMprintIndigoColor(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* 一键导入
|
|
*/
|
|
@PostMapping(value="/saveBMPrintIndigoColorBatch")
|
|
@ResponseBody
|
|
public R saveBMPrintIndigoColorBatch(@RequestBody PlmBmPrintIndigoColorData data){
|
|
technicalSpecificationService.saveBMPrintIndigoColorBatch(data);
|
|
return R.ok();
|
|
}
|
|
|
|
@PostMapping(value="/deleteBMprintIndigoColor")
|
|
@ResponseBody
|
|
public R deleteBMprintIndigoColor(@RequestBody PlmBmPrintIndigoColorData data){
|
|
technicalSpecificationService.deleteBMprintIndigoColor(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* 下达
|
|
* @param data
|
|
* @return
|
|
*/
|
|
@PostMapping(value="/issueChange")
|
|
@ResponseBody
|
|
public R issueChange(@RequestBody PlmTechnicalSpecificationSheetData data) {
|
|
technicalSpecificationService.issueChange(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* 提交
|
|
* @param data
|
|
* @return
|
|
*/
|
|
@PostMapping(value="/submitChange")
|
|
@ResponseBody
|
|
public R submitChange(@RequestBody PlmTechnicalSpecificationSheetData data) {
|
|
technicalSpecificationService.submitChange(data);
|
|
return R.ok();
|
|
}
|
|
|
|
|
|
|
|
@PostMapping(value="/getBMStatusDesc")
|
|
@ResponseBody
|
|
public R getBMStatusDesc(@RequestBody PlmTechnicalSpecificationSheetData data) {
|
|
String status= technicalSpecificationService.getBMStatusDesc(data);
|
|
Boolean flag=false;
|
|
//是否超级管理员
|
|
if(sysMenuDao.checkSuperAdmin(((SysUserEntity) SecurityUtils.getSubject().getPrincipal()).getUserId()).size()>0){
|
|
flag=true;
|
|
}
|
|
return R.ok().put("status",status).put("superAdmin",flag);
|
|
}
|
|
|
|
@PostMapping(value="/getFinalPartData")
|
|
@ResponseBody
|
|
public R getFinalPartData(@RequestBody PlmProjectPartData data) {
|
|
PageUtils page = technicalSpecificationService.getFinalPartData(data);
|
|
return R.ok().put("page", page);
|
|
}
|
|
|
|
|
|
@PostMapping(value="/getOADetailForBM")
|
|
@ResponseBody
|
|
public R getOADetailForBM(@RequestBody PlmTechnicalSpecificationSheetData data){
|
|
PlmTechnicalSpecificationSheetData result= technicalSpecificationService.getOADetailForBM(data);
|
|
return R.ok().put("row",result);
|
|
}
|
|
|
|
|
|
@PostMapping(value="/searchCopyPart")
|
|
@ResponseBody
|
|
public R searchCopyPart(@RequestBody PlmTechnicalSpecificationSheetData data) {
|
|
PageUtils page = technicalSpecificationService.searchCopyPart(data);
|
|
return R.ok().put("page", page);
|
|
}
|
|
|
|
/**
|
|
* @Description 拷贝技术参数卡
|
|
* @Title copyBm
|
|
* @param data
|
|
* @author rq
|
|
* @date 2024/11/4 10:48
|
|
* @return R
|
|
* @throw
|
|
*/
|
|
@PostMapping(value="/copyBm")
|
|
@ResponseBody
|
|
public R copyBm(@RequestBody PlmTechnicalSpecificationSheetData data) {
|
|
technicalSpecificationService.copyBm(data);
|
|
return R.ok();
|
|
}
|
|
|
|
@PostMapping("/change/log")
|
|
@ResponseBody
|
|
public R changeLog(@RequestBody PlmTechnicalSpecificationSheetData data) {
|
|
List<ChangeRequestVo> list = technicalSpecificationService.queryChangeLog(data);
|
|
return R.ok().put("rows",list);
|
|
}
|
|
|
|
/**
|
|
* Dead
|
|
*/
|
|
@PostMapping(value="/bmStatusToDead")
|
|
@ResponseBody
|
|
public R bmStatusToDead(@RequestBody PlmTechnicalSpecificationSheetData data) {
|
|
technicalSpecificationService.bmStatusToDead(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* Re-Sample
|
|
*/
|
|
@PostMapping(value="/bmStatusToCg")
|
|
@ResponseBody
|
|
public R bmStatusToCg(@RequestBody PlmTechnicalSpecificationSheetData data) {
|
|
technicalSpecificationService.bmStatusToCg(data);
|
|
return R.ok();
|
|
}
|
|
|
|
/**
|
|
* 归档
|
|
*/
|
|
@PostMapping(value="/bmStatusToFinish")
|
|
@ResponseBody
|
|
public R bmStatusToFinish(@RequestBody PlmTechnicalSpecificationSheetData data) {
|
|
technicalSpecificationService.bmStatusToFinish(data);
|
|
return R.ok();
|
|
}
|
|
|
|
@PostMapping(value = "/node/list")
|
|
@ResponseBody
|
|
public R nodeList(@RequestBody PlmTechnicalSpecificationSheetData data) {
|
|
List<NodeVo> list = technicalSpecificationService.nodeList(data);
|
|
return R.ok().put("rows",list);
|
|
}
|
|
}
|