forked from I3-YF/i3plus-mes-yfai
Merge remote-tracking branch 'origin/dev' into dev
commit
6943238b6d
@ -0,0 +1,13 @@
|
||||
package cn.estsh.i3plus.ext.mes.api.base;
|
||||
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesBallTrackRule;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : PZJ
|
||||
* @CreateDate : 2024/9/24 15:36
|
||||
* @Modify:
|
||||
**/
|
||||
public interface IMesBallTrackRuleService extends IBaseMesService<MesBallTrackRule>{
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package cn.estsh.i3plus.ext.mes.api.base;
|
||||
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesCustomerPartType;
|
||||
|
||||
/**
|
||||
* @Description : 客户零件类型
|
||||
* @Reference :
|
||||
* @Author : junsheng.li
|
||||
* @CreateDate 2024/11/5 17:27
|
||||
* @Modify:
|
||||
**/
|
||||
public interface IMesCustomerPartTypeService extends IBaseMesService<MesCustomerPartType> {
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package cn.estsh.i3plus.ext.mes.api.base;
|
||||
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesCutLengthModifyType;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : PZJ
|
||||
* @CreateDate : 2024/9/20 9:47
|
||||
* @Modify:
|
||||
**/
|
||||
public interface IMesCutLengthModifyTypeService extends IBaseMesService<MesCutLengthModifyType>{
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package cn.estsh.i3plus.ext.mes.api.base;
|
||||
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesCutSchemeEquipmentDetail;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : PZJ
|
||||
* @CreateDate : 2024/9/18 17:03
|
||||
* @Modify:
|
||||
**/
|
||||
public interface IMesCutSchemeEquipmentDetailService extends IBaseMesService<MesCutSchemeEquipmentDetail>{
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package cn.estsh.i3plus.ext.mes.api.base;
|
||||
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesCutSchemeEquipmentProcessParam;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : PZJ
|
||||
* @CreateDate : 2024/9/18 16:51
|
||||
* @Modify:
|
||||
**/
|
||||
public interface IMesCutSchemeEquipmentProcessParamService extends IBaseMesService<MesCutSchemeEquipmentProcessParam>{
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package cn.estsh.i3plus.ext.mes.api.base;
|
||||
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesCutSchemeEquipment;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : PZJ
|
||||
* @CreateDate : 2024/9/18 15:52
|
||||
* @Modify:
|
||||
**/
|
||||
public interface IMesCutSchemeEquipmentService extends IBaseMesService<MesCutSchemeEquipment>{
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package cn.estsh.i3plus.ext.mes.api.base;
|
||||
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesCutSchemeFg;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : PZJ
|
||||
* @CreateDate : 2024/9/18 13:52
|
||||
* @Modify:
|
||||
**/
|
||||
public interface IMesCutSchemeFgService extends IBaseMesService<MesCutSchemeFg>{
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package cn.estsh.i3plus.ext.mes.api.base;
|
||||
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesCutSchemeMaterial;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : PZJ
|
||||
* @CreateDate : 2024/9/18 13:35
|
||||
* @Modify:
|
||||
**/
|
||||
public interface IMesCutSchemeMaterialService extends IBaseMesService<MesCutSchemeMaterial>{
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
package cn.estsh.i3plus.ext.mes.api.base;
|
||||
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesCutScheme;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @CreateDate 2024/04/16
|
||||
* @Author mingliang.li
|
||||
*/
|
||||
public interface IMesCutSchemeService extends IBaseMesService<MesCutScheme> {
|
||||
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package cn.estsh.i3plus.ext.mes.api.base;
|
||||
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesPartPackageRuleDetail;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : PZJ
|
||||
* @CreateDate : 2024/9/25 9:48
|
||||
* @Modify:
|
||||
**/
|
||||
public interface IMesPartPackageRuleDetailService extends IBaseMesService<MesPartPackageRuleDetail>{
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package cn.estsh.i3plus.ext.mes.api.base;
|
||||
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesPartPackageRule;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : PZJ
|
||||
* @CreateDate : 2024/9/25 9:36
|
||||
* @Modify:
|
||||
**/
|
||||
public interface IMesPartPackageRuleService extends IBaseMesService<MesPartPackageRule>{
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
package cn.estsh.i3plus.ext.mes.api.base;
|
||||
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesPullingOrderInfo;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @CreateDate 2024/04/16
|
||||
* @Author mingliang.li
|
||||
*/
|
||||
public interface IMesPullingOrderInfoService extends IBaseMesService<MesPullingOrderInfo> {
|
||||
|
||||
Map doSPSForEquipment( String assemblyLine, String pullingGroupCode,String organizeCode );
|
||||
|
||||
void doCreatePullOrderByPullGroupAndWorkOrder(String organizeCode,Integer pageSize, String userName);
|
||||
|
||||
List<MesPullingOrderInfo> doMesPullingOrderInfoPrint(MesPullingOrderInfo mesPullingOrderInfo, String userName);
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package cn.estsh.i3plus.ext.mes.api.base;
|
||||
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesPullingOrderPartInfo;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @CreateDate 2024/04/16
|
||||
* @Author mingliang.li
|
||||
*/
|
||||
public interface IMesPullingOrderPartInfoService extends IBaseMesService<MesPullingOrderPartInfo> {
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package cn.estsh.i3plus.ext.mes.api.base;
|
||||
|
||||
import cn.estsh.i3plus.pojo.mes.bean.recyclablepackage.MesRecyclablePackagePart;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : PZJ
|
||||
* @CreateDate : 2024/9/14 13:40
|
||||
* @Modify:
|
||||
**/
|
||||
public interface IMesRecyclablePackagePartService extends IBaseMesService<MesRecyclablePackagePart>{
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package cn.estsh.i3plus.ext.mes.api.base;
|
||||
|
||||
import cn.estsh.i3plus.pojo.mes.bean.recyclablepackage.MesRecyclablePackage;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : PZJ
|
||||
* @CreateDate : 2024/9/14 10:02
|
||||
* @Modify:
|
||||
**/
|
||||
public interface IMesRecyclablePackageService extends IBaseMesService<MesRecyclablePackage>{
|
||||
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package cn.estsh.i3plus.ext.mes.api.base;
|
||||
|
||||
import cn.estsh.i3plus.pojo.mes.bean.recyclablepackage.MesRecyclablePackageType;
|
||||
|
||||
/**
|
||||
* @Description : 回收物包装类型
|
||||
* @Reference :
|
||||
* @Author : PZJ
|
||||
* @CreateDate : 2024/9/13 17:36
|
||||
* @Modify:
|
||||
**/
|
||||
public interface IMesRecyclablePackageTypeService extends IBaseMesService<MesRecyclablePackageType>{
|
||||
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package cn.estsh.i3plus.ext.mes.api.base;
|
||||
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesStation;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : PZJ
|
||||
* @CreateDate : 2024/9/20 14:45
|
||||
* @Modify:
|
||||
**/
|
||||
public interface IMesStationService extends IBaseMesService<MesStation>{
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
package cn.estsh.i3plus.ext.mes.api.base;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesWorkOrderAssembly;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description : 工单装配件
|
||||
* @Reference :
|
||||
* @Author : junsheng.li
|
||||
* @CreateDate 2024/9/19 16:42
|
||||
* @Modify:
|
||||
**/
|
||||
public interface IMesWorkOrderAssemblyService extends IBaseMesService<MesWorkOrderAssembly> {
|
||||
|
||||
@ApiOperation("根据工单号查询排序线排产装配目视项")
|
||||
List<MesWorkOrderAssembly> findMesWorkOrderAssembly(String workOrderNo, String organizeCode);
|
||||
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
package cn.estsh.i3plus.ext.mes.api.base;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.ListPager;
|
||||
import cn.estsh.i3plus.pojo.base.common.Pager;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesWorkOrderCut;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesWorkOrderCutDetail;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @CreateDate 2024/04/16
|
||||
* @Author mingliang.li
|
||||
*/
|
||||
public interface IMesWorkOrderCutService extends IBaseMesService<MesWorkOrderCut> {
|
||||
|
||||
@ApiOperation("生成裁片工单")
|
||||
void doGenerateCutWorkOrder(List<Long> workOrderIds, String cutCode, String remark, String organizeCode,
|
||||
String userName, Integer editionNumber);
|
||||
|
||||
@ApiOperation("分页查询裁片工单明细")
|
||||
ListPager<MesWorkOrderCutDetail> queryWorkOrderCutDetailByPager(MesWorkOrderCutDetail workOrderCutDetail, Pager pager);
|
||||
|
||||
//@ApiOperation("分页查询裁片工单明细")
|
||||
//ListPager<MesWorkOrderCutDetail> queryWorkOrderCutDetailByPager(MesWorkOrderCutDetail workOrderCutDetail, Pager pager);
|
||||
|
||||
@ApiOperation("发布裁片工单")
|
||||
void doReleaseCutWorkOrder(List<String> cutWorkOrderNos, String organizeCode, String userName);
|
||||
|
||||
@ApiOperation("打印裁片工单")
|
||||
List<Map<String, Object>> doPrintCutWorkOrder(List<String> cutWorkOrderNos, String organizeCode, String userName);
|
||||
|
||||
@ApiOperation("重新打印-修改同步状态为未同步")
|
||||
void doUpdatePrintStatus(List<String> cutWorkOrderIds, String organizeCode, String userName);
|
||||
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
package cn.estsh.i3plus.ext.mes.api.base;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesWorkOrderPart;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description : 工单零件
|
||||
* @Reference :
|
||||
* @Author : junsheng.li
|
||||
* @CreateDate 2024/9/19 16:42
|
||||
* @Modify:
|
||||
**/
|
||||
public interface IMesWorkOrderPartService extends IBaseMesService<MesWorkOrderPart> {
|
||||
|
||||
@ApiOperation("根据工单号查询工单零件")
|
||||
List<MesWorkOrderPart> findMesWorkOrderPart(String workOrderNo, String organizeCode);
|
||||
|
||||
@ApiOperation("根据工单号查询工单零件")
|
||||
List<MesWorkOrderPart> findMesWorkOrderPart(List<String> workOrderNoList, String organizeCode);
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package cn.estsh.i3plus.ext.mes.api.busi;
|
||||
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesPartProdGroup;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesPartProdGroupDetail;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesPartSap;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.shipping.MesCustSortInfo;
|
||||
|
||||
public interface IMesCreateWorkOrder {
|
||||
/**
|
||||
* 武汉按包装圆整事务管理
|
||||
* @param partProdGroup
|
||||
* @param mesPartProdGroupDetail
|
||||
* @param partSap
|
||||
* @param sortInfo
|
||||
*/
|
||||
void createWorkOrder(MesPartProdGroup partProdGroup, MesPartProdGroupDetail mesPartProdGroupDetail, MesPartSap partSap, MesCustSortInfo sortInfo,Long productSeq);
|
||||
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
package cn.estsh.i3plus.ext.mes.api.busi;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface IMesOfflineService {
|
||||
|
||||
/**
|
||||
* 创建离线排序加工规则
|
||||
* 每个总成零件维护一个
|
||||
*/
|
||||
void doCreateSortRuleCfgOfflineData(String organizeCode, List<String> groupCodeList);
|
||||
|
||||
/**
|
||||
* 生成指定零件生产组的拉动单模板
|
||||
* 创建离线排序拉动规则
|
||||
* 每个总成零件维护一个
|
||||
*/
|
||||
void doCreatePullOrderOfflineData(String organizeCode, List<String> pullCodeList,List<String> partProdCodeList);
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
package cn.estsh.i3plus.ext.mes.api.busi;
|
||||
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesPartProdGroup;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesPartProdGroupDetail;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesPartPull;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesPartPullDetail;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface IMesSortRuleCfgOfflineService {
|
||||
/**
|
||||
* 清空原始表
|
||||
*/
|
||||
void deleteSortRuleOffline(String organizeCode);
|
||||
|
||||
|
||||
void doCreateSortRuleOffline(String custPartNo, String erpPartNo, String productPartNo,String organizeCode, MesPartProdGroup mesPartProdGroup, MesPartProdGroupDetail detail);
|
||||
|
||||
|
||||
void deletePullOffline(String organizeCode);
|
||||
|
||||
void deletePullDetailOffline(String organizeCode);
|
||||
|
||||
|
||||
void doCreatePullOffline(String custPartNo, String erpPartNo,String productPartNo, String organizeCode, MesPartProdGroup mesPartProdGroup, MesPartProdGroupDetail detail, MesPartPull partPull, List<MesPartPullDetail> pullDetailList);
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package cn.estsh.i3plus.ext.mes.api.busi.report;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.ListPager;
|
||||
import cn.estsh.i3plus.pojo.base.common.Pager;
|
||||
import cn.estsh.i3plus.pojo.mes.model.report.AssemblyPartReportModel;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : PZJ
|
||||
* @CreateDate : 2024/9/29 10:20
|
||||
* @Modify:
|
||||
**/
|
||||
public interface IAssemblyPartReportService {
|
||||
ListPager<AssemblyPartReportModel> queryReport(AssemblyPartReportModel model, Pager pager);
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package cn.estsh.i3plus.ext.mes.api.busi.report;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.ListPager;
|
||||
import cn.estsh.i3plus.pojo.base.common.Pager;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesQmsSuspicious;
|
||||
|
||||
/**
|
||||
* @Description : 检验产品数据子报表
|
||||
* @Reference :
|
||||
* @Author : PZJ
|
||||
* @CreateDate : 2024/9/29 13:50
|
||||
* @Modify:
|
||||
**/
|
||||
public interface IProductInspectionSubReportService {
|
||||
ListPager<MesQmsSuspicious> queryReport(MesQmsSuspicious model, Pager pager);
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package cn.estsh.i3plus.ext.mes.api.busi.report;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.ListPager;
|
||||
import cn.estsh.i3plus.pojo.base.common.Pager;
|
||||
import cn.estsh.i3plus.pojo.mes.model.report.ShippingReportModel;
|
||||
|
||||
/**
|
||||
* @Description : 发运明细报表 接口
|
||||
* @Reference :
|
||||
* @Author : PZJ
|
||||
* @CreateDate : 2024/9/29 9:49
|
||||
* @Modify:
|
||||
**/
|
||||
public interface IShipmentDetailReportService {
|
||||
ListPager<ShippingReportModel> queryReport(ShippingReportModel model, Pager pager);
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package cn.estsh.i3plus.ext.mes.api.busi.report;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.ListPager;
|
||||
import cn.estsh.i3plus.pojo.base.common.Pager;
|
||||
import cn.estsh.i3plus.pojo.mes.model.report.SuspiciousItemBarcodeReportModel;
|
||||
|
||||
/**
|
||||
* @Description : 可疑品条码信息报表
|
||||
* @Reference :
|
||||
* @Author : PZJ
|
||||
* @CreateDate : 2024/9/28 19:27
|
||||
* @Modify:
|
||||
**/
|
||||
public interface ISuspiciousItemBarcodeReportService {
|
||||
ListPager<SuspiciousItemBarcodeReportModel> queryReport(SuspiciousItemBarcodeReportModel model, Pager pager);
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
import cn.estsh.i3plus.mes.api.iservice.busi.ISyncFuncService
|
||||
import cn.estsh.i3plus.platform.common.tool.TimeTool
|
||||
import cn.estsh.i3plus.pojo.mes.dbinterface.MesInterfaceDataMapper
|
||||
import cn.estsh.i3plus.pojo.mes.model.GenSerialNoModel
|
||||
import cn.estsh.i3plus.pojo.mes.util.MesExtEnumUtil
|
||||
import org.slf4j.Logger
|
||||
import org.slf4j.LoggerFactory
|
||||
import org.springframework.beans.factory.annotation.Autowired
|
||||
|
||||
/**
|
||||
* @Description : MES2PISCES-发运单武汉工厂
|
||||
* @Reference :
|
||||
* @Author : junsheng.li
|
||||
* @CreateDate 2024/11/18 20:37
|
||||
* @Modify:
|
||||
* */
|
||||
class MesToPiscesMesJisShippingWh {
|
||||
|
||||
public static final Logger LOGGER = LoggerFactory.getLogger(MesToPiscesMesJisShippingWh.class)
|
||||
|
||||
@Autowired
|
||||
private ISyncFuncService syncFuncService;
|
||||
|
||||
def filterData(MesInterfaceDataMapper mapper, List<Map<String, Object>> srcData) throws Exception {
|
||||
if (srcData == null || srcData.size() == 0) {
|
||||
return srcData
|
||||
}
|
||||
String organizeCode = mapper.getOrganizeCode();
|
||||
//TRANS_ID赋值
|
||||
if (mapper.getDestColumnMapping().contains("TRANS_ID")) {
|
||||
Date date = new Date();
|
||||
GenSerialNoModel orderSeqSerialNoModel = new GenSerialNoModel("COKIPIT_PISCES_TRANS_ID");
|
||||
orderSeqSerialNoModel.setYear(MesExtEnumUtil.YEAR_SHORT.valueOfDescription(Integer.parseInt(TimeTool.getYear(date))))
|
||||
orderSeqSerialNoModel.setMonth(MesExtEnumUtil.MONTH_SHORT.valueOfDescription(Integer.parseInt(TimeTool.getMonth(date))))
|
||||
orderSeqSerialNoModel.setDay(TimeTool.getDay(date))
|
||||
List<String> resultList = syncFuncService.syncSerialNo(orderSeqSerialNoModel.organizeCode(organizeCode), "MES2PISCES发运单", organizeCode, srcData.size()).getResultList();
|
||||
int index = 0;
|
||||
for (Map<String, Object> rowMap : srcData) {
|
||||
rowMap.put("TRANS_ID", resultList.get(index));
|
||||
index++;
|
||||
}
|
||||
}
|
||||
return new ArrayList<>(srcData);
|
||||
}
|
||||
|
||||
}
|
@ -1,44 +1,44 @@
|
||||
package cn.estsh.i3plus.ext.mes.apiservice.config;
|
||||
|
||||
import cn.estsh.i3plus.ext.mes.apiservice.utils.HuaWeiOBSUtil;
|
||||
import com.obs.services.ObsClient;
|
||||
import lombok.Getter;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
/**
|
||||
* @Description : HuaWeiCloudObsConfig
|
||||
* @Author :gsz
|
||||
* @Date 2024/6/11 13:28
|
||||
* @Modify
|
||||
**/
|
||||
@Configuration
|
||||
public class HuaWeiCloudObsConfig {
|
||||
|
||||
@Value("${huaweiobs.bucketName}")
|
||||
@Getter
|
||||
private String bucketName;
|
||||
|
||||
@Value("${huaweiobs.ak}")
|
||||
@Getter
|
||||
private String ak;
|
||||
|
||||
@Value("${huaweiobs.sk}")
|
||||
@Getter
|
||||
private String sk;
|
||||
|
||||
@Value("${huaweiobs.endPoint}")
|
||||
@Getter
|
||||
private String endPoint;
|
||||
|
||||
@Bean
|
||||
public ObsClient getObsClient() {
|
||||
ObsClient obsClient = new ObsClient(ak, sk, endPoint);
|
||||
return obsClient;
|
||||
}
|
||||
@Bean
|
||||
public HuaWeiOBSUtil huaWeiOBSUtil() {
|
||||
return new HuaWeiOBSUtil(bucketName, ak, sk, endPoint);
|
||||
}
|
||||
}
|
||||
//package cn.estsh.i3plus.ext.mes.apiservice.config;
|
||||
//
|
||||
//import cn.estsh.i3plus.ext.mes.apiservice.utils.HuaWeiOBSUtil;
|
||||
//import com.obs.services.ObsClient;
|
||||
//import lombok.Getter;
|
||||
//import org.springframework.beans.factory.annotation.Value;
|
||||
//import org.springframework.context.annotation.Bean;
|
||||
//import org.springframework.context.annotation.Configuration;
|
||||
//
|
||||
///**
|
||||
// * @Description : HuaWeiCloudObsConfig
|
||||
// * @Author :gsz
|
||||
// * @Date 2024/6/11 13:28
|
||||
// * @Modify
|
||||
// **/
|
||||
//@Configuration
|
||||
//public class HuaWeiCloudObsConfig {
|
||||
//
|
||||
// @Value("${huaweiobs.bucketName}")
|
||||
// @Getter
|
||||
// private String bucketName;
|
||||
//
|
||||
// @Value("${huaweiobs.ak}")
|
||||
// @Getter
|
||||
// private String ak;
|
||||
//
|
||||
// @Value("${huaweiobs.sk}")
|
||||
// @Getter
|
||||
// private String sk;
|
||||
//
|
||||
// @Value("${huaweiobs.endPoint}")
|
||||
// @Getter
|
||||
// private String endPoint;
|
||||
//
|
||||
// @Bean
|
||||
// public ObsClient getObsClient() {
|
||||
// ObsClient obsClient = new ObsClient(ak, sk, endPoint);
|
||||
// return obsClient;
|
||||
// }
|
||||
// @Bean
|
||||
// public HuaWeiOBSUtil huaWeiOBSUtil() {
|
||||
// return new HuaWeiOBSUtil(bucketName, ak, sk, endPoint);
|
||||
// }
|
||||
//}
|
||||
|
@ -0,0 +1,20 @@
|
||||
package cn.estsh.i3plus.ext.mes.apiservice.controller.base;
|
||||
|
||||
import cn.estsh.i3plus.ext.mes.pojo.constant.MesCommonConstant;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesBallTrackRule;
|
||||
import io.swagger.annotations.Api;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : PZJ
|
||||
* @CreateDate : 2024/9/24 15:35
|
||||
* @Modify:
|
||||
**/
|
||||
@Api("辊道设备配置接口")
|
||||
@RestController
|
||||
@RequestMapping(MesCommonConstant.MES_YANFEN + "/mesBallTrackRule")
|
||||
public class MesBallTrackRuleController extends BaseMesController<MesBallTrackRule>{
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
package cn.estsh.i3plus.ext.mes.apiservice.controller.base;
|
||||
|
||||
import cn.estsh.i3plus.ext.mes.pojo.constant.MesCommonConstant;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesCustomerPartType;
|
||||
import io.swagger.annotations.Api;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @Description : 客户零件类型
|
||||
* @Reference :
|
||||
* @Author : junsheng.li
|
||||
* @CreateDate 2024/11/5 17:35
|
||||
* @Modify:
|
||||
**/
|
||||
@Api(description = "客户零件类型")
|
||||
@RestController
|
||||
@RequestMapping(MesCommonConstant.MES_YANFEN + "/mesCustomerPartType")
|
||||
public class MesCustomerPartTypeController extends BaseMesController<MesCustomerPartType> {
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package cn.estsh.i3plus.ext.mes.apiservice.controller.base;
|
||||
|
||||
import cn.estsh.i3plus.ext.mes.pojo.constant.MesCommonConstant;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesCutLengthModifyType;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : PZJ
|
||||
* @CreateDate : 2024/9/20 9:45
|
||||
* @Modify:
|
||||
**/
|
||||
@RestController
|
||||
@RequestMapping( MesCommonConstant.MES_YANFEN + "/mesCutLengthModifyType")
|
||||
public class MesCutLengthModifyTypeController extends BaseMesController<MesCutLengthModifyType>{
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package cn.estsh.i3plus.ext.mes.apiservice.controller.base;
|
||||
|
||||
import cn.estsh.i3plus.ext.mes.pojo.constant.MesCommonConstant;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesCutScheme;
|
||||
import io.swagger.annotations.Api;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* 裁片工单
|
||||
*/
|
||||
@Api("裁片工单信息")
|
||||
@RestController
|
||||
@RequestMapping(MesCommonConstant.MES_YANFEN + "/mesCutScheme")
|
||||
public class MesCutSchemeController extends BaseMesController<MesCutScheme>{
|
||||
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package cn.estsh.i3plus.ext.mes.apiservice.controller.base;
|
||||
|
||||
import cn.estsh.i3plus.ext.mes.pojo.constant.MesCommonConstant;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesCutSchemeEquipment;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @Description : 裁片设备配置维护主表
|
||||
* @Reference :
|
||||
* @Author : PZJ
|
||||
* @CreateDate : 2024/9/18 15:20
|
||||
* @Modify:
|
||||
**/
|
||||
@RestController
|
||||
@RequestMapping( MesCommonConstant.MES_YANFEN + "/mesCutSchemeEquipment")
|
||||
public class MesCutSchemeEquipmentController extends BaseMesController<MesCutSchemeEquipment>{
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package cn.estsh.i3plus.ext.mes.apiservice.controller.base;
|
||||
|
||||
import cn.estsh.i3plus.ext.mes.pojo.constant.MesCommonConstant;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesCutSchemeEquipmentDetail;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @Description : 裁片设备配置维护明细表
|
||||
* @Reference :
|
||||
* @Author : PZJ
|
||||
* @CreateDate : 2024/9/18 17:02
|
||||
* @Modify:
|
||||
**/
|
||||
@RestController
|
||||
@RequestMapping( MesCommonConstant.MES_YANFEN + "/mesCutSchemeEquipmentDetail")
|
||||
public class MesCutSchemeEquipmentDetailController extends BaseMesController<MesCutSchemeEquipmentDetail>{
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package cn.estsh.i3plus.ext.mes.apiservice.controller.base;
|
||||
|
||||
import cn.estsh.i3plus.ext.mes.pojo.constant.MesCommonConstant;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesCutSchemeEquipmentProcessParam;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @Description : 裁片设备配置维护设备加工表
|
||||
* @Reference :
|
||||
* @Author : PZJ
|
||||
* @CreateDate : 2024/9/18 16:49
|
||||
* @Modify:
|
||||
**/
|
||||
@RestController
|
||||
@RequestMapping( MesCommonConstant.MES_YANFEN + "/mesCutSchemeEquipmentProcessParam")
|
||||
public class MesCutSchemeEquipmentProcessParamController extends BaseMesController<MesCutSchemeEquipmentProcessParam> {
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
package cn.estsh.i3plus.ext.mes.apiservice.controller.base;
|
||||
|
||||
import cn.estsh.i3plus.ext.mes.pojo.constant.MesCommonConstant;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesCutSchemeFg;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @Description : 裁片方案成品
|
||||
* @Reference :
|
||||
* @Author : PZJ
|
||||
* @CreateDate : 2024/9/18 13:50
|
||||
* @Modify:
|
||||
**/
|
||||
@RestController
|
||||
@RequestMapping( MesCommonConstant.MES_YANFEN + "/mesCutSchemeFg")
|
||||
public class MesCutSchemeFgController extends BaseMesController<MesCutSchemeFg>{
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
package cn.estsh.i3plus.ext.mes.apiservice.controller.base;
|
||||
|
||||
import cn.estsh.i3plus.ext.mes.pojo.constant.MesCommonConstant;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesCutSchemeMaterial;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @Description : 裁片方案原材料
|
||||
* @Reference :
|
||||
* @Author : PZJ
|
||||
* @CreateDate : 2024/9/18 13:27
|
||||
* @Modify:
|
||||
**/
|
||||
@RestController
|
||||
@RequestMapping(MesCommonConstant.MES_YANFEN + "/mesCutSchemeMaterial")
|
||||
public class MesCutSchemeMaterialController extends BaseMesController<MesCutSchemeMaterial> {
|
||||
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
package cn.estsh.i3plus.ext.mes.apiservice.controller.base;
|
||||
|
||||
import cn.estsh.i3plus.ext.mes.pojo.constant.MesCommonConstant;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesPartPackageRule;
|
||||
import io.swagger.annotations.Api;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : PZJ
|
||||
* @CreateDate : 2024/9/25 9:35
|
||||
* @Modify:
|
||||
**/
|
||||
@Api("包装组零件规则")
|
||||
@RestController
|
||||
@RequestMapping(MesCommonConstant.MES_YANFEN + "/mesPartPackageRule")
|
||||
public class MesPartPackageRuleController extends BaseMesController<MesPartPackageRule>{
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
package cn.estsh.i3plus.ext.mes.apiservice.controller.base;
|
||||
|
||||
import cn.estsh.i3plus.ext.mes.pojo.constant.MesCommonConstant;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesPartPackageRuleDetail;
|
||||
import io.swagger.annotations.Api;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : PZJ
|
||||
* @CreateDate : 2024/9/25 9:47
|
||||
* @Modify:
|
||||
**/
|
||||
@Api("包装组零件规则明细")
|
||||
@RestController
|
||||
@RequestMapping(MesCommonConstant.MES_YANFEN + "/mesPartPackageRuleDetail")
|
||||
public class MesPartPackageRuleDetailController extends BaseMesController<MesPartPackageRuleDetail>{
|
||||
}
|
@ -0,0 +1,48 @@
|
||||
package cn.estsh.i3plus.ext.mes.apiservice.controller.base;
|
||||
|
||||
import cn.estsh.i3plus.ext.mes.api.base.IMesPullingOrderInfoService;
|
||||
import cn.estsh.i3plus.ext.mes.pojo.constant.MesCommonConstant;
|
||||
import cn.estsh.i3plus.pojo.base.enumutil.ResourceEnumUtil;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesPullingOrderInfo;
|
||||
import cn.estsh.impp.framework.boot.auth.AuthUtil;
|
||||
import cn.estsh.impp.framework.boot.exception.ImppBusiException;
|
||||
import cn.estsh.impp.framework.boot.util.ResultBean;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 拉动单
|
||||
*/
|
||||
@Api("拉动单")
|
||||
@RestController
|
||||
@RequestMapping(MesCommonConstant.MES_YANFEN + "/mesPullingOrderInfo")
|
||||
public class MesPullingOrderInfoController extends BaseMesController<MesPullingOrderInfo> {
|
||||
@Autowired
|
||||
private IMesPullingOrderInfoService mesPullingOrderInfoService;
|
||||
|
||||
@GetMapping(value = "/doRePrint")
|
||||
@ApiOperation(value = "拉动单补打")
|
||||
public ResultBean doMesPullingOrderInfoPrint(MesPullingOrderInfo mesPullingOrderInfo) {
|
||||
try {
|
||||
if (StringUtils.isEmpty(mesPullingOrderInfo.getPullingOrderNo())) {
|
||||
throw new ImppBusiException("拉动单号不能为空");
|
||||
}
|
||||
List<MesPullingOrderInfo> pullingOrderInfos = mesPullingOrderInfoService.doMesPullingOrderInfoPrint(mesPullingOrderInfo, AuthUtil.getSessionUser().getUserName());
|
||||
return ResultBean.success("拉动单打印成功")
|
||||
.setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode())
|
||||
.setResultList(pullingOrderInfos);
|
||||
} catch (ImppBusiException e) {
|
||||
return ResultBean.fail(e).build();
|
||||
} catch (Exception e) {
|
||||
return ResultBean.fail(e);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package cn.estsh.i3plus.ext.mes.apiservice.controller.base;
|
||||
|
||||
import cn.estsh.i3plus.ext.mes.pojo.constant.MesCommonConstant;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesPullingOrderInfo;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesPullingOrderPartInfo;
|
||||
import io.swagger.annotations.Api;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* 拉动单
|
||||
*/
|
||||
@Api("拉动单")
|
||||
@RestController
|
||||
@RequestMapping(MesCommonConstant.MES_YANFEN + "/mesPullingOrderPartInfo")
|
||||
public class MesPullingOrderPartInfoController extends BaseMesController<MesPullingOrderPartInfo> {
|
||||
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
package cn.estsh.i3plus.ext.mes.apiservice.controller.base;
|
||||
|
||||
import cn.estsh.i3plus.ext.mes.pojo.constant.MesCommonConstant;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.recyclablepackage.MesRecyclablePackage;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @Description : 回收包装
|
||||
* @Reference :
|
||||
* @Author : PZJ
|
||||
* @CreateDate : 2024/9/14 10:00
|
||||
* @Modify:
|
||||
**/
|
||||
@RestController
|
||||
@RequestMapping(MesCommonConstant.MES_YANFEN + "/mesRecyclablePackage")
|
||||
public class MesRecyclablePackageController extends BaseMesController<MesRecyclablePackage> {
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
package cn.estsh.i3plus.ext.mes.apiservice.controller.base;
|
||||
|
||||
import cn.estsh.i3plus.ext.mes.pojo.constant.MesCommonConstant;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.recyclablepackage.MesRecyclablePackagePart;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @Description : 回收包装零件
|
||||
* @Reference :
|
||||
* @Author : PZJ
|
||||
* @CreateDate : 2024/9/14 10:57
|
||||
* @Modify:
|
||||
**/
|
||||
@RestController
|
||||
@RequestMapping(MesCommonConstant.MES_YANFEN + "/mesRecyclablePackagePart")
|
||||
public class MesRecyclablePackagePartController extends BaseMesController<MesRecyclablePackagePart>{
|
||||
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
package cn.estsh.i3plus.ext.mes.apiservice.controller.base;
|
||||
|
||||
import cn.estsh.i3plus.ext.mes.pojo.constant.MesCommonConstant;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.recyclablepackage.MesRecyclablePackageType;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @Description : 回收包装类型
|
||||
* @Reference :
|
||||
* @Author : PZJ
|
||||
* @CreateDate : 2024/9/13 17:14
|
||||
* @Modify:
|
||||
**/
|
||||
@RestController
|
||||
@RequestMapping(MesCommonConstant.MES_YANFEN + "/mesRecyclablePackageType")
|
||||
public class MesRecyclablePackageTypeController extends BaseMesController<MesRecyclablePackageType> {
|
||||
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package cn.estsh.i3plus.ext.mes.apiservice.controller.base;
|
||||
|
||||
import cn.estsh.i3plus.ext.mes.pojo.constant.MesCommonConstant;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesStation;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : PZJ
|
||||
* @CreateDate : 2024/9/20 14:40
|
||||
* @Modify:
|
||||
**/
|
||||
@RestController
|
||||
@RequestMapping(MesCommonConstant.MES_YANFEN+"/mesStation")
|
||||
public class MesStationController extends BaseMesController<MesStation>{
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
package cn.estsh.i3plus.ext.mes.apiservice.controller.base;
|
||||
|
||||
import cn.estsh.i3plus.ext.mes.pojo.constant.MesCommonConstant;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesWorkOrderAssembly;
|
||||
import io.swagger.annotations.Api;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @Description : 工单装配件
|
||||
* @Reference :
|
||||
* @Author : junsheng.li
|
||||
* @CreateDate 2024/9/19 16:40
|
||||
* @Modify:
|
||||
**/
|
||||
@Api(description = "工单装配件")
|
||||
@RestController
|
||||
@RequestMapping(MesCommonConstant.MES_YANFEN + "/mesWorkOrderAssembly")
|
||||
public class MesWorkOrderAssemblyController extends BaseMesController<MesWorkOrderAssembly> {
|
||||
|
||||
}
|
@ -0,0 +1,119 @@
|
||||
package cn.estsh.i3plus.ext.mes.apiservice.controller.base;
|
||||
|
||||
import cn.estsh.i3plus.ext.mes.api.base.IMesWorkOrderCutService;
|
||||
import cn.estsh.i3plus.ext.mes.pojo.constant.MesCommonConstant;
|
||||
import cn.estsh.i3plus.pojo.base.common.Pager;
|
||||
import cn.estsh.i3plus.pojo.base.enumutil.ResourceEnumUtil;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesWorkOrderCut;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesWorkOrderCutDetail;
|
||||
import cn.estsh.impp.framework.boot.auth.AuthUtil;
|
||||
import cn.estsh.impp.framework.boot.exception.ImppBusiException;
|
||||
import cn.estsh.impp.framework.boot.exception.ImppExceptionBuilder;
|
||||
import cn.estsh.impp.framework.boot.util.ResultBean;
|
||||
import cn.estsh.impp.framework.boot.util.ValidatorBean;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.Arrays;
|
||||
/**
|
||||
* 裁片工单
|
||||
*/
|
||||
@Api("裁片工单信息")
|
||||
@RestController
|
||||
@RequestMapping(MesCommonConstant.MES_YANFEN + "/mesWorkOrderCut")
|
||||
public class MesWorkOrderCutController extends BaseMesController<MesWorkOrderCut>{
|
||||
|
||||
@Autowired
|
||||
private IMesWorkOrderCutService workOrderCutService;
|
||||
|
||||
@PostMapping(value = "/generate")
|
||||
@ApiOperation(value = "裁片工单生成", notes = "裁片工单生成")
|
||||
public ResultBean doGenerateCutWorkOrder(Long[] workOrderIds, String cutCode, String remark, Integer editionNumber) {
|
||||
try {
|
||||
|
||||
ValidatorBean.checkNotNull(workOrderIds, "工单不存在");
|
||||
ValidatorBean.checkNotNull(cutCode, "裁片方案不存在");
|
||||
|
||||
workOrderCutService.doGenerateCutWorkOrder(Arrays.asList(workOrderIds), cutCode, remark,
|
||||
AuthUtil.getOrganize().getOrganizeCode(), AuthUtil.getSessionUser().getUserName(), editionNumber);
|
||||
return ResultBean.success("生成成功")
|
||||
.setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode());
|
||||
} catch (ImppBusiException busExcep) {
|
||||
return ResultBean.fail(busExcep);
|
||||
} catch (Exception e) {
|
||||
return ImppExceptionBuilder.newInstance().buildExceptionResult(e);
|
||||
}
|
||||
}
|
||||
|
||||
@GetMapping(value = "/detail/query")
|
||||
@ApiOperation(value = "分页查询裁片工单明细", notes = "分页查询裁片工单明细")
|
||||
public ResultBean queryWorkOrderCutDetailByPager(MesWorkOrderCutDetail workOrderCutDetail, Pager pager) {
|
||||
try {
|
||||
workOrderCutDetail.setOrganizeCode(AuthUtil.getOrganize().getOrganizeCode());
|
||||
return ResultBean.success("生成成功")
|
||||
.setListPager(workOrderCutService.queryWorkOrderCutDetailByPager(workOrderCutDetail, pager))
|
||||
.setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode());
|
||||
} catch (ImppBusiException busExcep) {
|
||||
return ResultBean.fail(busExcep);
|
||||
} catch (Exception e) {
|
||||
return ImppExceptionBuilder.newInstance().buildExceptionResult(e);
|
||||
}
|
||||
}
|
||||
|
||||
@PostMapping(value = "/release")
|
||||
@ApiOperation(value = "裁片工单发布", notes = "裁片工单发布")
|
||||
public ResultBean doReleaseCutWorkOrder(String[] cutWorkOrderNos) {
|
||||
try {
|
||||
|
||||
ValidatorBean.checkNotNull(cutWorkOrderNos, "裁片工单不存在");
|
||||
|
||||
workOrderCutService.doReleaseCutWorkOrder(Arrays.asList(cutWorkOrderNos), AuthUtil.getOrganize().getOrganizeCode(), AuthUtil.getSessionUser().getUserName());
|
||||
return ResultBean.success("发布成功")
|
||||
.setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode());
|
||||
} catch (ImppBusiException busExcep) {
|
||||
return ResultBean.fail(busExcep);
|
||||
} catch (Exception e) {
|
||||
return ImppExceptionBuilder.newInstance().buildExceptionResult(e);
|
||||
}
|
||||
}
|
||||
|
||||
@PostMapping(value = "/print")
|
||||
@ApiOperation(value = "裁片工单打印", notes = "裁片工单打印")
|
||||
public ResultBean print(String[] cutWorkOrderNos) {
|
||||
try {
|
||||
|
||||
ValidatorBean.checkNotNull(cutWorkOrderNos, "裁片工单不存在");
|
||||
|
||||
return ResultBean.success("打印成功")
|
||||
.setResultObject(workOrderCutService.doPrintCutWorkOrder(Arrays.asList(cutWorkOrderNos),
|
||||
AuthUtil.getOrganize().getOrganizeCode(), AuthUtil.getSessionUser().getUserName()))
|
||||
.setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode());
|
||||
} catch (ImppBusiException busExcep) {
|
||||
return ResultBean.fail(busExcep);
|
||||
} catch (Exception e) {
|
||||
return ImppExceptionBuilder.newInstance().buildExceptionResult(e);
|
||||
}
|
||||
}
|
||||
|
||||
@PostMapping(value = "/update-print-status")
|
||||
@ApiOperation(value = "修改裁片工单打印状态", notes = "修改裁片工单打印状态")
|
||||
public ResultBean doUpdatePrintStatus(String[] cutWorkOrderIds) {
|
||||
try {
|
||||
|
||||
ValidatorBean.checkNotNull(cutWorkOrderIds, "裁片工单不存在");
|
||||
|
||||
workOrderCutService.doUpdatePrintStatus(Arrays.asList(cutWorkOrderIds), AuthUtil.getOrganize().getOrganizeCode(), AuthUtil.getSessionUser().getUserName());
|
||||
return ResultBean.success("发布成功")
|
||||
.setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode());
|
||||
} catch (ImppBusiException busExcep) {
|
||||
return ResultBean.fail(busExcep);
|
||||
} catch (Exception e) {
|
||||
return ImppExceptionBuilder.newInstance().buildExceptionResult(e);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
package cn.estsh.i3plus.ext.mes.apiservice.controller.base;
|
||||
|
||||
import cn.estsh.i3plus.ext.mes.pojo.constant.MesCommonConstant;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesWorkOrderPart;
|
||||
import io.swagger.annotations.Api;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @Description : 工单零件
|
||||
* @Reference :
|
||||
* @Author : junsheng.li
|
||||
* @CreateDate 2024/9/19 16:40
|
||||
* @Modify:
|
||||
**/
|
||||
@Api(description = "工单零件")
|
||||
@RestController
|
||||
@RequestMapping(MesCommonConstant.MES_YANFEN + "/mesWorkOrderPart")
|
||||
public class MesWorkOrderPartController extends BaseMesController<MesWorkOrderPart> {
|
||||
|
||||
}
|
@ -0,0 +1,48 @@
|
||||
package cn.estsh.i3plus.ext.mes.apiservice.controller.board;
|
||||
|
||||
import cn.estsh.i3plus.ext.mes.api.busi.board.IMesYfBoardService;
|
||||
import cn.estsh.i3plus.ext.mes.pojo.constant.MesCommonConstant;
|
||||
import cn.estsh.i3plus.ext.mes.pojo.model.board.MesGepicsInspectionInfoModel;
|
||||
import cn.estsh.i3plus.pojo.base.common.Pager;
|
||||
import cn.estsh.i3plus.pojo.base.enumutil.ResourceEnumUtil;
|
||||
import cn.estsh.impp.framework.boot.exception.ImppBusiException;
|
||||
import cn.estsh.impp.framework.boot.exception.ImppExceptionBuilder;
|
||||
import cn.estsh.impp.framework.boot.util.ResultBean;
|
||||
import cn.estsh.impp.framework.boot.util.ValidatorBean;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
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.RestController;
|
||||
|
||||
/**
|
||||
* @Description : 报表
|
||||
* @Reference :
|
||||
* @Author : junsheng.li
|
||||
* @CreateDate 2024/10/11 13:58
|
||||
* @Modify:
|
||||
**/
|
||||
@Api("报表")
|
||||
@RestController
|
||||
@RequestMapping(MesCommonConstant.MES_YANFEN + "/board")
|
||||
public class MesBusiBoardController {
|
||||
|
||||
@Autowired
|
||||
private IMesYfBoardService mesYfBoardService;
|
||||
|
||||
@ApiOperation(value = "查询V107Melos数据", notes = "查询V107Melos数据")
|
||||
@PostMapping("/query-gepics-inspection-info")
|
||||
public ResultBean queryGepicsInspectionInfo(@RequestBody MesGepicsInspectionInfoModel infoModel, Pager pager){
|
||||
try {
|
||||
ValidatorBean.beginValid(infoModel)
|
||||
.notNull("organizeCode", infoModel.getOrganizeCode());
|
||||
return ResultBean.success("查询成功").setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode()).setListPager(mesYfBoardService.queryGepicsInspectionInfo(infoModel,pager));
|
||||
} catch (ImppBusiException e) {
|
||||
return ResultBean.fail(e);
|
||||
} catch (Exception e) {
|
||||
return ImppExceptionBuilder.newInstance().buildExceptionResult(e);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,121 @@
|
||||
package cn.estsh.i3plus.ext.mes.apiservice.controller.busi;
|
||||
|
||||
import cn.estsh.i3plus.ext.mes.apiservice.serviceimpl.busi.MesEarlyWarningServiceImpl;
|
||||
import cn.estsh.i3plus.ext.mes.pojo.constant.MesCommonConstant;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesEarlyWarningKanBan;
|
||||
import cn.estsh.i3plus.pojo.mes.model.KanBanPictureModel;
|
||||
import cn.estsh.i3plus.pojo.mes.model.MesEarlyWarningKanBanModel;
|
||||
import cn.estsh.i3plus.pojo.mes.model.MesKanBanShowModel;
|
||||
import cn.estsh.impp.framework.boot.util.ResultBean;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.text.ParseException;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@RequestMapping(MesCommonConstant.MES_YANFEN + "/earlyWarningKanBan")
|
||||
public class MesEarlyWarningKanBanController {
|
||||
|
||||
@Autowired
|
||||
private MesEarlyWarningServiceImpl mesEarlyWarningService;
|
||||
|
||||
/**
|
||||
* 获取所有的线末大屏配置
|
||||
*
|
||||
* @param organizeCode
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(path = "/list/{organizeCode}")
|
||||
public ResultBean getEarlyWarningList(@PathVariable String organizeCode) {
|
||||
List<MesEarlyWarningKanBan> list;
|
||||
try {
|
||||
list = mesEarlyWarningService.getEarlyWarningList(organizeCode);
|
||||
} catch (Exception e) {
|
||||
return ResultBean.fail(e.getMessage());
|
||||
}
|
||||
return ResultBean.success("查询成功").setResultList(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存配置
|
||||
*
|
||||
* @param model
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(path = "/save")
|
||||
public ResultBean saveEarlyWarningList(@RequestBody MesEarlyWarningKanBanModel model) {
|
||||
try {
|
||||
mesEarlyWarningService.saveEarlyWarning(model);
|
||||
} catch (Exception e) {
|
||||
return ResultBean.fail(e.getMessage());
|
||||
}
|
||||
return ResultBean.success("查询成功");
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新配置
|
||||
*
|
||||
* @param earlyWarning
|
||||
*/
|
||||
@PostMapping(path = "/update")
|
||||
public ResultBean updateEarlyWarning(@RequestBody MesEarlyWarningKanBan earlyWarning) {
|
||||
try {
|
||||
mesEarlyWarningService.updateEarlyWarning(earlyWarning);
|
||||
} catch (Exception e) {
|
||||
return ResultBean.fail(e.getMessage());
|
||||
}
|
||||
return ResultBean.success("更新成功");
|
||||
}
|
||||
|
||||
/**
|
||||
* 软删配置
|
||||
*/
|
||||
@GetMapping(path = "/delete/{id}/{organizeCode}/{userName}")
|
||||
public ResultBean deleteEarlyWarning(@PathVariable Long id, @PathVariable String organizeCode, @PathVariable String userName) {
|
||||
try {
|
||||
mesEarlyWarningService.deleteEarlyWarning(id, organizeCode, userName);
|
||||
} catch (Exception e) {
|
||||
return ResultBean.fail(e.getMessage());
|
||||
}
|
||||
return ResultBean.success("删除成功");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获取看板配置
|
||||
*/
|
||||
@GetMapping(path = "/get/{id}/{organizeCode}")
|
||||
public ResultBean getKanbanData(@PathVariable Long id, @PathVariable String organizeCode) {
|
||||
MesEarlyWarningKanBan kanbanData = null;
|
||||
try {
|
||||
kanbanData = mesEarlyWarningService.getKanbanData(id, organizeCode);
|
||||
} catch (Exception e) {
|
||||
return ResultBean.fail(e.getMessage());
|
||||
}
|
||||
|
||||
return ResultBean.success("查询成功").setResultObject(kanbanData);
|
||||
}
|
||||
|
||||
|
||||
@GetMapping(path = "/getData/{id}/{organizeCode}")
|
||||
public ResultBean getData(@PathVariable Long id, @PathVariable String organizeCode) {
|
||||
MesKanBanShowModel data = null;
|
||||
try {
|
||||
data = mesEarlyWarningService.doGetData(id, organizeCode);
|
||||
} catch (Exception e) {
|
||||
ResultBean.fail(e.getMessage());
|
||||
}
|
||||
return ResultBean.success("查询成功").setResultObject(data);
|
||||
}
|
||||
|
||||
@PostMapping(path = "/save/picture")
|
||||
public ResultBean savePicture(@RequestBody KanBanPictureModel kanBanPicture){
|
||||
try {
|
||||
mesEarlyWarningService.savePicture(kanBanPicture);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
return ResultBean.success("保存成功");
|
||||
}
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
package cn.estsh.i3plus.ext.mes.apiservice.controller.report;
|
||||
|
||||
import cn.estsh.i3plus.ext.mes.api.busi.report.IAssemblyPartReportService;
|
||||
import cn.estsh.i3plus.ext.mes.pojo.constant.MesCommonConstant;
|
||||
import cn.estsh.i3plus.pojo.base.bean.ListPager;
|
||||
import cn.estsh.i3plus.pojo.base.common.Pager;
|
||||
import cn.estsh.i3plus.pojo.base.enumutil.ResourceEnumUtil;
|
||||
import cn.estsh.i3plus.pojo.mes.model.report.AssemblyPartReportModel;
|
||||
import cn.estsh.impp.framework.boot.auth.AuthUtil;
|
||||
import cn.estsh.impp.framework.boot.exception.ImppBusiException;
|
||||
import cn.estsh.impp.framework.boot.exception.ImppExceptionBuilder;
|
||||
import cn.estsh.impp.framework.boot.util.ResultBean;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
* @Description : 装配件报表
|
||||
* @Reference :
|
||||
* @Author : PZJ
|
||||
* @CreateDate : 2024/9/29 10:17
|
||||
* @Modify:
|
||||
**/
|
||||
@Api("装配件报表")
|
||||
@RestController
|
||||
@RequestMapping(MesCommonConstant.MES_YANFEN + "/assembly-part-report")
|
||||
public class AssemblyPartReportController {
|
||||
|
||||
@Autowired
|
||||
private IAssemblyPartReportService assemblyPartReportService;
|
||||
|
||||
@ApiOperation(value = "装配件报表")
|
||||
@PostMapping("/queryReport")
|
||||
public ResultBean queryReport(AssemblyPartReportModel model, Pager pager) {
|
||||
try {
|
||||
model.setOrganizeCode(AuthUtil.getOrganize().getOrganizeCode());
|
||||
ListPager<AssemblyPartReportModel> result = assemblyPartReportService.queryReport(model,pager);
|
||||
return ResultBean.success("查询成功").setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode()).setListPager(result);
|
||||
} catch (ImppBusiException e) {
|
||||
return ResultBean.fail(e);
|
||||
} catch (Exception e) {
|
||||
return ImppExceptionBuilder.newInstance().buildExceptionResult(e);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,48 @@
|
||||
package cn.estsh.i3plus.ext.mes.apiservice.controller.report;
|
||||
|
||||
import cn.estsh.i3plus.ext.mes.api.busi.report.IProductInspectionSubReportService;
|
||||
import cn.estsh.i3plus.ext.mes.pojo.constant.MesCommonConstant;
|
||||
import cn.estsh.i3plus.pojo.base.bean.ListPager;
|
||||
import cn.estsh.i3plus.pojo.base.common.Pager;
|
||||
import cn.estsh.i3plus.pojo.base.enumutil.ResourceEnumUtil;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesQmsSuspicious;
|
||||
import cn.estsh.impp.framework.boot.auth.AuthUtil;
|
||||
import cn.estsh.impp.framework.boot.exception.ImppBusiException;
|
||||
import cn.estsh.impp.framework.boot.exception.ImppExceptionBuilder;
|
||||
import cn.estsh.impp.framework.boot.util.ResultBean;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @Description : 检验产品数据子报表
|
||||
* @Reference :
|
||||
* @Author : PZJ
|
||||
* @CreateDate : 2024/9/29 13:48
|
||||
* @Modify:
|
||||
**/
|
||||
@Api("检验产品数据子报表")
|
||||
@RestController
|
||||
@RequestMapping(MesCommonConstant.MES_YANFEN + "/product-inspection-sub-report")
|
||||
public class ProductInspectionSubReportController {
|
||||
|
||||
@Autowired
|
||||
private IProductInspectionSubReportService productInspectionSubReportService;
|
||||
|
||||
@ApiOperation(value = "检验产品数据子报表")
|
||||
@PostMapping("/queryReport")
|
||||
public ResultBean queryReport(MesQmsSuspicious model, Pager pager) {
|
||||
try {
|
||||
model.setOrganizeCode(AuthUtil.getOrganize().getOrganizeCode());
|
||||
ListPager<MesQmsSuspicious> result = productInspectionSubReportService.queryReport(model,pager);
|
||||
return ResultBean.success("查询成功").setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode()).setListPager(result);
|
||||
} catch (ImppBusiException e) {
|
||||
return ResultBean.fail(e);
|
||||
} catch (Exception e) {
|
||||
return ImppExceptionBuilder.newInstance().buildExceptionResult(e);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,48 @@
|
||||
package cn.estsh.i3plus.ext.mes.apiservice.controller.report;
|
||||
|
||||
import cn.estsh.i3plus.ext.mes.api.busi.report.IShipmentDetailReportService;
|
||||
import cn.estsh.i3plus.ext.mes.pojo.constant.MesCommonConstant;
|
||||
import cn.estsh.i3plus.pojo.base.bean.ListPager;
|
||||
import cn.estsh.i3plus.pojo.base.common.Pager;
|
||||
import cn.estsh.i3plus.pojo.base.enumutil.ResourceEnumUtil;
|
||||
import cn.estsh.i3plus.pojo.mes.model.report.ShippingReportModel;
|
||||
import cn.estsh.impp.framework.boot.auth.AuthUtil;
|
||||
import cn.estsh.impp.framework.boot.exception.ImppBusiException;
|
||||
import cn.estsh.impp.framework.boot.exception.ImppExceptionBuilder;
|
||||
import cn.estsh.impp.framework.boot.util.ResultBean;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @Description : 发运明细报表
|
||||
* @Reference :
|
||||
* @Author : PZJ
|
||||
* @CreateDate : 2024/9/29 9:47
|
||||
* @Modify:
|
||||
**/
|
||||
@Api("发运明细报表")
|
||||
@RestController
|
||||
@RequestMapping(MesCommonConstant.MES_YANFEN + "/shipment-detail-Report")
|
||||
public class ShipmentDetailReportController {
|
||||
|
||||
@Autowired
|
||||
private IShipmentDetailReportService shipmentDetailReportService;
|
||||
|
||||
@ApiOperation(value = "发运明细报表")
|
||||
@PostMapping("/queryReport")
|
||||
public ResultBean queryReport(ShippingReportModel model, Pager pager) {
|
||||
try {
|
||||
model.setOrganizeCode(AuthUtil.getOrganize().getOrganizeCode());
|
||||
ListPager<ShippingReportModel> result = shipmentDetailReportService.queryReport(model,pager);
|
||||
return ResultBean.success("查询成功").setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode()).setListPager(result);
|
||||
} catch (ImppBusiException e) {
|
||||
return ResultBean.fail(e);
|
||||
} catch (Exception e) {
|
||||
return ImppExceptionBuilder.newInstance().buildExceptionResult(e);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,48 @@
|
||||
package cn.estsh.i3plus.ext.mes.apiservice.controller.report;
|
||||
|
||||
import cn.estsh.i3plus.ext.mes.api.busi.report.ISuspiciousItemBarcodeReportService;
|
||||
import cn.estsh.i3plus.ext.mes.pojo.constant.MesCommonConstant;
|
||||
import cn.estsh.i3plus.pojo.base.bean.ListPager;
|
||||
import cn.estsh.i3plus.pojo.base.common.Pager;
|
||||
import cn.estsh.i3plus.pojo.base.enumutil.ResourceEnumUtil;
|
||||
import cn.estsh.i3plus.pojo.mes.model.report.SuspiciousItemBarcodeReportModel;
|
||||
import cn.estsh.impp.framework.boot.auth.AuthUtil;
|
||||
import cn.estsh.impp.framework.boot.exception.ImppBusiException;
|
||||
import cn.estsh.impp.framework.boot.exception.ImppExceptionBuilder;
|
||||
import cn.estsh.impp.framework.boot.util.ResultBean;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @Description :可疑品条码信息报表
|
||||
* @Reference :
|
||||
* @Author : PZJ
|
||||
* @CreateDate : 2024/9/28 18:53
|
||||
* @Modify:
|
||||
**/
|
||||
@Api("可疑品条码信息报表")
|
||||
@RestController
|
||||
@RequestMapping(MesCommonConstant.MES_YANFEN + "/suspicious-item-barcode-report")
|
||||
public class SuspiciousItemBarcodeReportController {
|
||||
|
||||
@Autowired
|
||||
private ISuspiciousItemBarcodeReportService suspiciousItemBarcodeReportService;
|
||||
|
||||
@ApiOperation(value = "查询可疑品条码信息报表")
|
||||
@PostMapping("/queryReport")
|
||||
public ResultBean queryReport(SuspiciousItemBarcodeReportModel model, Pager pager) {
|
||||
try {
|
||||
model.setOrganizeCode(AuthUtil.getOrganize().getOrganizeCode());
|
||||
ListPager<SuspiciousItemBarcodeReportModel> result = suspiciousItemBarcodeReportService.queryReport(model,pager);
|
||||
return ResultBean.success("查询成功").setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode()).setListPager(result);
|
||||
} catch (ImppBusiException e) {
|
||||
return ResultBean.fail(e);
|
||||
} catch (Exception e) {
|
||||
return ImppExceptionBuilder.newInstance().buildExceptionResult(e);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package cn.estsh.i3plus.ext.mes.apiservice.dao.report;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.ListPager;
|
||||
import cn.estsh.i3plus.pojo.base.common.Pager;
|
||||
import cn.estsh.i3plus.pojo.mes.model.report.AssemblyPartReportModel;
|
||||
|
||||
/**
|
||||
* @Description : 装配件查询
|
||||
* @Reference :
|
||||
* @Author : PZJ
|
||||
* @CreateDate : 2024/9/29 10:21
|
||||
* @Modify:
|
||||
**/
|
||||
public interface IAssemblyPartReportDao {
|
||||
ListPager<AssemblyPartReportModel> queryReport(AssemblyPartReportModel model, Pager pager);
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package cn.estsh.i3plus.ext.mes.apiservice.dao.report;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.ListPager;
|
||||
import cn.estsh.i3plus.pojo.base.common.Pager;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesQmsSuspicious;
|
||||
|
||||
/**
|
||||
* @Description : 检验产品数据子报表
|
||||
* @Reference :
|
||||
* @Author : PZJ
|
||||
* @CreateDate : 2024/9/29 13:51
|
||||
* @Modify:
|
||||
**/
|
||||
public interface IProductInspectionSubReportDao {
|
||||
ListPager<MesQmsSuspicious> queryReport(MesQmsSuspicious model, Pager pager);
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package cn.estsh.i3plus.ext.mes.apiservice.dao.report;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.ListPager;
|
||||
import cn.estsh.i3plus.pojo.base.common.Pager;
|
||||
import cn.estsh.i3plus.pojo.mes.model.report.ShippingReportModel;
|
||||
|
||||
/**
|
||||
* @Description : 发运明细报表 Dao
|
||||
* @Reference :
|
||||
* @Author : PZJ
|
||||
* @CreateDate : 2024/9/29 9:53
|
||||
* @Modify:
|
||||
**/
|
||||
public interface IShipmentDetailReportDao {
|
||||
ListPager<ShippingReportModel> queryReport(ShippingReportModel model, Pager pager);
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue