mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-13 05:12:07 +08:00
岗位修复
This commit is contained in:
+2
-2
@@ -214,7 +214,7 @@ public class OrderController {
|
||||
JSONObject plate = apiDataAchieve.getApiPlateDetailMessage(token, orderNo).get();
|
||||
JSONObject dataModule = apiDataAchieve.getApiGroupMessage(token, orderNo).get();
|
||||
JSONObject block = apiDataAchieve.getApiBlocksMessage(token, orderNo).get();
|
||||
Map<String, List<?>> listMap = apiTypeRealize.apiPlateDataChange(
|
||||
Map<String, Object> listMap = apiTypeRealize.apiPlateDataChange(
|
||||
order,
|
||||
dataPlates,//板件生产信息
|
||||
dataParts,// 配件信息
|
||||
@@ -398,7 +398,7 @@ public class OrderController {
|
||||
@Parameter(name = "deleted", description = "是否删除", example = "false")
|
||||
})
|
||||
@PreAuthorize("@ss.hasPermission('production:manager-list:detail')")
|
||||
public CommonResult<Map<String, List<?>>> getModule(@RequestParam("orderId") Long orderId,
|
||||
public CommonResult<Map<String, Object>> getModule(@RequestParam("orderId") Long orderId,
|
||||
@RequestParam(value = "deleted", required = false, defaultValue = "false") Boolean deleted) {
|
||||
if (deleted == null) {
|
||||
deleted = false;
|
||||
|
||||
+2
-7
@@ -38,6 +38,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
import javax.annotation.Resource;
|
||||
import java.io.IOException;
|
||||
import java.util.*;
|
||||
import java.util.function.BiConsumer;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import static com.cf.imes.framework.common.exception.enums.GlobalErrorCodeConstants.INTERNAL_SERVER_ERROR;
|
||||
@@ -145,13 +146,7 @@ public class OrderInputProcessor {
|
||||
plateGoodMapper.insertBatch(plateGoodDOS.stream().skip(i).limit(1000).collect(Collectors.toList()));
|
||||
}
|
||||
}
|
||||
//rawGoodsMapper.insertBatch(rawGoodsDOS);
|
||||
//orderBodyMapper.insertBatch(orderBodyDOS);
|
||||
//orderGroupMapper.insertBatch(orderGroupDOS);
|
||||
//orderPartsMapper.insertBatch(orderPartsDOS);
|
||||
//plateMapper.insertBatch(plateDOS);
|
||||
//orderModuleExtraMapper.insertBatch(orderModuleExtraDOS);
|
||||
//orderItemMapper.insertBatch(itemDOS);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+3
-3
@@ -60,9 +60,9 @@ public interface OrderService {
|
||||
|
||||
/**
|
||||
* @param orderId: 生产单Id
|
||||
* @return Map<String, List<?>>
|
||||
* @return Map<String, Object>
|
||||
*/
|
||||
Map<String,List<?>> getModule(Long orderId, Integer deleted);
|
||||
Map<String,Object> getModule(Long orderId, Integer deleted);
|
||||
|
||||
/**
|
||||
* @param orderId: 生产单id
|
||||
@@ -98,7 +98,7 @@ public interface OrderService {
|
||||
* @author Administrator
|
||||
* @date 2024/3/30
|
||||
*/
|
||||
Long importApiData(Map<String, List<?>> listMap);
|
||||
Long importApiData(Map<String, Object> listMap);
|
||||
|
||||
/**
|
||||
* 文件数据导入
|
||||
|
||||
+5
-5
@@ -208,14 +208,14 @@ public class OrderServiceImpl implements OrderService {
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, List<?>> getModule(Long orderId, Integer deleted) {
|
||||
public Map<String, Object> getModule(Long orderId, Integer deleted) {
|
||||
// 柜体信息
|
||||
List<OrderModuleRespVO> orderModuleRespVOList = orderBodyMapper.selectModuleByOrderId(orderId, getUserOrganId(), deleted);
|
||||
|
||||
// 配件
|
||||
List<OrderPlatesDetailRespVO> orderItemDOS = orderItemMapper.selectPartsByOrderId(orderId, getUserOrganId(), deleted);
|
||||
|
||||
Map<String, List<?>> map = new HashMap<>();
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
map.put("module", orderModuleRespVOList);
|
||||
map.put("parts", orderItemDOS);
|
||||
return map;
|
||||
@@ -362,7 +362,7 @@ public class OrderServiceImpl implements OrderService {
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public Long importApiData(Map<String, List<?>> listMap) {
|
||||
public Long importApiData(Map<String, Object> listMap) {
|
||||
List<OrderDO> order = (List<OrderDO>) listMap.get("orderDO");
|
||||
if (order != null && order.size() > 0) {
|
||||
OrderDO orderDO = order.get(0);
|
||||
@@ -394,11 +394,11 @@ public class OrderServiceImpl implements OrderService {
|
||||
orderInputProcessor.batchInsert(rawGoodsDO, bodyDO, groupDO, partsDO, plateDO, itemDO, goodsDO, plateGoodDOS);
|
||||
List<OrderModelDO> orderModelDOs = BeanUtils.toBean(plateDetail, OrderModelDO.class);
|
||||
|
||||
if (orderModelDOs.size() > 0) {
|
||||
if (!orderModelDOs.isEmpty()) {
|
||||
orderModelDOs.forEach(orderModelDO -> orderModelDO.setOrderId(order.get(0).getId()));
|
||||
orderInputProcessor.batchSaveModel(orderModelDOs);
|
||||
}
|
||||
if (partsRemark.size() > 0) {
|
||||
if (!partsRemark.isEmpty()) {
|
||||
orderInputProcessor.batchSaveOrderPartsModel(partsRemark);
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -66,12 +66,12 @@ public class ApiTypeRealize {
|
||||
* @author Administrator
|
||||
* @date 2024/5/6
|
||||
*/
|
||||
public Map<String, List<?>> apiPlateDataChange(JSONObject order, JSONObject dataPlates, JSONObject dataParts
|
||||
public Map<String, Object> apiPlateDataChange(JSONObject order, JSONObject dataPlates, JSONObject dataParts
|
||||
, JSONObject dataBody, JSONObject dataGoods
|
||||
, JSONObject plates, JSONObject dataModule
|
||||
, JSONObject dataBlocks, String orderNo,Long orderId, Long organId) {
|
||||
|
||||
Map<String, List<?>> map = new HashMap<>();
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
|
||||
// 生产单id
|
||||
// Long orderId = (Long) identifierGenerator.nextId(null);
|
||||
|
||||
Reference in New Issue
Block a user