|
@@ -137,40 +137,40 @@ public class QmsQueueResultController extends BaseRESTfulController {
|
|
|
if(isSpelling == 1){
|
|
|
//原多拼
|
|
|
List<Map<String, Object>> queueListByQueueUpSpelling = qmsQueueResultService.getQueueListByQueueUpSpelling(mapValue);
|
|
|
- //现多拼数据
|
|
|
- for (Map<String, Object> stringObjectMap : queueListByQueueUpSpelling) {
|
|
|
- BigDecimal orderId = (BigDecimal) stringObjectMap.get("orderId");
|
|
|
- //米数
|
|
|
- List<Map<String, Object>> materialId = qmsQueueResultMapper.getMaterialId(orderId);
|
|
|
- for (Map<String, Object> objectMap : materialId) {
|
|
|
- BigDecimal materialId2 = DataChange.dataToBigDecimal(stringObjectMap.get("materialId"));
|
|
|
- BigDecimal materialId1 = (BigDecimal) objectMap.get("materialId");
|
|
|
- if (materialId2.compareTo(materialId1)==0){
|
|
|
- //钢材长度
|
|
|
- BigDecimal steelmeter = (BigDecimal) objectMap.get("steelmeter");
|
|
|
- stringObjectMap.put("steelMeter",steelmeter);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ ////现多拼数据
|
|
|
+ //for (Map<String, Object> stringObjectMap : queueListByQueueUpSpelling) {
|
|
|
+ // BigDecimal orderId = (BigDecimal) stringObjectMap.get("orderId");
|
|
|
+ // //米数
|
|
|
+ // List<Map<String, Object>> materialId = qmsQueueResultMapper.getMaterialId(orderId);
|
|
|
+ // for (Map<String, Object> objectMap : materialId) {
|
|
|
+ // BigDecimal materialId2 = DataChange.dataToBigDecimal(stringObjectMap.get("materialId"));
|
|
|
+ // BigDecimal materialId1 = (BigDecimal) objectMap.get("materialId");
|
|
|
+ // if (materialId2.compareTo(materialId1)==0){
|
|
|
+ // //钢材长度
|
|
|
+ // BigDecimal steelmeter = (BigDecimal) objectMap.get("steelmeter");
|
|
|
+ // stringObjectMap.put("steelMeter",steelmeter);
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ //}
|
|
|
return success(queueListByQueueUpSpelling);
|
|
|
}else if (isSpelling == 2){
|
|
|
//两拼数据
|
|
|
List<Map<String, Object>> queueListByQueueUpSpellingNew = qmsQueueResultService.getQueueListByQueueUpSpellingNew(mapValue);
|
|
|
- //现多拼数据
|
|
|
- for (Map<String, Object> stringObjectMap : queueListByQueueUpSpellingNew) {
|
|
|
- BigDecimal orderId = (BigDecimal) stringObjectMap.get("orderId");
|
|
|
- //米数
|
|
|
- List<Map<String, Object>> materialId = qmsQueueResultMapper.getMaterialId(orderId);
|
|
|
- for (Map<String, Object> objectMap : materialId) {
|
|
|
- BigDecimal materialId2 = DataChange.dataToBigDecimal(stringObjectMap.get("materialId"));
|
|
|
- BigDecimal materialId1 = (BigDecimal) objectMap.get("materialId");
|
|
|
- if (materialId2.compareTo(materialId1)==0){
|
|
|
- //钢材长度
|
|
|
- BigDecimal steelmeter = (BigDecimal) objectMap.get("steelmeter");
|
|
|
- stringObjectMap.put("steelMeter",steelmeter);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ ////现多拼数据
|
|
|
+ //for (Map<String, Object> stringObjectMap : queueListByQueueUpSpellingNew) {
|
|
|
+ // BigDecimal orderId = (BigDecimal) stringObjectMap.get("orderId");
|
|
|
+ // //米数
|
|
|
+ // List<Map<String, Object>> materialId = qmsQueueResultMapper.getMaterialId(orderId);
|
|
|
+ // for (Map<String, Object> objectMap : materialId) {
|
|
|
+ // BigDecimal materialId2 = DataChange.dataToBigDecimal(stringObjectMap.get("materialId"));
|
|
|
+ // BigDecimal materialId1 = (BigDecimal) objectMap.get("materialId");
|
|
|
+ // if (materialId2.compareTo(materialId1)==0){
|
|
|
+ // //钢材长度
|
|
|
+ // BigDecimal steelmeter = (BigDecimal) objectMap.get("steelmeter");
|
|
|
+ // stringObjectMap.put("steelMeter",steelmeter);
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ //}
|
|
|
return success(queueListByQueueUpSpellingNew);
|
|
|
}
|
|
|
else {
|