feat(init):单据创建1.7

This commit is contained in:
chengzhaofeng 2024-12-10 18:19:30 +08:00
parent 14dc4f77cc
commit 65a3804d16
3 changed files with 3 additions and 1 deletions

View File

@ -9,6 +9,7 @@ import lombok.Data;
*/
@Data
public class WipShopOrderDto {
private String site;
private String shopOrderBo;
private String shopOrder;
private String salesOrder;

View File

@ -1138,6 +1138,7 @@ public class DocumentController {
@ApiOperation(value = "分页查询订单信息", notes = "分页查询订单信息")
@GetMapping("/selectShopOrderInfo/page")
public R selectShopOrderInfo(FrontPage page, WipShopOrderDto wipShopOrderDto) {
wipShopOrderDto.setSite(TenantContextHolder.getTenantId());
return R.ok(documentMapper.selectShopOrderInfo(page, wipShopOrderDto));
}

View File

@ -211,7 +211,7 @@
from wip.shop_order so
left join wip.custom_fields cf on cf.HANDLE = so.HANDLE and cf.FIELD_NAME = 'SALE_ORDER'
left join wip.custom_fields cf2 on cf2.HANDLE = so.HANDLE and cf2.FIELD_NAME = 'SALE_ORDER_LINE'
where 1 = 1
where so.SITE = #{wipShopOrderDto.site}
<if test="wipShopOrderDto.shopOrderBo != null and wipShopOrderDto.shopOrderBo != ''">
and so.HANDLE like concat('%', #{wipShopOrderDto.shopOrderBo}, '%');
</if>