1、修改bug
This commit is contained in:
@@ -260,7 +260,7 @@ public class TemplateInstanceServiceImpl implements TemplateInstanceService {
|
||||
code = TmplStsEnum.STOPPED.getCode();
|
||||
} else if (reqVO.getType().equals("enable")) {
|
||||
// 启用
|
||||
code = TmplStsEnum.START.getCode();
|
||||
code = TmplStsEnum.DRAFT.getCode();
|
||||
}
|
||||
if (code.isEmpty()) {
|
||||
throw exception(ILLEGAL_OPERATION_TYPE);
|
||||
|
||||
@@ -2,7 +2,7 @@ package com.zt.plat.module.contractorder.api;
|
||||
|
||||
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
import com.zt.plat.module.contractorder.api.dto.PurchaseOrderWithDetailsDTO;
|
||||
import com.zt.plat.module.contractorder.api.dto.order.PurchaseOrderWithDetailsDTO;
|
||||
import com.zt.plat.module.contractorder.api.dto.contract.ContractRespDTO;
|
||||
import com.zt.plat.module.contractorder.api.vo.contract.ContractSaveReqVO;
|
||||
import com.zt.plat.module.contractorder.api.vo.contract.international.ContractRequest;
|
||||
@@ -11,7 +11,6 @@ import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import jakarta.validation.Valid;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.zt.plat.module.contractorder.api.dto;
|
||||
package com.zt.plat.module.contractorder.api.dto.order;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.zt.plat.module.contractorder.api.dto;
|
||||
package com.zt.plat.module.contractorder.api.dto.order;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@@ -189,5 +189,12 @@ public class PurchaseOrderWithDetailsDTO {
|
||||
* 订单类型
|
||||
*/
|
||||
private String splyBsnTp;
|
||||
private List<PrchOrdDtlDTO> orderDetails;
|
||||
/**
|
||||
* 采购订单明细
|
||||
*/
|
||||
private List<PrchOrdDtlDTO> prchOrdDtlDTOS;
|
||||
/**
|
||||
* 消费订单明细
|
||||
*/
|
||||
private List<SalesOrdDtlDTO> salesOrdDtlDTOS;
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -77,7 +77,7 @@ public class PrchOrdDtlDetailsRespVO {
|
||||
* 税码(字典: PRCH_TAX);推送ERP
|
||||
*/
|
||||
|
||||
private BigDecimal taxNum;
|
||||
private String taxNum;
|
||||
/**
|
||||
* 是否基于GR的发票校验;推送ERP
|
||||
*/
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -124,6 +124,25 @@ public interface PurchaseOrderService {
|
||||
* @return 结果
|
||||
*/
|
||||
Boolean linkOrder(@Valid LinkOrderReqVO LinkOrderReqVO);
|
||||
|
||||
/**
|
||||
* 获取订单详情
|
||||
*
|
||||
* @param ids 订单id
|
||||
* @return 订单详情
|
||||
*/
|
||||
List<PurchaseOrderDetailsRespVO> getOrderByIds(List<Long> ids);
|
||||
/**
|
||||
* 获取订单详情
|
||||
*
|
||||
* @param orderNos 订单编号
|
||||
* @return 订单详情
|
||||
*/
|
||||
List<PurchaseOrderDO> getOrderByNos(List<String> orderNos);
|
||||
/**
|
||||
* 获取订单详情
|
||||
*
|
||||
* @param ids 订单id
|
||||
* @return 订单详情
|
||||
*/
|
||||
List<PurchaseOrderDO> getOrdersByIds(List<String> ids);
|
||||
}
|
||||
|
||||
@@ -677,4 +677,14 @@ public class PurchaseOrderServiceImpl implements PurchaseOrderService {
|
||||
});
|
||||
return purchaseOrderDetailsRespVOS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PurchaseOrderDO> getOrderByNos(List<String> orderNos) {
|
||||
return purchaseOrderMapper.selectList(PurchaseOrderDO::getSystemOrderNumber, orderNos);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PurchaseOrderDO> getOrdersByIds(List<String> ids) {
|
||||
return purchaseOrderMapper.selectByIds(ids);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user