diff --git a/jnpf-java-boot/jnpf-admin/src/main/resources/application-test.yml b/jnpf-java-boot/jnpf-admin/src/main/resources/application-test.yml index 7624e376..dd6a772d 100644 --- a/jnpf-java-boot/jnpf-admin/src/main/resources/application-test.yml +++ b/jnpf-java-boot/jnpf-admin/src/main/resources/application-test.yml @@ -2,7 +2,7 @@ server: tomcat: uri-encoding: UTF-8 #tomcat编码 - port: 50000 #tomcat端口 + port: 30000 #tomcat端口 spring: devtools: #spring开发者工具模块 @@ -114,7 +114,7 @@ springdoc: config: kkFileUrl: http://127.0.0.1:30090/FileServer/ #kkfile文件预览服务地址 - ApiDomain: http://127.0.0.1:50000 #后端域名(文档预览中使用) + ApiDomain: http://127.0.0.1:30000 #后端域名(文档预览中使用) FrontDomain: http://127.0.0.1:3000 #前端域名(文档预览中使用) AppDomain: http://127.0.0.1:8080 #app/h5端域名配置(文档预览中使用) # ===================== 是否开启测试环境 ===================== diff --git a/jnpf-java-boot/jnpf-admin/src/main/resources/mapper/scm/BusinessOrderMapper.xml b/jnpf-java-boot/jnpf-admin/src/main/resources/mapper/scm/BusinessOrderMapper.xml index 3cf8b40d..f0c2a9c8 100644 --- a/jnpf-java-boot/jnpf-admin/src/main/resources/mapper/scm/BusinessOrderMapper.xml +++ b/jnpf-java-boot/jnpf-admin/src/main/resources/mapper/scm/BusinessOrderMapper.xml @@ -848,19 +848,19 @@ CASE b.payment_method WHEN '1' THEN - '现金' + 'A' WHEN '2' THEN - '现金' + 'A' WHEN '3' THEN - '现金' + 'A' WHEN '4' THEN - '承兑' + 'B' WHEN '5' THEN - '现金' + 'A' WHEN '6' THEN - '现金' + 'A' WHEN '7' THEN - '现金' + 'A' END AS PAY_MTH, g.yunguan_value AS TRANS_TYPE, CASE @@ -887,7 +887,8 @@ 'N' as ESB_STATUS, null as ESB_DTM, '' as ESB_MESSAGE, - count(h.id) as LINE_SUM + count(h.id) as LINE_SUM, + IF ( LOCATE( '贸易', i.NAME ) > 0, '11', '50' ) AS ORD_TY FROM jg_business_order a LEFT JOIN jg_subject_basic b ON a.first_subject_basic_id = b.id @@ -904,6 +905,8 @@ AND g.f_delete_mark IS NULL AND g.type_id = '565504934695425285' LEFT JOIN jg_business_order_product_relational h ON h.business_order_id = a.id AND h.f_delete_mark IS NULL + LEFT JOIN jg_business_line i ON a.business_line_id = i.id + AND i.f_delete_mark IS NULL WHERE a.f_delete_mark is null and a.id = #{id} @@ -912,7 +915,7 @@ b.id AS ID, c.f_en_code AS COMP_CD, a.CODE AS ORD_NO, - b.ord_ln as ORD_LN, + LPAD(b.ord_ln,2,0) as ORD_LN, d.CODE AS ITEM_CD, d.NAME AS ITEM_NM, d.spec AS SPEC_TYPE, @@ -970,7 +973,7 @@ c.f_en_code AS COMP_CD, f.kucun_org_code AS ORG_ID, f.kucun_org_name AS ORG_NM, - d.f_id as DEPARTMENT_CD, + d.f_en_code as DEPARTMENT_CD, d.f_en_code AS ADD_DEPT_CODE, d.f_full_name AS ADD_DEPT_NAME, a.CODE AS ORD_NO, @@ -1012,19 +1015,19 @@ CASE b.payment_method WHEN '1' THEN - '现金' + 'A' WHEN '2' THEN - '现金' + 'A' WHEN '3' THEN - '现金' + 'A' WHEN '4' THEN - '承兑' + 'B' WHEN '5' THEN - '现金' + 'A' WHEN '6' THEN - '现金' + 'A' WHEN '7' THEN - '现金' + 'A' END AS PAY_MTH, f.total_amount AS CONTR_PRICE, g.full_address AS FROM_PLACE, @@ -1042,8 +1045,12 @@ a.f_creator_time as ORD_REG_DTM, e.f_real_name AS CREATE_EMP_ID, a.f_creator_time as CREATE_DTM, + j.f_real_name as MODIFY_EMP_ID, + a.f_last_modify_time as MODIFY_DTM, + a.f_last_modify_time as ORD_CONF_DTM, '0' as CANCLE_YN, - IF ( LOCATE( '贸易', h.NAME ) > 0, '11', '50' ) AS ORD_TY + IF ( LOCATE( '贸易', h.NAME ) > 0, '11', '50' ) AS ORD_TY, + count(i.id) as LINE_SUM FROM jg_business_order a LEFT JOIN jg_subject_basic b ON a.first_subject_basic_id = b.id @@ -1060,6 +1067,10 @@ AND g.f_delete_mark IS NULL LEFT JOIN jg_business_line h ON a.business_line_id = h.id AND h.f_delete_mark IS NULL + LEFT JOIN jg_business_order_product_relational i ON i.business_order_id = a.id + AND i.f_delete_mark IS NULL + LEFT JOIN base_user j ON a.f_last_modify_user_id = j.f_id + AND j.f_delete_mark is null WHERE a.f_delete_mark IS NULL AND a.id = #{id} @@ -1067,9 +1078,9 @@ SELECT b.id AS ID, c.f_en_code AS COMP_CD, - g.f_id as DEPARTMENT_CD, + g.f_en_code as DEPARTMENT_CD, a.CODE AS ORD_NO, - b.ord_ln as ORD_LN, + LPAD(b.ord_ln,3,0) as LINE_NO, '' as CONTR_LINE_ID, 'B' AS ORD_STS, d.CODE AS ITEM_CD, @@ -1080,8 +1091,8 @@ b.business_price AS ORD_PRICE, b.tax_count AS TOT_AMOUNT, b.tax AS TAX_RATE_CODE, - f.tax_rate_code as TAX_RATE, - (IFNULL(b.tax_count,0) - IFNULL(b.not_tax_count,0)) as TAX_AMOUNT + CONCAT('VAT_OUT_',b.tax) as TAX_RATE, + (IFNULL(CAST(b.tax_count AS DECIMAL(32,2)),0) - IFNULL(CAST(b.not_tax_count AS DECIMAL(32,2)),0)) as TAX_AMOUNT, b.not_tax_price AS TAX_PRICE, b.not_tax_count AS AMOUNT, f.delv_tol_max as DELV_TOL_MAX, @@ -1111,7 +1122,7 @@ AND f.f_delete_mark IS NULL LEFT JOIN base_organize g ON a.department_id = g.f_id AND g.f_delete_mark IS NULL - LEFT JOIN base_user h ON a.f_creator_user_id = h.id AND h.f_delete_mark is null + LEFT JOIN base_user h ON a.f_creator_user_id = h.f_id AND h.f_delete_mark is null WHERE a.f_delete_mark IS NULL AND a.id = #{id} diff --git a/jnpf-java-boot/jnpf-admin/src/main/resources/mapper/scm/WarehousingOutboundMapper.xml b/jnpf-java-boot/jnpf-admin/src/main/resources/mapper/scm/WarehousingOutboundMapper.xml index e9d60587..d63d8983 100644 --- a/jnpf-java-boot/jnpf-admin/src/main/resources/mapper/scm/WarehousingOutboundMapper.xml +++ b/jnpf-java-boot/jnpf-admin/src/main/resources/mapper/scm/WarehousingOutboundMapper.xml @@ -120,23 +120,23 @@