|
|
@ -5,7 +5,6 @@ import com.gaotao.common.exception.XJException; |
|
|
import com.gaotao.common.utils.DateUtil; |
|
|
import com.gaotao.common.utils.DateUtil; |
|
|
import com.gaotao.common.utils.DateUtils; |
|
|
import com.gaotao.common.utils.DateUtils; |
|
|
import com.gaotao.common.utils.R; |
|
|
import com.gaotao.common.utils.R; |
|
|
import com.gaotao.modules.purchasingManagement.entity.CRollInfoData; |
|
|
|
|
|
import com.gaotao.modules.schedule.data.dto.ScheduleDateShifDto; |
|
|
import com.gaotao.modules.schedule.data.dto.ScheduleDateShifDto; |
|
|
import com.gaotao.modules.schedule.data.dto.WorkbenchPostinspection; |
|
|
import com.gaotao.modules.schedule.data.dto.WorkbenchPostinspection; |
|
|
import com.gaotao.modules.schedule.mapper.ProcedureMapper; |
|
|
import com.gaotao.modules.schedule.mapper.ProcedureMapper; |
|
|
@ -14,6 +13,7 @@ import com.gaotao.modules.schedule.data.*; |
|
|
import com.gaotao.modules.schedule.mapper.SchedulingMapper; |
|
|
import com.gaotao.modules.schedule.mapper.SchedulingMapper; |
|
|
import com.gaotao.modules.schedule.service.ScheduleService; |
|
|
import com.gaotao.modules.schedule.service.ScheduleService; |
|
|
import com.gaotao.modules.shopOrder.entity.OperatorData; |
|
|
import com.gaotao.modules.shopOrder.entity.OperatorData; |
|
|
|
|
|
import org.apache.xmlbeans.impl.xb.xsdschema.Public; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.stereotype.Service; |
|
|
import org.springframework.stereotype.Service; |
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
@ -2832,17 +2832,38 @@ public class ScheduleServiceImpl implements ScheduleService { |
|
|
Map<String, Object> rollMap = this.getProcessCuttingMaterialRoll(site, orderNo, itemNo, seqNo, rollNo, rmRollNo, rmPartNo, transQty, histSeqNo, operatorId, currentTime); |
|
|
Map<String, Object> rollMap = this.getProcessCuttingMaterialRoll(site, orderNo, itemNo, seqNo, rollNo, rmRollNo, rmPartNo, transQty, histSeqNo, operatorId, currentTime); |
|
|
//获取打印的卷号 |
|
|
//获取打印的卷号 |
|
|
String printRollNo = String.valueOf(rollMap.get("rollNo")); |
|
|
String printRollNo = String.valueOf(rollMap.get("rollNo")); |
|
|
//获取打印的参数 |
|
|
|
|
|
List<Map<String, Object>> printList = new ArrayList<>(); |
|
|
|
|
|
//根据条件查询打印的数据 |
|
|
|
|
|
CRollInfoData cRollInfoData = new CRollInfoData(); |
|
|
|
|
|
cRollInfoData.setSite(site); |
|
|
|
|
|
cRollInfoData.setRollNo(printRollNo); |
|
|
|
|
|
Map<String, Object> printMap = schedulingMapper.getSplitPrintMaterialRoll(cRollInfoData); |
|
|
|
|
|
printList.add(printMap); |
|
|
|
|
|
|
|
|
//调用存储过程获取打印的数据 |
|
|
|
|
|
List<Map<String, Object>> printList = this.getMaterialRollReturnPrintData(site, orderNo, printRollNo); |
|
|
return printList; |
|
|
return printList; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* TODO 获取 下料打印的查询数据 |
|
|
|
|
|
* @author LR |
|
|
|
|
|
* @date 2022/4/29 15:34 |
|
|
|
|
|
* @Param [site, orderNo, rollNo] |
|
|
|
|
|
* @return java.util.List<java.util.Map < java.lang.String, java.lang.Object>> |
|
|
|
|
|
**/ |
|
|
|
|
|
public List<Map<String, Object>> getMaterialRollReturnPrintData(String site, String orderNo, String rollNo) { |
|
|
|
|
|
List<Object> params = new ArrayList<>(); |
|
|
|
|
|
params.add(site); |
|
|
|
|
|
params.add(orderNo); |
|
|
|
|
|
params.add(rollNo); |
|
|
|
|
|
//调用存储过程 |
|
|
|
|
|
List<Map<String, Object>> resulitList = procedureMapper.getProcedureData("getMaterialRollReturnPrintData", params); |
|
|
|
|
|
//返回参数 |
|
|
|
|
|
return resulitList; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* TODO 获取下料打印的数据 |
|
|
|
|
|
* @author LR |
|
|
|
|
|
* @date 2022/4/29 15:28 |
|
|
|
|
|
* @Param null |
|
|
|
|
|
* @return |
|
|
|
|
|
**/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* TODO 调用存储过程 执行材料下料的功能 返回卷号 |
|
|
* TODO 调用存储过程 执行材料下料的功能 返回卷号 |
|
|
* @author LR |
|
|
* @author LR |
|
|
|