commit 26136c13d0468b86435f994f48d6a7483e9a72a6 Author: anthonywj Date: Tue Feb 28 15:29:48 2023 +0800 first commit diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..73f69e0 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/.idea/artifacts/udi_erp_sync_java_war.xml b/.idea/artifacts/udi_erp_sync_java_war.xml new file mode 100644 index 0000000..4095c2c --- /dev/null +++ b/.idea/artifacts/udi_erp_sync_java_war.xml @@ -0,0 +1,14 @@ + + + $PROJECT_DIR$/target + + + udi-erp-sync-java + war + + + + + + + \ No newline at end of file diff --git a/.idea/artifacts/udi_erp_sync_java_war_exploded.xml b/.idea/artifacts/udi_erp_sync_java_war_exploded.xml new file mode 100644 index 0000000..c22ba46 --- /dev/null +++ b/.idea/artifacts/udi_erp_sync_java_war_exploded.xml @@ -0,0 +1,126 @@ + + + $PROJECT_DIR$/target/udi-erp-sync-java-0.0.1-SNAPSHOT + + + true + udi-erp-sync-java + war + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..9b23334 --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..63e9001 --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml new file mode 100644 index 0000000..712ab9d --- /dev/null +++ b/.idea/jarRepositories.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__ch_qos_logback_logback_classic_1_2_11.xml b/.idea/libraries/Maven__ch_qos_logback_logback_classic_1_2_11.xml new file mode 100644 index 0000000..d933c04 --- /dev/null +++ b/.idea/libraries/Maven__ch_qos_logback_logback_classic_1_2_11.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__ch_qos_logback_logback_core_1_2_11.xml b/.idea/libraries/Maven__ch_qos_logback_logback_core_1_2_11.xml new file mode 100644 index 0000000..32fea37 --- /dev/null +++ b/.idea/libraries/Maven__ch_qos_logback_logback_core_1_2_11.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__cn_hutool_hutool_all_5_8_12.xml b/.idea/libraries/Maven__cn_hutool_hutool_all_5_8_12.xml new file mode 100644 index 0000000..df6faae --- /dev/null +++ b/.idea/libraries/Maven__cn_hutool_hutool_all_5_8_12.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_alibaba_fastjson2_fastjson2_2_0_24.xml b/.idea/libraries/Maven__com_alibaba_fastjson2_fastjson2_2_0_24.xml new file mode 100644 index 0000000..0515929 --- /dev/null +++ b/.idea/libraries/Maven__com_alibaba_fastjson2_fastjson2_2_0_24.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_baomidou_mybatis_plus_3_5_3_1.xml b/.idea/libraries/Maven__com_baomidou_mybatis_plus_3_5_3_1.xml new file mode 100644 index 0000000..40e0005 --- /dev/null +++ b/.idea/libraries/Maven__com_baomidou_mybatis_plus_3_5_3_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_baomidou_mybatis_plus_annotation_3_5_3_1.xml b/.idea/libraries/Maven__com_baomidou_mybatis_plus_annotation_3_5_3_1.xml new file mode 100644 index 0000000..1758983 --- /dev/null +++ b/.idea/libraries/Maven__com_baomidou_mybatis_plus_annotation_3_5_3_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_baomidou_mybatis_plus_boot_starter_3_5_3_1.xml b/.idea/libraries/Maven__com_baomidou_mybatis_plus_boot_starter_3_5_3_1.xml new file mode 100644 index 0000000..2414919 --- /dev/null +++ b/.idea/libraries/Maven__com_baomidou_mybatis_plus_boot_starter_3_5_3_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_baomidou_mybatis_plus_core_3_5_3_1.xml b/.idea/libraries/Maven__com_baomidou_mybatis_plus_core_3_5_3_1.xml new file mode 100644 index 0000000..266dfef --- /dev/null +++ b/.idea/libraries/Maven__com_baomidou_mybatis_plus_core_3_5_3_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_baomidou_mybatis_plus_extension_3_5_3_1.xml b/.idea/libraries/Maven__com_baomidou_mybatis_plus_extension_3_5_3_1.xml new file mode 100644 index 0000000..958eeb8 --- /dev/null +++ b/.idea/libraries/Maven__com_baomidou_mybatis_plus_extension_3_5_3_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_fasterxml_classmate_1_5_1.xml b/.idea/libraries/Maven__com_fasterxml_classmate_1_5_1.xml new file mode 100644 index 0000000..596b146 --- /dev/null +++ b/.idea/libraries/Maven__com_fasterxml_classmate_1_5_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_13_4.xml b/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_13_4.xml new file mode 100644 index 0000000..62bfcdc --- /dev/null +++ b/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_13_4.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_13_4.xml b/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_13_4.xml new file mode 100644 index 0000000..a1f1371 --- /dev/null +++ b/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_13_4.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_13_4_2.xml b/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_13_4_2.xml new file mode 100644 index 0000000..d57428b --- /dev/null +++ b/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_13_4_2.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_13_4.xml b/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_13_4.xml new file mode 100644 index 0000000..0921ec8 --- /dev/null +++ b/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_13_4.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_13_4.xml b/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_13_4.xml new file mode 100644 index 0000000..3101638 --- /dev/null +++ b/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_13_4.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_13_4.xml b/.idea/libraries/Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_13_4.xml new file mode 100644 index 0000000..0abd5cf --- /dev/null +++ b/.idea/libraries/Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_13_4.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_fasterxml_woodstox_woodstox_core_6_2_7.xml b/.idea/libraries/Maven__com_fasterxml_woodstox_woodstox_core_6_2_7.xml new file mode 100644 index 0000000..f000a64 --- /dev/null +++ b/.idea/libraries/Maven__com_fasterxml_woodstox_woodstox_core_6_2_7.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_github_jsqlparser_jsqlparser_4_4.xml b/.idea/libraries/Maven__com_github_jsqlparser_jsqlparser_4_4.xml new file mode 100644 index 0000000..08db094 --- /dev/null +++ b/.idea/libraries/Maven__com_github_jsqlparser_jsqlparser_4_4.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_github_virtuald_curvesapi_1_04.xml b/.idea/libraries/Maven__com_github_virtuald_curvesapi_1_04.xml new file mode 100644 index 0000000..d1c7d12 --- /dev/null +++ b/.idea/libraries/Maven__com_github_virtuald_curvesapi_1_04.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_google_protobuf_protobuf_java_3_11_4.xml b/.idea/libraries/Maven__com_google_protobuf_protobuf_java_3_11_4.xml new file mode 100644 index 0000000..0454ae3 --- /dev/null +++ b/.idea/libraries/Maven__com_google_protobuf_protobuf_java_3_11_4.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_squareup_okhttp3_okhttp_4_10_0.xml b/.idea/libraries/Maven__com_squareup_okhttp3_okhttp_4_10_0.xml new file mode 100644 index 0000000..4ed8556 --- /dev/null +++ b/.idea/libraries/Maven__com_squareup_okhttp3_okhttp_4_10_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_squareup_okio_okio_jvm_3_0_0.xml b/.idea/libraries/Maven__com_squareup_okio_okio_jvm_3_0_0.xml new file mode 100644 index 0000000..f3011db --- /dev/null +++ b/.idea/libraries/Maven__com_squareup_okio_okio_jvm_3_0_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_sun_activation_jakarta_activation_1_2_2.xml b/.idea/libraries/Maven__com_sun_activation_jakarta_activation_1_2_2.xml new file mode 100644 index 0000000..bd55f34 --- /dev/null +++ b/.idea/libraries/Maven__com_sun_activation_jakarta_activation_1_2_2.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_sun_istack_istack_commons_runtime_3_0_12.xml b/.idea/libraries/Maven__com_sun_istack_istack_commons_runtime_3_0_12.xml new file mode 100644 index 0000000..1e28ab7 --- /dev/null +++ b/.idea/libraries/Maven__com_sun_istack_istack_commons_runtime_3_0_12.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_sun_xml_messaging_saaj_saaj_impl_1_5_3.xml b/.idea/libraries/Maven__com_sun_xml_messaging_saaj_saaj_impl_1_5_3.xml new file mode 100644 index 0000000..4e1bc6e --- /dev/null +++ b/.idea/libraries/Maven__com_sun_xml_messaging_saaj_saaj_impl_1_5_3.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_zaxxer_HikariCP_4_0_3.xml b/.idea/libraries/Maven__com_zaxxer_HikariCP_4_0_3.xml new file mode 100644 index 0000000..5caedc9 --- /dev/null +++ b/.idea/libraries/Maven__com_zaxxer_HikariCP_4_0_3.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__commons_codec_commons_codec_1_15.xml b/.idea/libraries/Maven__commons_codec_commons_codec_1_15.xml new file mode 100644 index 0000000..f18e6ac --- /dev/null +++ b/.idea/libraries/Maven__commons_codec_commons_codec_1_15.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__jakarta_activation_jakarta_activation_api_1_2_2.xml b/.idea/libraries/Maven__jakarta_activation_jakarta_activation_api_1_2_2.xml new file mode 100644 index 0000000..718722a --- /dev/null +++ b/.idea/libraries/Maven__jakarta_activation_jakarta_activation_api_1_2_2.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__jakarta_annotation_jakarta_annotation_api_1_3_5.xml b/.idea/libraries/Maven__jakarta_annotation_jakarta_annotation_api_1_3_5.xml new file mode 100644 index 0000000..2de120e --- /dev/null +++ b/.idea/libraries/Maven__jakarta_annotation_jakarta_annotation_api_1_3_5.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__jakarta_jws_jakarta_jws_api_2_1_0.xml b/.idea/libraries/Maven__jakarta_jws_jakarta_jws_api_2_1_0.xml new file mode 100644 index 0000000..2d31a53 --- /dev/null +++ b/.idea/libraries/Maven__jakarta_jws_jakarta_jws_api_2_1_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__jakarta_validation_jakarta_validation_api_2_0_2.xml b/.idea/libraries/Maven__jakarta_validation_jakarta_validation_api_2_0_2.xml new file mode 100644 index 0000000..c48d3cd --- /dev/null +++ b/.idea/libraries/Maven__jakarta_validation_jakarta_validation_api_2_0_2.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__jakarta_xml_bind_jakarta_xml_bind_api_2_3_3.xml b/.idea/libraries/Maven__jakarta_xml_bind_jakarta_xml_bind_api_2_3_3.xml new file mode 100644 index 0000000..484e98c --- /dev/null +++ b/.idea/libraries/Maven__jakarta_xml_bind_jakarta_xml_bind_api_2_3_3.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__jakarta_xml_soap_jakarta_xml_soap_api_1_4_2.xml b/.idea/libraries/Maven__jakarta_xml_soap_jakarta_xml_soap_api_1_4_2.xml new file mode 100644 index 0000000..b35f442 --- /dev/null +++ b/.idea/libraries/Maven__jakarta_xml_soap_jakarta_xml_soap_api_1_4_2.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__jakarta_xml_ws_jakarta_xml_ws_api_2_3_3.xml b/.idea/libraries/Maven__jakarta_xml_ws_jakarta_xml_ws_api_2_3_3.xml new file mode 100644 index 0000000..e3d12aa --- /dev/null +++ b/.idea/libraries/Maven__jakarta_xml_ws_jakarta_xml_ws_api_2_3_3.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__javax_servlet_javax_servlet_api_3_1_0.xml b/.idea/libraries/Maven__javax_servlet_javax_servlet_api_3_1_0.xml new file mode 100644 index 0000000..46c4a7f --- /dev/null +++ b/.idea/libraries/Maven__javax_servlet_javax_servlet_api_3_1_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__mysql_mysql_connector_java_8_0_21.xml b/.idea/libraries/Maven__mysql_mysql_connector_java_8_0_21.xml new file mode 100644 index 0000000..7aa0b68 --- /dev/null +++ b/.idea/libraries/Maven__mysql_mysql_connector_java_8_0_21.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_commons_commons_collections4_4_2.xml b/.idea/libraries/Maven__org_apache_commons_commons_collections4_4_2.xml new file mode 100644 index 0000000..650e8d9 --- /dev/null +++ b/.idea/libraries/Maven__org_apache_commons_commons_collections4_4_2.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_commons_commons_compress_1_18.xml b/.idea/libraries/Maven__org_apache_commons_commons_compress_1_18.xml new file mode 100644 index 0000000..119e8f5 --- /dev/null +++ b/.idea/libraries/Maven__org_apache_commons_commons_compress_1_18.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_cxf_cxf_core_3_5_2.xml b/.idea/libraries/Maven__org_apache_cxf_cxf_core_3_5_2.xml new file mode 100644 index 0000000..01646ee --- /dev/null +++ b/.idea/libraries/Maven__org_apache_cxf_cxf_core_3_5_2.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_cxf_cxf_rt_bindings_soap_3_5_2.xml b/.idea/libraries/Maven__org_apache_cxf_cxf_rt_bindings_soap_3_5_2.xml new file mode 100644 index 0000000..27ad17d --- /dev/null +++ b/.idea/libraries/Maven__org_apache_cxf_cxf_rt_bindings_soap_3_5_2.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_cxf_cxf_rt_bindings_xml_3_5_2.xml b/.idea/libraries/Maven__org_apache_cxf_cxf_rt_bindings_xml_3_5_2.xml new file mode 100644 index 0000000..e6db891 --- /dev/null +++ b/.idea/libraries/Maven__org_apache_cxf_cxf_rt_bindings_xml_3_5_2.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_cxf_cxf_rt_databinding_jaxb_3_5_2.xml b/.idea/libraries/Maven__org_apache_cxf_cxf_rt_databinding_jaxb_3_5_2.xml new file mode 100644 index 0000000..73080b1 --- /dev/null +++ b/.idea/libraries/Maven__org_apache_cxf_cxf_rt_databinding_jaxb_3_5_2.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_cxf_cxf_rt_features_metrics_3_5_2.xml b/.idea/libraries/Maven__org_apache_cxf_cxf_rt_features_metrics_3_5_2.xml new file mode 100644 index 0000000..696615d --- /dev/null +++ b/.idea/libraries/Maven__org_apache_cxf_cxf_rt_features_metrics_3_5_2.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_cxf_cxf_rt_frontend_jaxws_3_5_2.xml b/.idea/libraries/Maven__org_apache_cxf_cxf_rt_frontend_jaxws_3_5_2.xml new file mode 100644 index 0000000..0ddb847 --- /dev/null +++ b/.idea/libraries/Maven__org_apache_cxf_cxf_rt_frontend_jaxws_3_5_2.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_cxf_cxf_rt_frontend_simple_3_5_2.xml b/.idea/libraries/Maven__org_apache_cxf_cxf_rt_frontend_simple_3_5_2.xml new file mode 100644 index 0000000..e889938 --- /dev/null +++ b/.idea/libraries/Maven__org_apache_cxf_cxf_rt_frontend_simple_3_5_2.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_cxf_cxf_rt_transports_http_3_5_2.xml b/.idea/libraries/Maven__org_apache_cxf_cxf_rt_transports_http_3_5_2.xml new file mode 100644 index 0000000..2e8bb81 --- /dev/null +++ b/.idea/libraries/Maven__org_apache_cxf_cxf_rt_transports_http_3_5_2.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_cxf_cxf_rt_ws_addr_3_5_2.xml b/.idea/libraries/Maven__org_apache_cxf_cxf_rt_ws_addr_3_5_2.xml new file mode 100644 index 0000000..c887319 --- /dev/null +++ b/.idea/libraries/Maven__org_apache_cxf_cxf_rt_ws_addr_3_5_2.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_cxf_cxf_rt_ws_policy_3_5_2.xml b/.idea/libraries/Maven__org_apache_cxf_cxf_rt_ws_policy_3_5_2.xml new file mode 100644 index 0000000..5ac590b --- /dev/null +++ b/.idea/libraries/Maven__org_apache_cxf_cxf_rt_ws_policy_3_5_2.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_cxf_cxf_rt_wsdl_3_5_2.xml b/.idea/libraries/Maven__org_apache_cxf_cxf_rt_wsdl_3_5_2.xml new file mode 100644 index 0000000..53eaf73 --- /dev/null +++ b/.idea/libraries/Maven__org_apache_cxf_cxf_rt_wsdl_3_5_2.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_cxf_cxf_spring_boot_autoconfigure_3_5_2.xml b/.idea/libraries/Maven__org_apache_cxf_cxf_spring_boot_autoconfigure_3_5_2.xml new file mode 100644 index 0000000..7490c16 --- /dev/null +++ b/.idea/libraries/Maven__org_apache_cxf_cxf_spring_boot_autoconfigure_3_5_2.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_cxf_cxf_spring_boot_starter_jaxws_3_5_2.xml b/.idea/libraries/Maven__org_apache_cxf_cxf_spring_boot_starter_jaxws_3_5_2.xml new file mode 100644 index 0000000..f603b0a --- /dev/null +++ b/.idea/libraries/Maven__org_apache_cxf_cxf_spring_boot_starter_jaxws_3_5_2.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_geronimo_specs_geronimo_jta_1_1_spec_1_1_1.xml b/.idea/libraries/Maven__org_apache_geronimo_specs_geronimo_jta_1_1_spec_1_1_1.xml new file mode 100644 index 0000000..46dc02d --- /dev/null +++ b/.idea/libraries/Maven__org_apache_geronimo_specs_geronimo_jta_1_1_spec_1_1_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_logging_log4j_log4j_api_2_17_2.xml b/.idea/libraries/Maven__org_apache_logging_log4j_log4j_api_2_17_2.xml new file mode 100644 index 0000000..ef408fb --- /dev/null +++ b/.idea/libraries/Maven__org_apache_logging_log4j_log4j_api_2_17_2.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_logging_log4j_log4j_to_slf4j_2_17_2.xml b/.idea/libraries/Maven__org_apache_logging_log4j_log4j_to_slf4j_2_17_2.xml new file mode 100644 index 0000000..4b53a7f --- /dev/null +++ b/.idea/libraries/Maven__org_apache_logging_log4j_log4j_to_slf4j_2_17_2.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_neethi_neethi_3_2_0.xml b/.idea/libraries/Maven__org_apache_neethi_neethi_3_2_0.xml new file mode 100644 index 0000000..61cd203 --- /dev/null +++ b/.idea/libraries/Maven__org_apache_neethi_neethi_3_2_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_poi_poi_4_0_0.xml b/.idea/libraries/Maven__org_apache_poi_poi_4_0_0.xml new file mode 100644 index 0000000..18f7bfb --- /dev/null +++ b/.idea/libraries/Maven__org_apache_poi_poi_4_0_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_poi_poi_ooxml_4_0_0.xml b/.idea/libraries/Maven__org_apache_poi_poi_ooxml_4_0_0.xml new file mode 100644 index 0000000..3d264ec --- /dev/null +++ b/.idea/libraries/Maven__org_apache_poi_poi_ooxml_4_0_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_poi_poi_ooxml_schemas_4_0_0.xml b/.idea/libraries/Maven__org_apache_poi_poi_ooxml_schemas_4_0_0.xml new file mode 100644 index 0000000..1d7c042 --- /dev/null +++ b/.idea/libraries/Maven__org_apache_poi_poi_ooxml_schemas_4_0_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_9_0_71.xml b/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_9_0_71.xml new file mode 100644 index 0000000..0d62770 --- /dev/null +++ b/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_9_0_71.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_el_9_0_71.xml b/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_el_9_0_71.xml new file mode 100644 index 0000000..c39c03a --- /dev/null +++ b/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_el_9_0_71.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_9_0_71.xml b/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_9_0_71.xml new file mode 100644 index 0000000..2c87a93 --- /dev/null +++ b/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_9_0_71.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_ws_xmlschema_xmlschema_core_2_3_0.xml b/.idea/libraries/Maven__org_apache_ws_xmlschema_xmlschema_core_2_3_0.xml new file mode 100644 index 0000000..ed12388 --- /dev/null +++ b/.idea/libraries/Maven__org_apache_ws_xmlschema_xmlschema_core_2_3_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_apache_xmlbeans_xmlbeans_3_0_1.xml b/.idea/libraries/Maven__org_apache_xmlbeans_xmlbeans_3_0_1.xml new file mode 100644 index 0000000..f836e82 --- /dev/null +++ b/.idea/libraries/Maven__org_apache_xmlbeans_xmlbeans_3_0_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_aspectj_aspectjweaver_1_9_7.xml b/.idea/libraries/Maven__org_aspectj_aspectjweaver_1_9_7.xml new file mode 100644 index 0000000..135b1da --- /dev/null +++ b/.idea/libraries/Maven__org_aspectj_aspectjweaver_1_9_7.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_codehaus_woodstox_stax2_api_4_2_1.xml b/.idea/libraries/Maven__org_codehaus_woodstox_stax2_api_4_2_1.xml new file mode 100644 index 0000000..997f19c --- /dev/null +++ b/.idea/libraries/Maven__org_codehaus_woodstox_stax2_api_4_2_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_dom4j_dom4j_2_1_3.xml b/.idea/libraries/Maven__org_dom4j_dom4j_2_1_3.xml new file mode 100644 index 0000000..73bde01 --- /dev/null +++ b/.idea/libraries/Maven__org_dom4j_dom4j_2_1_3.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_glassfish_jaxb_jaxb_runtime_2_3_7.xml b/.idea/libraries/Maven__org_glassfish_jaxb_jaxb_runtime_2_3_7.xml new file mode 100644 index 0000000..bd209f6 --- /dev/null +++ b/.idea/libraries/Maven__org_glassfish_jaxb_jaxb_runtime_2_3_7.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_glassfish_jaxb_txw2_2_3_7.xml b/.idea/libraries/Maven__org_glassfish_jaxb_txw2_2_3_7.xml new file mode 100644 index 0000000..ed9180e --- /dev/null +++ b/.idea/libraries/Maven__org_glassfish_jaxb_txw2_2_3_7.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_hibernate_validator_hibernate_validator_6_2_5_Final.xml b/.idea/libraries/Maven__org_hibernate_validator_hibernate_validator_6_2_5_Final.xml new file mode 100644 index 0000000..3482981 --- /dev/null +++ b/.idea/libraries/Maven__org_hibernate_validator_hibernate_validator_6_2_5_Final.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_jboss_logging_jboss_logging_3_4_3_Final.xml b/.idea/libraries/Maven__org_jboss_logging_jboss_logging_3_4_3_Final.xml new file mode 100644 index 0000000..25946e3 --- /dev/null +++ b/.idea/libraries/Maven__org_jboss_logging_jboss_logging_3_4_3_Final.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_jetbrains_annotations_13_0.xml b/.idea/libraries/Maven__org_jetbrains_annotations_13_0.xml new file mode 100644 index 0000000..089b2f5 --- /dev/null +++ b/.idea/libraries/Maven__org_jetbrains_annotations_13_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_jetbrains_kotlin_kotlin_stdlib_1_6_21.xml b/.idea/libraries/Maven__org_jetbrains_kotlin_kotlin_stdlib_1_6_21.xml new file mode 100644 index 0000000..9517df9 --- /dev/null +++ b/.idea/libraries/Maven__org_jetbrains_kotlin_kotlin_stdlib_1_6_21.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_jetbrains_kotlin_kotlin_stdlib_common_1_6_21.xml b/.idea/libraries/Maven__org_jetbrains_kotlin_kotlin_stdlib_common_1_6_21.xml new file mode 100644 index 0000000..50bb078 --- /dev/null +++ b/.idea/libraries/Maven__org_jetbrains_kotlin_kotlin_stdlib_common_1_6_21.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_jetbrains_kotlin_kotlin_stdlib_jdk7_1_6_21.xml b/.idea/libraries/Maven__org_jetbrains_kotlin_kotlin_stdlib_jdk7_1_6_21.xml new file mode 100644 index 0000000..4d8a9a1 --- /dev/null +++ b/.idea/libraries/Maven__org_jetbrains_kotlin_kotlin_stdlib_jdk7_1_6_21.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_jetbrains_kotlin_kotlin_stdlib_jdk8_1_6_21.xml b/.idea/libraries/Maven__org_jetbrains_kotlin_kotlin_stdlib_jdk8_1_6_21.xml new file mode 100644 index 0000000..f20184c --- /dev/null +++ b/.idea/libraries/Maven__org_jetbrains_kotlin_kotlin_stdlib_jdk8_1_6_21.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_jvnet_staxex_stax_ex_1_8_3.xml b/.idea/libraries/Maven__org_jvnet_staxex_stax_ex_1_8_3.xml new file mode 100644 index 0000000..1568925 --- /dev/null +++ b/.idea/libraries/Maven__org_jvnet_staxex_stax_ex_1_8_3.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_mybatis_mybatis_3_5_10.xml b/.idea/libraries/Maven__org_mybatis_mybatis_3_5_10.xml new file mode 100644 index 0000000..b291ab4 --- /dev/null +++ b/.idea/libraries/Maven__org_mybatis_mybatis_3_5_10.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_mybatis_mybatis_spring_2_0_7.xml b/.idea/libraries/Maven__org_mybatis_mybatis_spring_2_0_7.xml new file mode 100644 index 0000000..0d3677a --- /dev/null +++ b/.idea/libraries/Maven__org_mybatis_mybatis_spring_2_0_7.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_ow2_asm_asm_9_3.xml b/.idea/libraries/Maven__org_ow2_asm_asm_9_3.xml new file mode 100644 index 0000000..ef0fe0f --- /dev/null +++ b/.idea/libraries/Maven__org_ow2_asm_asm_9_3.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_projectlombok_lombok_1_18_24.xml b/.idea/libraries/Maven__org_projectlombok_lombok_1_18_24.xml new file mode 100644 index 0000000..f1f8b91 --- /dev/null +++ b/.idea/libraries/Maven__org_projectlombok_lombok_1_18_24.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_slf4j_jul_to_slf4j_1_7_36.xml b/.idea/libraries/Maven__org_slf4j_jul_to_slf4j_1_7_36.xml new file mode 100644 index 0000000..8c8a8d4 --- /dev/null +++ b/.idea/libraries/Maven__org_slf4j_jul_to_slf4j_1_7_36.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_36.xml b/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_36.xml new file mode 100644 index 0000000..6692412 --- /dev/null +++ b/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_36.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_2_7_8.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_2_7_8.xml new file mode 100644 index 0000000..4afbbcf --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_2_7_8.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_autoconfigure_2_7_8.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_autoconfigure_2_7_8.xml new file mode 100644 index 0000000..30f80e5 --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_autoconfigure_2_7_8.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_devtools_2_7_8.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_devtools_2_7_8.xml new file mode 100644 index 0000000..93d80d5 --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_devtools_2_7_8.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_2_7_8.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_2_7_8.xml new file mode 100644 index 0000000..935be9e --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_2_7_8.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_aop_2_7_8.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_aop_2_7_8.xml new file mode 100644 index 0000000..8813148 --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_aop_2_7_8.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_jdbc_2_7_8.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_jdbc_2_7_8.xml new file mode 100644 index 0000000..885cd5e --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_jdbc_2_7_8.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_json_2_7_8.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_json_2_7_8.xml new file mode 100644 index 0000000..19f9333 --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_json_2_7_8.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_logging_2_7_8.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_logging_2_7_8.xml new file mode 100644 index 0000000..0d155f9 --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_logging_2_7_8.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_2_7_8.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_2_7_8.xml new file mode 100644 index 0000000..229d16e --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_2_7_8.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_validation_2_7_8.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_validation_2_7_8.xml new file mode 100644 index 0000000..18d0f88 --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_validation_2_7_8.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_2_7_8.xml b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_2_7_8.xml new file mode 100644 index 0000000..4f5f7fb --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_2_7_8.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_aop_5_3_25.xml b/.idea/libraries/Maven__org_springframework_spring_aop_5_3_25.xml new file mode 100644 index 0000000..70cbf35 --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_spring_aop_5_3_25.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_beans_5_3_25.xml b/.idea/libraries/Maven__org_springframework_spring_beans_5_3_25.xml new file mode 100644 index 0000000..5410162 --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_spring_beans_5_3_25.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_context_5_3_25.xml b/.idea/libraries/Maven__org_springframework_spring_context_5_3_25.xml new file mode 100644 index 0000000..b43f85c --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_spring_context_5_3_25.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_core_5_3_25.xml b/.idea/libraries/Maven__org_springframework_spring_core_5_3_25.xml new file mode 100644 index 0000000..3e33d44 --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_spring_core_5_3_25.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_expression_5_3_25.xml b/.idea/libraries/Maven__org_springframework_spring_expression_5_3_25.xml new file mode 100644 index 0000000..4492b2a --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_spring_expression_5_3_25.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_jcl_5_3_25.xml b/.idea/libraries/Maven__org_springframework_spring_jcl_5_3_25.xml new file mode 100644 index 0000000..94f8264 --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_spring_jcl_5_3_25.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_jdbc_5_3_25.xml b/.idea/libraries/Maven__org_springframework_spring_jdbc_5_3_25.xml new file mode 100644 index 0000000..6a83a65 --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_spring_jdbc_5_3_25.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_tx_5_3_25.xml b/.idea/libraries/Maven__org_springframework_spring_tx_5_3_25.xml new file mode 100644 index 0000000..1910c48 --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_spring_tx_5_3_25.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_web_5_3_25.xml b/.idea/libraries/Maven__org_springframework_spring_web_5_3_25.xml new file mode 100644 index 0000000..d0bd566 --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_spring_web_5_3_25.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_springframework_spring_webmvc_5_3_25.xml b/.idea/libraries/Maven__org_springframework_spring_webmvc_5_3_25.xml new file mode 100644 index 0000000..a382f32 --- /dev/null +++ b/.idea/libraries/Maven__org_springframework_spring_webmvc_5_3_25.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_yaml_snakeyaml_1_30.xml b/.idea/libraries/Maven__org_yaml_snakeyaml_1_30.xml new file mode 100644 index 0000000..7380101 --- /dev/null +++ b/.idea/libraries/Maven__org_yaml_snakeyaml_1_30.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__p6spy_p6spy_3_9_1.xml b/.idea/libraries/Maven__p6spy_p6spy_3_9_1.xml new file mode 100644 index 0000000..e84776a --- /dev/null +++ b/.idea/libraries/Maven__p6spy_p6spy_3_9_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__wsdl4j_wsdl4j_1_6_3.xml b/.idea/libraries/Maven__wsdl4j_wsdl4j_1_6_3.xml new file mode 100644 index 0000000..96823b6 --- /dev/null +++ b/.idea/libraries/Maven__wsdl4j_wsdl4j_1_6_3.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__xml_resolver_xml_resolver_1_2.xml b/.idea/libraries/Maven__xml_resolver_xml_resolver_1_2.xml new file mode 100644 index 0000000..cd7a0a1 --- /dev/null +++ b/.idea/libraries/Maven__xml_resolver_xml_resolver_1_2.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..959b9ce --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,14 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..10855ac --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..0cbc256 --- /dev/null +++ b/pom.xml @@ -0,0 +1,152 @@ + + + 4.0.0 + + org.springframework.boot + spring-boot-starter-parent + 2.7.8 + + + com.glxp.mipsdl + udi-erp-sync-java + 0.0.1-SNAPSHOT + udi-erp-sync-java + udi-erp-sync-java + war + + + 11 + + + + + org.springframework.boot + spring-boot-starter-web + + + org.springframework.boot + spring-boot-starter-tomcat + + + + + + org.springframework.boot + spring-boot-starter-tomcat + provided + + + + + org.springframework.boot + spring-boot-starter-aop + 2.7.8 + + + + + com.baomidou + mybatis-plus-boot-starter + 3.5.3.1 + + + + p6spy + p6spy + 3.9.1 + + + + org.springframework.boot + spring-boot-devtools + runtime + true + + + mysql + mysql-connector-java + 8.0.21 + runtime + + + org.projectlombok + lombok + true + + + javax.servlet + javax.servlet-api + 3.1.0 + provided + + + + + com.alibaba.fastjson2 + fastjson2 + 2.0.24 + + + + + cn.hutool + hutool-all + 5.8.12 + + + + + org.apache.poi + poi + 4.0.0 + + + org.apache.poi + poi-ooxml + 4.0.0 + + + com.squareup.okhttp3 + okhttp + 3.10.0 + + + org.apache.cxf + cxf-spring-boot-starter-jaxws + 3.5.2 + + + + org.dom4j + dom4j + 2.1.3 + + + + + com.squareup.okhttp3 + okhttp + 4.10.0 + + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + org.projectlombok + lombok + + + + + + + + diff --git a/src/main/java/com/glxp/mipsdl/Application.java b/src/main/java/com/glxp/mipsdl/Application.java new file mode 100644 index 0000000..fc719ff --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/Application.java @@ -0,0 +1,27 @@ +package com.glxp.mipsdl; + +import org.mybatis.spring.annotation.MapperScan; +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.boot.builder.SpringApplicationBuilder; +import org.springframework.boot.web.servlet.ServletComponentScan; +import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; +import org.springframework.transaction.annotation.EnableTransactionManagement; + +@SpringBootApplication +@ServletComponentScan +@EnableTransactionManagement +@MapperScan("com.glxp.mipsdl.dao") +public class Application extends SpringBootServletInitializer { + + public static void main(String[] args) { + SpringApplication application = new SpringApplication(Application.class); + application.run(args); + } + + @Override + protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) { + return builder.sources(Application.class); + } + +} diff --git a/src/main/java/com/glxp/mipsdl/annotation/Excel.java b/src/main/java/com/glxp/mipsdl/annotation/Excel.java new file mode 100644 index 0000000..282034c --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/annotation/Excel.java @@ -0,0 +1,101 @@ +package com.glxp.mipsdl.annotation; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.FIELD) +public @interface Excel { + /** + * 导出到Excel中的名字. + */ + public String name() default ""; + + /** + * 日期格式, 如: yyyy-MM-dd + */ + public String dateFormat() default ""; + + /** + * 读取内容转表达式 (如: 0=男,1=女,2=未知) + */ + public String convertExp() default ""; + + /** + * 导出类型(0数字 1字符串) + */ + public ColumnType cellType() default ColumnType.STRING; + + /** + * 导出时在excel中每个列的高度 单位为字符 + */ + public double height() default 14; + + /** + * 导出时在excel中每个列的宽 单位为字符 + */ + public double width() default 16; + + /** + * 文字后缀,如% 90 变成90% + */ + public String suffix() default ""; + + /** + * 当值为空时,字段的默认值 + */ + public String defaultValue() default ""; + + /** + * 提示信息 + */ + public String prompt() default ""; + + /** + * 设置只能选择不能输入的列内容. + */ + public String[] combo() default {}; + + /** + * 是否导出数据,应对需求:有时我们需要导出一份模板,这是标题需要但内容需要用户手工填写. + */ + public boolean isExport() default true; + + /** + * 另一个类中的属性名称,支持多级获取,以小数点隔开 + */ + public String targetAttr() default ""; + + /** + * 字段类型(0:导出导入;1:仅导出;2:仅导入) + */ + Type type() default Type.ALL; + + public enum Type { + ALL(0), EXPORT(1), IMPORT(2); + private final int value; + + Type(int value) { + this.value = value; + } + + public int value() { + return this.value; + } + } + + public enum ColumnType { + NUMERIC(0), STRING(1); + private final int value; + + ColumnType(int value) { + this.value = value; + } + + public int value() { + return this.value; + } + } +} diff --git a/src/main/java/com/glxp/mipsdl/aspect/LogAspect.java b/src/main/java/com/glxp/mipsdl/aspect/LogAspect.java new file mode 100644 index 0000000..7c12dc2 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/aspect/LogAspect.java @@ -0,0 +1,109 @@ +package com.glxp.mipsdl.aspect; + + +import com.alibaba.fastjson2.JSONObject; +import com.glxp.mipsdl.service.system.SysErpLogService; +import lombok.extern.slf4j.Slf4j; +import org.aspectj.lang.ProceedingJoinPoint; +import org.aspectj.lang.annotation.Around; +import org.aspectj.lang.annotation.Aspect; +import org.aspectj.lang.annotation.Pointcut; +import org.springframework.stereotype.Component; +import org.springframework.web.context.request.RequestAttributes; +import org.springframework.web.context.request.RequestContextHolder; +import org.springframework.web.context.request.ServletRequestAttributes; + +import javax.annotation.Resource; +import javax.servlet.http.HttpServletRequest; +import java.lang.reflect.Field; +import java.util.Date; +import java.util.HashMap; +import java.util.Map; + +/** + * 日志切面 + */ +@Slf4j +@Aspect +@Component +public class LogAspect { + + @Resource + private SysErpLogService logService; + + //controller接口切面 + @Pointcut(value = "execution(public * com.glxp.mipsdl.controller..*(..))") + public void execute() { + + } + + @Around("execute()") + public Object doAround(ProceedingJoinPoint point) throws Throwable { + Date createTime = new Date(); + + RequestAttributes requestAttributes = RequestContextHolder.getRequestAttributes(); + ServletRequestAttributes servletRequestAttributes = (ServletRequestAttributes) requestAttributes; + HttpServletRequest httpServletRequest = servletRequestAttributes.getRequest(); + + String uri = httpServletRequest.getRequestURI(); + String method = httpServletRequest.getMethod(); + String queryString = httpServletRequest.getQueryString(); + Object[] args = point.getArgs(); + StringBuilder params = new StringBuilder(); + if (args.length > 0) { + if ("POST".equals(method)) { + for (Object o : args) { + if (null != o) { + Map map = getKeyAndValue(o); + if (!map.isEmpty()) { + params.append(JSONObject.toJSONString(map)); + } + } + } + + } else if ("GET".equals(method)) { + params = new StringBuilder(queryString); + } + } + + long beginTime = System.currentTimeMillis(); + log.info("请求URI:{},方法:{},参数:{}", uri, method, params); + + Object proceed = point.proceed(); + String result = JSONObject.toJSONString(proceed); + + log.info("请求结束,返回参数:{}", result); + long endTime = System.currentTimeMillis(); + long time = endTime - beginTime; + log.info("执行时长:{}ms", time); + + logService.addInterfaceErpLog(createTime, uri, method, params.toString(), result, time); + + return proceed; + } + + public static Map getKeyAndValue(Object object) { + Map map = new HashMap(); + Class uCla = (Class) object.getClass(); + if (!(uCla.getPackage().getName().startsWith("com.glxp") + || uCla.getPackage().getName().startsWith("java."))) { + return map; + } + + Field[] fs = uCla.getDeclaredFields(); + for (int i = 0; i < fs.length; i++) { + Field f = fs[i]; + f.setAccessible(true); + Object val = new Object(); + try { + val = f.get(object); + map.put(f.getName(), val); + } catch (Exception e) { + log.error(e.getMessage(), e); + } + } + return map; + } + + +} diff --git a/src/main/java/com/glxp/mipsdl/client/BaseFileClient.java b/src/main/java/com/glxp/mipsdl/client/BaseFileClient.java new file mode 100644 index 0000000..7c8b44c --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/client/BaseFileClient.java @@ -0,0 +1,19 @@ +package com.glxp.mipsdl.client; + +import com.glxp.mipsdl.res.BaseResponse; +import org.springframework.web.multipart.MultipartFile; + +import java.util.List; + +public interface BaseFileClient { + + + BaseResponse uploadPi(List files, String thirdSys); + + BaseResponse uploadCorps(List files, String thirdSys); + + BaseResponse uploadInvPi(List files, String thirdSys); + + BaseResponse uploadOrders(List files, String thirdSys); + +} diff --git a/src/main/java/com/glxp/mipsdl/client/BaseHttpClient.java b/src/main/java/com/glxp/mipsdl/client/BaseHttpClient.java new file mode 100644 index 0000000..efcb68d --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/client/BaseHttpClient.java @@ -0,0 +1,149 @@ +package com.glxp.mipsdl.client; + +import com.glxp.mipsdl.req.base.*; +import com.glxp.mipsdl.req.post.PostFileThrOrderRequest; +import com.glxp.mipsdl.req.post.PostThrCorpRequest; +import com.glxp.mipsdl.req.post.PostThrInvProductsRequest; +import com.glxp.mipsdl.req.post.PostThrProductsRequest; +import com.glxp.mipsdl.res.BaseResponse; +import org.springframework.web.bind.annotation.RequestBody; + +/** + * http请求接口 + */ +public interface BaseHttpClient { + + /** + * 获取往来单位列表 + * + * @param testUnitRequest + * @return + */ + BaseResponse getUnit(UdiwmsUnitRequest udiwmsUnitRequest); + + /** + * 获取耗材字典列表 + * + * @param udiwmsProductRequest + * @return + */ + BaseResponse getProducts(UdiwmsProductRequest udiwmsProductRequest); + + /** + * 获取单据类型列表 + * + * @param udiwmsOrderRequest + * @return + */ + BaseResponse getOrderTypes(UdiwmsBusTypeRequest udiwmsBusTypeRequest); + + /** + * 获取单据列表 + * + * @param udiwmsOrderQueryRequest + * @return + */ + BaseResponse getOrders(UdiwmsOrderQueryRequest udiwmsOrderQueryRequest); + + /** + * 提交单据接口 + * + * @param udiwmsOrderRequest + * @return + */ + BaseResponse submitOrders(UdiwmsOrderRequest udiwmsOrderRequest); + + /** + * 获取库存产品列表 + * + * @param udiwmsInvProductsRequest + * @return + */ + BaseResponse getInvProducts(UdiwmsInvProductsRequest udiwmsInvProductsRequest); + + /** + * 获取仓库列表 + * + * @param udiwmsWarehouseRequest + * @return + */ + BaseResponse getWarehouse(UdiwmsWarehouseRequest udiwmsWarehouseRequest); + + + /** + * 测试接口连通性 + * + * @return + */ + BaseResponse testConnect(); + + //TODO 添加 患者信息查询接口,并补全接口文档 + + /** + * 第三方系统查询UDI管理系统产品库存信息 + * + * @param queryUdiInvProductsRequest + * @return + */ + BaseResponse queryUdiInvProducts(UdiwmsQueryUdiInvProductsRequest queryUdiInvProductsRequest); + + + //添加产品,往来单位等字典信息到第三方系统 + + /** + * 新增产品信息 + * + * @return + */ + BaseResponse submitProducts(UdiwmsAddProductsRequest udiwmsAddProductsRequest); + + /** + * 新增往来单位信息 + * + * @return + */ + BaseResponse submitUnit(UdiwmsAddUnitRequest udiwmsAddUnitRequest); + + /** + * 提交预入库单据 + * + * @param udiwmsPreInOrderRequest + * @return + */ + BaseResponse submitPreInOrders(@RequestBody UdiwmsPreInOrderRequest udiwmsPreInOrderRequest); + + + //文件导入数据到UDI管理系统接口 + + /** + * 文件方式新增产品信息到UDI管理系统 + * + * @param postThrProductsRequest + * @return + */ + BaseResponse postProducts(PostThrProductsRequest postThrProductsRequest); + + /** + * 新增往来单位信息到UDI管理系统 + * + * @param postThrCorpRequest + * @return + */ + BaseResponse postCorps(PostThrCorpRequest postThrCorpRequest); + + /** + * 文件方式添加单据到UDI管理系统 + * + * @param postFileThrOrderRequest + * @return + */ + BaseResponse postOrderDetail(PostFileThrOrderRequest postFileThrOrderRequest); + + /** + * 文件方式添加产品库存到UDI管理系统 + * + * @param postThrInvProductsRequest + * @return + */ + BaseResponse postInvProducts(PostThrInvProductsRequest postThrInvProductsRequest); +} diff --git a/src/main/java/com/glxp/mipsdl/client/ClientProcessor.java b/src/main/java/com/glxp/mipsdl/client/ClientProcessor.java new file mode 100644 index 0000000..9c4a87d --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/client/ClientProcessor.java @@ -0,0 +1,44 @@ +package com.glxp.mipsdl.client; + +import com.glxp.mipsdl.util.DictUtl; +import lombok.extern.slf4j.Slf4j; +import org.springframework.beans.BeansException; +import org.springframework.context.ApplicationContext; +import org.springframework.context.ApplicationContextAware; +import org.springframework.stereotype.Component; + +/** + * 接口封装,用于获取当前医院的实现,实现controller层通过base接口直接调用对应方法 + */ +@Slf4j +@Component +public class ClientProcessor implements ApplicationContextAware { + + private static ApplicationContext context; + + @Override + public void setApplicationContext(ApplicationContext applicationContext) throws BeansException { + ClientProcessor.context = applicationContext; + } + + /** + * 获取当前医院的HttpClient接口实现 + * + * @return + */ + public static BaseHttpClient getHttpClient() { + BaseHttpClient baseHttpClient = context.getBean(DictUtl.CURRENT_HOSP_CODE + "HttpClient", BaseHttpClient.class); + return baseHttpClient; + } + + /** + * 获取当前医院的FileClient接口实现 + * + * @return + */ + public static BaseFileClient getFileClient() { + BaseFileClient baseFileClient = context.getBean(DictUtl.CURRENT_HOSP_CODE + "FileClient", BaseFileClient.class); + return baseFileClient; + } + +} diff --git a/src/main/java/com/glxp/mipsdl/client/dsxyy/DsxyyClient.java b/src/main/java/com/glxp/mipsdl/client/dsxyy/DsxyyClient.java new file mode 100644 index 0000000..b944d66 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/client/dsxyy/DsxyyClient.java @@ -0,0 +1,335 @@ +package com.glxp.mipsdl.client.dsxyy; + +import cn.hutool.core.bean.BeanUtil; +import cn.hutool.core.util.StrUtil; +import com.alibaba.fastjson2.JSONObject; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.glxp.mipsdl.client.BaseHttpClient; +import com.glxp.mipsdl.config.ThirdSysConfig; +import com.glxp.mipsdl.constant.ConstantType; +import com.glxp.mipsdl.constant.Constants; +import com.glxp.mipsdl.dao.auth.AuthWarehouseDao; +import com.glxp.mipsdl.dao.basic.BasicBussinessTypeDao; +import com.glxp.mipsdl.dao.basic.BasicCorpDao; +import com.glxp.mipsdl.dao.inout.IoCodeDao; +import com.glxp.mipsdl.dao.inout.IoOrderDao; +import com.glxp.mipsdl.dao.inout.IoOrderDetailBizDao; +import com.glxp.mipsdl.dao.thrsys.ThrBustypeOriginDao; +import com.glxp.mipsdl.dao.thrsys.ThrInvWarehouseDao; +import com.glxp.mipsdl.dao.thrsys.ThrSystemBusApiDao; +import com.glxp.mipsdl.entity.auth.AuthWarehouseEntity; +import com.glxp.mipsdl.entity.basic.BasicBussinessTypeEntity; +import com.glxp.mipsdl.entity.inout.IoCodeEntity; +import com.glxp.mipsdl.entity.inout.IoOrderDetailBizEntity; +import com.glxp.mipsdl.entity.inout.IoOrderEntity; +import com.glxp.mipsdl.entity.thrsys.ThrCorpEntity; +import com.glxp.mipsdl.entity.thrsys.ThrInvWarehouseEntity; +import com.glxp.mipsdl.entity.thrsys.ThrSystemBusApiEntity; +import com.glxp.mipsdl.http.HttpClient; +import com.glxp.mipsdl.req.base.*; +import com.glxp.mipsdl.req.dsxyy.DsBusTypeRequest; +import com.glxp.mipsdl.req.dsxyy.DsOrderRequest; +import com.glxp.mipsdl.req.dsxyy.DsProductRequest; +import com.glxp.mipsdl.req.dsxyy.DsUnitRequest; +import com.glxp.mipsdl.req.post.PostFileThrOrderRequest; +import com.glxp.mipsdl.req.post.PostThrCorpRequest; +import com.glxp.mipsdl.req.post.PostThrInvProductsRequest; +import com.glxp.mipsdl.req.post.PostThrProductsRequest; +import com.glxp.mipsdl.res.BaseResponse; +import com.glxp.mipsdl.service.auth.AuthWarehouseService; +import com.glxp.mipsdl.service.thrsys.ThrCorpService; +import com.glxp.mipsdl.service.thrsys.ThrSystemDetailService; +import com.glxp.mipsdl.util.DateUtil; +import com.glxp.mipsdl.util.DictUtl; +import com.glxp.mipsdl.util.ResultVOUtils; +import com.glxp.mipsdl.util.SubmitOrderUtil; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/** + * 东山县医院接口对接 + */ +@Slf4j +@Service(value = "100006HttpClient") //bean注册名称,使用编码 + HttpClient,文件接口加 FileClient +public class DsxyyClient implements BaseHttpClient { + + @Resource + private ThrSystemDetailService thrSystemDetailService; + @Resource + private HttpClient httpClient; + @Resource + private ThrBustypeOriginDao thrBustypeOriginDao; + @Resource + private IoOrderDao orderDao; + @Resource + private ThrSystemBusApiDao thrSystemBusApiDao; + @Resource + private BasicBussinessTypeDao basicBussinessTypeDao; + @Resource + private BasicCorpDao basicCorpDao; + @Resource + private IoCodeDao codeDao; + @Resource + private AuthWarehouseDao authWarehouseDao; + @Resource + private ThrInvWarehouseDao thrInvWarehouseDao; + @Resource + private AuthWarehouseService authWarehouseService; + @Resource + private ThirdSysConfig thirdSysConfig; + @Resource + private ThrCorpService thrCorpService; + @Resource + private IoOrderDetailBizDao orderDetailBizDao; + @Resource + private SubmitOrderUtil submitOrderUtil; + + @Override + public BaseResponse getUnit(UdiwmsUnitRequest udiwmsUnitRequest) { + DsUnitRequest dsUnitRequest = new DsUnitRequest(); + BeanUtil.copyProperties(udiwmsUnitRequest, dsUnitRequest); + String response = httpClient.postJson(thrSystemDetailService.getUrl(Constants.URL_NAME_CORP_URL), dsUnitRequest); + BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class); + return baseResponse; + } + + @Override + public BaseResponse getProducts(UdiwmsProductRequest udiwmsProductRequest) { + DsProductRequest dsProductRequest = new DsProductRequest(); + BeanUtil.copyProperties(udiwmsProductRequest, dsProductRequest); + String response = httpClient.postJson(thrSystemDetailService.getUrl(Constants.URL_NAME_PI_QUERY_URL), dsProductRequest); + BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class); + return baseResponse; + } + + @Override + public BaseResponse getOrderTypes(UdiwmsBusTypeRequest udiwmsBusTypeRequest) { + DsBusTypeRequest dsBusTypeRequest = new DsBusTypeRequest(); + BeanUtil.copyProperties(udiwmsBusTypeRequest, dsBusTypeRequest); + String response = httpClient.postJson(thrSystemDetailService.getUrl(Constants.URL_NAME_BUS_TYPE_QUERY_URL), udiwmsBusTypeRequest); + BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class); + return baseResponse; + } + + @Override + public BaseResponse getOrders(UdiwmsOrderQueryRequest udiwmsOrderQueryRequest) { + if (StrUtil.isBlank(udiwmsOrderQueryRequest.getBillType())) { + return ResultVOUtils.error(500, "单据类型不能为空"); + } + //查询绑定的第三方单据类型 + String thirdAction = thrBustypeOriginDao.findThirdActionByBillType(udiwmsOrderQueryRequest.getBillType(), DictUtl.CURRENT_HOSP_CODE); + udiwmsOrderQueryRequest.setBillType(thirdAction); + String response = httpClient.postJson(thrSystemDetailService.getUrl(Constants.URL_NAME_ORDER_QUERY_URL), udiwmsOrderQueryRequest); + BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class); + return baseResponse; + } + + @Override + public BaseResponse submitOrders(UdiwmsOrderRequest udiwmsOrderRequest) { + if (StrUtil.isBlank(udiwmsOrderRequest.getBillNo())) { + return ResultVOUtils.error(500, "单据号不能为空"); + } + + DsOrderRequest dsOrderRequest = new DsOrderRequest(); + BeanUtil.copyProperties(udiwmsOrderRequest, dsOrderRequest); + + //查询单据和详情信息,组装第三方系统接口参数 + IoOrderEntity orderEntity = orderDao.selectOne(new QueryWrapper().eq("billNo", udiwmsOrderRequest.getBillNo())); + + dsOrderRequest.setBillDate(DateUtil.formatDateTime(orderEntity.getCreateTime())); + //查询对应的第三方单据类型 + ThrSystemBusApiEntity thrSystemBusApiEntity = thrSystemBusApiDao.selectOne(new QueryWrapper().eq("code", udiwmsOrderRequest.getBillType())); + if (StrUtil.isBlank(thrSystemBusApiEntity.getUrl())) { + return ResultVOUtils.error(500, "接口未配置,无法提交!"); + } + + dsOrderRequest.setBillType(thrSystemBusApiEntity.getThirdBuyCode()); + + //查询单据类型,设置往来单位信息 + BasicBussinessTypeEntity basicBussinessTypeEntity = basicBussinessTypeDao.selectByAction(udiwmsOrderRequest.getBillType()); + if (basicBussinessTypeEntity.getCorpType().equals(Constants.CORP_HOSPTIAL)) { + //医院客户 + dsOrderRequest.setCorpId(orderEntity.getFromCorp()); + //查询客户名称 + String corpName = basicCorpDao.selectNameByErpId(orderEntity.getFromCorp()); + dsOrderRequest.setCorpName(corpName); + } else if (basicBussinessTypeEntity.getCorpType().equals(Constants.CORP_INTTERNAL)) { + //内部科室 + AuthWarehouseEntity warehouseEntity = authWarehouseDao.selectOne(new QueryWrapper().eq("code", udiwmsOrderRequest.getCorpId())); + try { + //根据第三方系统标识,获取对应字段的值 + ThrInvWarehouseEntity thrInvWarehouseEntity = thrInvWarehouseDao.selectOne(new QueryWrapper() + .eq("code", authWarehouseService.getThirdInvCode(warehouseEntity)) + .eq("thirdSys", thirdSysConfig.getThirdId())); + + dsOrderRequest.setCorpId(thrInvWarehouseEntity.getCode()); + dsOrderRequest.setCorpName(thrInvWarehouseEntity.getName()); + } catch (Exception e) { + log.error("查询单据对应往来单位的第三方仓库信息异常", e); + } + } else if (basicBussinessTypeEntity.getCorpType().equals(Constants.CORP_SP)) { + //供应商 + ThrCorpEntity thrCorp = thrCorpService.getThrCorp(udiwmsOrderRequest.getCorpId()); + if (null != thrCorp) { + dsOrderRequest.setCorpId(thrCorp.getUnitId()); + dsOrderRequest.setCorpName(thrCorp.getName()); + } else { + log.error("查询单据对应的第三方往来单位信息异常"); + } + } + + //查询仓库信息 + AuthWarehouseEntity warehouseEntity = authWarehouseDao.selectOne(new QueryWrapper().eq("code", orderEntity.getInvCode())); + try { + ThrInvWarehouseEntity thrInvWarehouseEntity = thrInvWarehouseDao.selectOne(new QueryWrapper() + .eq("code", authWarehouseService.getThirdInvCode(warehouseEntity)) + .eq("thirdSys", thirdSysConfig.getThirdId())); + + dsOrderRequest.setLocInvCode(thrInvWarehouseEntity.getCode()); + dsOrderRequest.setLocInvName(thrInvWarehouseEntity.getName()); + + dsOrderRequest.setLocStorageCode(thrInvWarehouseEntity.getCode()); + dsOrderRequest.setLocStorageName(thrInvWarehouseEntity.getName()); + } catch (Exception e) { + log.info("查询第三方系统仓库信息异常", e); + } + + if (StrUtil.nullToEmpty(thrSystemBusApiEntity.getUrl()).equals("useOut")) { + dsOrderRequest.setCorpId(dsOrderRequest.getLocStorageCode()); + dsOrderRequest.setCorpName(dsOrderRequest.getLocStorageName()); + + ThrInvWarehouseEntity thrInvWarehouseEntity = thrInvWarehouseDao.selectOne(new QueryWrapper().eq("code", "29").eq("thirdSysFk", thirdSysConfig.getThirdId())); + dsOrderRequest.setLocStorageCode("29"); + dsOrderRequest.setLocStorageName(thrInvWarehouseEntity.getName()); + } + + dsOrderRequest.setBillFlag("1"); + //设置单据出入库类型 + if (basicBussinessTypeEntity.getMainAction().equals(ConstantType.TYPE_PUT)) { + dsOrderRequest.setInoutType(1); //入库 + } else if (basicBussinessTypeEntity.getMainAction().equals(ConstantType.TYPE_OUT)) { + dsOrderRequest.setInoutType(2); //出库 + } + + dsOrderRequest.setRemark("udi管理系统提交单据"); + + //组装单据明细数据 + List ioCodeEntities = codeDao.selectList(new QueryWrapper() + .eq("orderId", orderEntity.getBillNo()) + .ne("action", "StockCheck") + ); + + List items = new ArrayList<>(); + //查询业务单据详情 + List detailBizEntities = orderDetailBizDao.selectList(new QueryWrapper().eq("orderIdFk", orderEntity.getBillNo())); + + + setOrderDetailList(ioCodeEntities, items, detailBizEntities); + + Collections.reverse(items); + dsOrderRequest.setItem(items); + + return submitOrderUtil.submitOrder(orderEntity, dsOrderRequest); + } + + /** + * 封装单据详情参数 + * + * @param ioCodeEntities 单据码明细 + * @param orderDetailRequests 单据详情参数 + * @param detailBizEntities 单据业务详情 + */ + private void setOrderDetailList(List ioCodeEntities, List orderDetailRequests, List detailBizEntities) { + for (IoOrderDetailBizEntity detailBizEntity : detailBizEntities) { + UdiwmsOrderDetailRequest item = submitOrderUtil.buildProductInfo(detailBizEntity); + + //封装条码信息 + submitOrderUtil.setCodeList(ioCodeEntities, detailBizEntity, item); + orderDetailRequests.add(item); + } + } + + @Override + public BaseResponse getInvProducts(UdiwmsInvProductsRequest udiwmsInvProductsRequest) { + String response = httpClient.postJson(thrSystemDetailService.getUrl(Constants.URL_NAME_INV_PI_URL), udiwmsInvProductsRequest); + BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class); + return baseResponse; + } + + @Override + public BaseResponse getWarehouse(UdiwmsWarehouseRequest udiwmsWarehouseRequest) { + String response = httpClient.postJson(thrSystemDetailService.getUrl(Constants.URL_NAME_WAREHOUSE_QUERY_URL), udiwmsWarehouseRequest); + BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class); + return baseResponse; + } + + @Override + public BaseResponse postProducts(PostThrProductsRequest postThrProductsRequest) { + postThrProductsRequest.setUploadType("文件导入"); + String response = httpClient.postUDIWMSJson(thirdSysConfig.getPostPiUrl(), postThrProductsRequest); + BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class); + return baseResponse; + } + + @Override + public BaseResponse postCorps(PostThrCorpRequest postThrCorpRequest) { + postThrCorpRequest.setUploadType("文件导入"); + String response = httpClient.postUDIWMSJson(thirdSysConfig.getPostCorpUrl(), postThrCorpRequest); + BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class); + return baseResponse; + } + + @Override + public BaseResponse postOrderDetail(PostFileThrOrderRequest postFileThrOrderRequest) { + postFileThrOrderRequest.setUploadType("文件导入"); + String response = httpClient.postUDIWMSJson(thirdSysConfig.getPostOrderUrl(), postFileThrOrderRequest); + BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class); + return baseResponse; + } + + @Override + public BaseResponse postInvProducts(PostThrInvProductsRequest postThrInvProductsRequest) { + String response = httpClient.postUDIWMSJson(thirdSysConfig.getPostInvPiUrl(), postThrInvProductsRequest); + BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class); + return baseResponse; + } + + @Override + public BaseResponse testConnect() { + UdiwmsUnitRequest udiwmsUnitRequest = new UdiwmsUnitRequest(); + udiwmsUnitRequest.setPage(1); + udiwmsUnitRequest.setLimit(1); + BaseResponse baseResponse = getUnit(udiwmsUnitRequest); + if (baseResponse.getCode() == 20000) { + return ResultVOUtils.success("连接成功"); + } + return ResultVOUtils.error(500, "连接失败!"); + } + + @Override + public BaseResponse queryUdiInvProducts(UdiwmsQueryUdiInvProductsRequest queryUdiInvProductsRequest) { + String response = httpClient.postUDIWMSJson(thirdSysConfig.getQueryInvUrl(), queryUdiInvProductsRequest); + BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class); + return baseResponse; + } + + @Override + public BaseResponse submitProducts(UdiwmsAddProductsRequest udiwmsAddProductsRequest) { + return null; + } + + @Override + public BaseResponse submitUnit(UdiwmsAddUnitRequest udiwmsAddUnitRequest) { + return null; + } + + @Override + public BaseResponse submitPreInOrders(UdiwmsPreInOrderRequest udiwmsPreInOrderRequest) { + return null; + } +} diff --git a/src/main/java/com/glxp/mipsdl/client/glxp/GlxpClient.java b/src/main/java/com/glxp/mipsdl/client/glxp/GlxpClient.java new file mode 100644 index 0000000..0db6d6c --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/client/glxp/GlxpClient.java @@ -0,0 +1,99 @@ +package com.glxp.mipsdl.client.glxp; + +import com.glxp.mipsdl.client.BaseHttpClient; +import com.glxp.mipsdl.req.base.*; +import com.glxp.mipsdl.req.post.PostFileThrOrderRequest; +import com.glxp.mipsdl.req.post.PostThrCorpRequest; +import com.glxp.mipsdl.req.post.PostThrInvProductsRequest; +import com.glxp.mipsdl.req.post.PostThrProductsRequest; +import com.glxp.mipsdl.res.BaseResponse; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; + +/** + * 标准模板,测试用 + */ +@Slf4j +@Service(value = "100000HttpClient") //bean注册名称,使用编码 + HttpClient,文件接口加 FileClient +public class GlxpClient implements BaseHttpClient { + + @Override + public BaseResponse getUnit(UdiwmsUnitRequest udiwmsUnitRequest) { + return null; + } + + @Override + public BaseResponse getProducts(UdiwmsProductRequest udiwmsProductRequest) { + return null; + } + + @Override + public BaseResponse getOrderTypes(UdiwmsBusTypeRequest udiwmsBusTypeRequest) { + return null; + } + + @Override + public BaseResponse getOrders(UdiwmsOrderQueryRequest udiwmsOrderQueryRequest) { + return null; + } + + @Override + public BaseResponse submitOrders(UdiwmsOrderRequest udiwmsOrderRequest) { + return null; + } + + @Override + public BaseResponse getInvProducts(UdiwmsInvProductsRequest udiwmsInvProductsRequest) { + return null; + } + + @Override + public BaseResponse getWarehouse(UdiwmsWarehouseRequest udiwmsWarehouseRequest) { + return null; + } + + @Override + public BaseResponse postProducts(PostThrProductsRequest postThrProductsRequest) { + return null; + } + + @Override + public BaseResponse postCorps(PostThrCorpRequest postThrCorpRequest) { + return null; + } + + @Override + public BaseResponse postOrderDetail(PostFileThrOrderRequest postFileThrOrderRequest) { + return null; + } + + @Override + public BaseResponse postInvProducts(PostThrInvProductsRequest postThrInvProductsRequest) { + return null; + } + + @Override + public BaseResponse testConnect() { + return null; + } + + @Override + public BaseResponse queryUdiInvProducts(UdiwmsQueryUdiInvProductsRequest queryUdiInvProductsRequest) { + return null; + } + + @Override + public BaseResponse submitProducts(UdiwmsAddProductsRequest udiwmsAddProductsRequest) { + return null; + } + + @Override + public BaseResponse submitUnit(UdiwmsAddUnitRequest udiwmsAddUnitRequest) { + return null; + } + + @Override + public BaseResponse submitPreInOrders(UdiwmsPreInOrderRequest udiwmsPreInOrderRequest) { + return null; + } +} diff --git a/src/main/java/com/glxp/mipsdl/client/phxyy/PhxyyClient.java b/src/main/java/com/glxp/mipsdl/client/phxyy/PhxyyClient.java new file mode 100644 index 0000000..95130c1 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/client/phxyy/PhxyyClient.java @@ -0,0 +1,336 @@ +package com.glxp.mipsdl.client.phxyy; + +import cn.hutool.core.bean.BeanUtil; +import cn.hutool.core.util.StrUtil; +import com.alibaba.fastjson2.JSONObject; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.glxp.mipsdl.client.BaseHttpClient; +import com.glxp.mipsdl.config.ThirdSysConfig; +import com.glxp.mipsdl.constant.ConstantType; +import com.glxp.mipsdl.constant.Constants; +import com.glxp.mipsdl.dao.auth.AuthWarehouseDao; +import com.glxp.mipsdl.dao.basic.BasicBussinessTypeDao; +import com.glxp.mipsdl.dao.basic.BasicCorpDao; +import com.glxp.mipsdl.dao.inout.IoCodeDao; +import com.glxp.mipsdl.dao.inout.IoOrderDao; +import com.glxp.mipsdl.dao.inout.IoOrderDetailBizDao; +import com.glxp.mipsdl.dao.thrsys.ThrBustypeOriginDao; +import com.glxp.mipsdl.dao.thrsys.ThrInvWarehouseDao; +import com.glxp.mipsdl.dao.thrsys.ThrSystemBusApiDao; +import com.glxp.mipsdl.entity.auth.AuthWarehouseEntity; +import com.glxp.mipsdl.entity.basic.BasicBussinessTypeEntity; +import com.glxp.mipsdl.entity.inout.IoCodeEntity; +import com.glxp.mipsdl.entity.inout.IoOrderDetailBizEntity; +import com.glxp.mipsdl.entity.inout.IoOrderEntity; +import com.glxp.mipsdl.entity.thrsys.ThrCorpEntity; +import com.glxp.mipsdl.entity.thrsys.ThrInvWarehouseEntity; +import com.glxp.mipsdl.entity.thrsys.ThrSystemBusApiEntity; +import com.glxp.mipsdl.http.HttpClient; +import com.glxp.mipsdl.req.base.*; +import com.glxp.mipsdl.req.phxyy.PhBusTypeRequest; +import com.glxp.mipsdl.req.phxyy.PhOrderRequest; +import com.glxp.mipsdl.req.phxyy.PhProductRequest; +import com.glxp.mipsdl.req.phxyy.PhUnitRequest; +import com.glxp.mipsdl.req.post.PostFileThrOrderRequest; +import com.glxp.mipsdl.req.post.PostThrCorpRequest; +import com.glxp.mipsdl.req.post.PostThrInvProductsRequest; +import com.glxp.mipsdl.req.post.PostThrProductsRequest; +import com.glxp.mipsdl.res.BaseResponse; +import com.glxp.mipsdl.service.auth.AuthWarehouseService; +import com.glxp.mipsdl.service.thrsys.ThrCorpService; +import com.glxp.mipsdl.service.thrsys.ThrSystemDetailService; +import com.glxp.mipsdl.util.DateUtil; +import com.glxp.mipsdl.util.DictUtl; +import com.glxp.mipsdl.util.ResultVOUtils; +import com.glxp.mipsdl.util.SubmitOrderUtil; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/** + * 平和县医院对接物资系统Client + */ +@Slf4j +@Service(value = "100005HttpClient") //bean注册名称,使用编码 + HttpClient,文件接口加 FileClient +public class PhxyyClient implements BaseHttpClient { + + @Resource + private ThrSystemDetailService thrSystemDetailService; + @Resource + private HttpClient httpClient; + @Resource + private ThrBustypeOriginDao thrBustypeOriginDao; + @Resource + private IoOrderDao orderDao; + @Resource + private ThrSystemBusApiDao thrSystemBusApiDao; + @Resource + private BasicBussinessTypeDao basicBussinessTypeDao; + @Resource + private BasicCorpDao basicCorpDao; + @Resource + private IoCodeDao codeDao; + @Resource + private AuthWarehouseDao authWarehouseDao; + @Resource + private ThrInvWarehouseDao thrInvWarehouseDao; + @Resource + private AuthWarehouseService authWarehouseService; + @Resource + private ThirdSysConfig thirdSysConfig; + @Resource + private ThrCorpService thrCorpService; + @Resource + private IoOrderDetailBizDao orderDetailBizDao; + @Resource + private SubmitOrderUtil submitOrderUtil; + + @Override + public BaseResponse getUnit(UdiwmsUnitRequest udiwmsUnitRequest) { + PhUnitRequest phUnitRequest = new PhUnitRequest(); + BeanUtil.copyProperties(udiwmsUnitRequest, phUnitRequest); + String response = httpClient.postJson(thrSystemDetailService.getUrl(Constants.URL_NAME_CORP_URL), phUnitRequest); + BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class); + return baseResponse; + } + + @Override + public BaseResponse getProducts(UdiwmsProductRequest udiwmsProductRequest) { + PhProductRequest phProductRequest = new PhProductRequest(); + BeanUtil.copyProperties(udiwmsProductRequest, phProductRequest); + String response = httpClient.postJson(thrSystemDetailService.getUrl(Constants.URL_NAME_PI_QUERY_URL), phProductRequest); + BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class); + return baseResponse; + } + + @Override + public BaseResponse getOrderTypes(UdiwmsBusTypeRequest udiwmsBusTypeRequest) { + PhBusTypeRequest phBusTypeRequest = new PhBusTypeRequest(); + BeanUtil.copyProperties(udiwmsBusTypeRequest, phBusTypeRequest); + String response = httpClient.postJson(thrSystemDetailService.getUrl(Constants.URL_NAME_BUS_TYPE_QUERY_URL), phBusTypeRequest); + BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class); + return baseResponse; + } + + @Override + public BaseResponse getOrders(UdiwmsOrderQueryRequest udiwmsOrderQueryRequest) { + if (StrUtil.isBlank(udiwmsOrderQueryRequest.getBillType())) { + return ResultVOUtils.error(500, "单据类型不能为空"); + } + //查询绑定的第三方单据类型 + String thirdAction = thrBustypeOriginDao.findThirdActionByBillType(udiwmsOrderQueryRequest.getBillType(), DictUtl.CURRENT_HOSP_CODE); + udiwmsOrderQueryRequest.setBillType(thirdAction); + String response = httpClient.postJson(thrSystemDetailService.getUrl(Constants.URL_NAME_ORDER_QUERY_URL), udiwmsOrderQueryRequest); + BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class); + return baseResponse; + } + + @Override + public BaseResponse submitOrders(UdiwmsOrderRequest udiwmsOrderRequest) { + if (StrUtil.isBlank(udiwmsOrderRequest.getBillNo())) { + return ResultVOUtils.error(500, "单据号不能为空"); + } + + PhOrderRequest phOrderRequest = new PhOrderRequest(); + BeanUtil.copyProperties(udiwmsOrderRequest, phOrderRequest); + + //查询单据和详情信息,组装第三方系统接口参数 + IoOrderEntity orderEntity = orderDao.selectOne(new QueryWrapper().eq("billNo", udiwmsOrderRequest.getBillNo())); + + phOrderRequest.setBillDate(DateUtil.formatDateTime(orderEntity.getCreateTime())); + //查询对应的第三方单据类型 + ThrSystemBusApiEntity thrSystemBusApiEntity = thrSystemBusApiDao.selectOne(new QueryWrapper().eq("code", udiwmsOrderRequest.getBillType())); + if (StrUtil.isBlank(thrSystemBusApiEntity.getUrl())) { + return ResultVOUtils.error(500, "接口未配置,无法提交!"); + } + + phOrderRequest.setBillType(thrSystemBusApiEntity.getThirdBuyCode()); + + //查询单据类型,设置往来单位信息 + BasicBussinessTypeEntity basicBussinessTypeEntity = basicBussinessTypeDao.selectByAction(udiwmsOrderRequest.getBillType()); + if (basicBussinessTypeEntity.getCorpType().equals(Constants.CORP_HOSPTIAL)) { + //医院客户 + phOrderRequest.setCorpId(orderEntity.getFromCorp()); + //查询客户名称 + String corpName = basicCorpDao.selectNameByErpId(orderEntity.getFromCorp()); + phOrderRequest.setCorpName(corpName); + } else if (basicBussinessTypeEntity.getCorpType().equals(Constants.CORP_INTTERNAL)) { + //内部科室 + AuthWarehouseEntity warehouseEntity = authWarehouseDao.selectOne(new QueryWrapper().eq("code", udiwmsOrderRequest.getCorpId())); + try { + //根据第三方系统标识,获取对应字段的值 + ThrInvWarehouseEntity thrInvWarehouseEntity = thrInvWarehouseDao.selectOne(new QueryWrapper() + .eq("code", authWarehouseService.getThirdInvCode(warehouseEntity)) + .eq("thirdSys", thirdSysConfig.getThirdId())); + + phOrderRequest.setCorpId(thrInvWarehouseEntity.getCode()); + phOrderRequest.setCorpName(thrInvWarehouseEntity.getName()); + } catch (Exception e) { + log.error("查询单据对应往来单位的第三方仓库信息异常", e); + } + } else if (basicBussinessTypeEntity.getCorpType().equals(Constants.CORP_SP)) { + //供应商 + ThrCorpEntity thrCorp = thrCorpService.getThrCorp(udiwmsOrderRequest.getCorpId()); + if (null != thrCorp) { + phOrderRequest.setCorpId(thrCorp.getUnitId()); + phOrderRequest.setCorpName(thrCorp.getName()); + } else { + log.error("查询单据对应的第三方往来单位信息异常"); + } + } + + //查询仓库信息 + AuthWarehouseEntity warehouseEntity = authWarehouseDao.selectOne(new QueryWrapper().eq("code", orderEntity.getInvCode())); + try { + ThrInvWarehouseEntity thrInvWarehouseEntity = thrInvWarehouseDao.selectOne(new QueryWrapper() + .eq("code", authWarehouseService.getThirdInvCode(warehouseEntity)) + .eq("thirdSys", thirdSysConfig.getThirdId())); + + phOrderRequest.setLocInvCode(thrInvWarehouseEntity.getCode()); + phOrderRequest.setLocInvName(thrInvWarehouseEntity.getName()); + + phOrderRequest.setLocStorageCode(thrInvWarehouseEntity.getCode()); + phOrderRequest.setLocStorageName(thrInvWarehouseEntity.getName()); + } catch (Exception e) { + log.info("查询第三方系统仓库信息异常", e); + } + + if (StrUtil.nullToEmpty(thrSystemBusApiEntity.getUrl()).equals("useOut")) { + phOrderRequest.setCorpId(phOrderRequest.getLocStorageCode()); + phOrderRequest.setCorpName(phOrderRequest.getLocStorageName()); + + ThrInvWarehouseEntity thrInvWarehouseEntity = thrInvWarehouseDao.selectOne(new QueryWrapper().eq("code", "29").eq("thirdSysFk", thirdSysConfig.getThirdId())); + phOrderRequest.setLocStorageCode("29"); + phOrderRequest.setLocStorageName(thrInvWarehouseEntity.getName()); + } + + phOrderRequest.setBillFlag("1"); + //设置单据出入库类型 + if (basicBussinessTypeEntity.getMainAction().equals(ConstantType.TYPE_PUT)) { + phOrderRequest.setInoutType(1); //入库 + } else if (basicBussinessTypeEntity.getMainAction().equals(ConstantType.TYPE_OUT)) { + phOrderRequest.setInoutType(2); //出库 + } + + phOrderRequest.setRemark("udi管理系统提交单据"); + + //组装单据明细数据 + List ioCodeEntities = codeDao.selectList(new QueryWrapper() + .eq("orderId", orderEntity.getBillNo()) + .ne("action", "StockCheck") + ); + + List items = new ArrayList<>(); + //查询业务单据详情 + List detailBizEntities = orderDetailBizDao.selectList(new QueryWrapper().eq("orderIdFk", orderEntity.getBillNo())); + + + setOrderDetailList(ioCodeEntities, items, detailBizEntities); + + Collections.reverse(items); + phOrderRequest.setItem(items); + + return submitOrderUtil.submitOrder(orderEntity, phOrderRequest); + } + + /** + * 封装单据详情参数 + * + * @param ioCodeEntities 单据码明细 + * @param orderDetailRequests 单据详情参数 + * @param detailBizEntities 单据业务详情 + */ + private void setOrderDetailList(List ioCodeEntities, List orderDetailRequests, List detailBizEntities) { + for (IoOrderDetailBizEntity detailBizEntity : detailBizEntities) { + UdiwmsOrderDetailRequest item = submitOrderUtil.buildProductInfo(detailBizEntity); + + //封装条码信息 + submitOrderUtil.setCodeList(ioCodeEntities, detailBizEntity, item); + + orderDetailRequests.add(item); + } + } + + @Override + public BaseResponse getInvProducts(UdiwmsInvProductsRequest udiwmsInvProductsRequest) { + String response = httpClient.postJson(thrSystemDetailService.getUrl(Constants.URL_NAME_INV_PI_URL), udiwmsInvProductsRequest); + BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class); + return baseResponse; + } + + @Override + public BaseResponse getWarehouse(UdiwmsWarehouseRequest udiwmsWarehouseRequest) { + String response = httpClient.postJson(thrSystemDetailService.getUrl(Constants.URL_NAME_WAREHOUSE_QUERY_URL), udiwmsWarehouseRequest); + BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class); + return baseResponse; + } + + @Override + public BaseResponse postProducts(PostThrProductsRequest postThrProductsRequest) { + postThrProductsRequest.setUploadType("文件导入"); + String response = httpClient.postUDIWMSJson(thirdSysConfig.getPostPiUrl(), postThrProductsRequest); + BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class); + return baseResponse; + } + + @Override + public BaseResponse postCorps(PostThrCorpRequest postThrCorpRequest) { + postThrCorpRequest.setUploadType("文件导入"); + String response = httpClient.postUDIWMSJson(thirdSysConfig.getPostCorpUrl(), postThrCorpRequest); + BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class); + return baseResponse; + } + + @Override + public BaseResponse postOrderDetail(PostFileThrOrderRequest postFileThrOrderRequest) { + postFileThrOrderRequest.setUploadType("文件导入"); + String response = httpClient.postUDIWMSJson(thirdSysConfig.getPostOrderUrl(), postFileThrOrderRequest); + BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class); + return baseResponse; + } + + @Override + public BaseResponse postInvProducts(PostThrInvProductsRequest postThrInvProductsRequest) { + String response = httpClient.postUDIWMSJson(thirdSysConfig.getPostInvPiUrl(), postThrInvProductsRequest); + BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class); + return baseResponse; + } + + @Override + public BaseResponse testConnect() { + UdiwmsUnitRequest udiwmsUnitRequest = new UdiwmsUnitRequest(); + udiwmsUnitRequest.setPage(1); + udiwmsUnitRequest.setLimit(2); + BaseResponse baseResponse = getUnit(udiwmsUnitRequest); + if (baseResponse.getCode() == 20000) { + return ResultVOUtils.success("连接成功!"); + } + return ResultVOUtils.error(500, "连接失败!"); + } + + @Override + public BaseResponse queryUdiInvProducts(UdiwmsQueryUdiInvProductsRequest queryUdiInvProductsRequest) { + String response = httpClient.postUDIWMSJson(thirdSysConfig.getQueryInvUrl(), queryUdiInvProductsRequest); + BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class); + return baseResponse; + } + + @Override + public BaseResponse submitProducts(UdiwmsAddProductsRequest udiwmsAddProductsRequest) { + return null; + } + + @Override + public BaseResponse submitUnit(UdiwmsAddUnitRequest udiwmsAddUnitRequest) { + return null; + } + + @Override + public BaseResponse submitPreInOrders(UdiwmsPreInOrderRequest udiwmsPreInOrderRequest) { + return null; + } +} diff --git a/src/main/java/com/glxp/mipsdl/client/phxyy/PhxyyFileClient.java b/src/main/java/com/glxp/mipsdl/client/phxyy/PhxyyFileClient.java new file mode 100644 index 0000000..c9476d6 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/client/phxyy/PhxyyFileClient.java @@ -0,0 +1,119 @@ +package com.glxp.mipsdl.client.phxyy; + +import cn.hutool.core.thread.ThreadUtil; +import com.glxp.mipsdl.client.BaseFileClient; +import com.glxp.mipsdl.req.post.PostThrCorpRequest; +import com.glxp.mipsdl.req.post.PostThrProductsRequest; +import com.glxp.mipsdl.res.BaseResponse; +import com.glxp.mipsdl.res.udiwms.UdiwmsProductInfoResponse; +import com.glxp.mipsdl.res.udiwms.UdiwmsUnitResponse; +import com.glxp.mipsdl.service.file.UdiInfoUploadService; +import com.glxp.mipsdl.util.ExcelUtil; +import com.glxp.mipsdl.util.ExecutorUtil; +import com.glxp.mipsdl.util.ResultVOUtils; +import com.glxp.mipsdl.vo.file.phxyy.PhxyyCorpEntity; +import com.glxp.mipsdl.vo.file.phxyy.PhxyyProductEntity; +import lombok.extern.slf4j.Slf4j; +import org.springframework.beans.BeanUtils; +import org.springframework.stereotype.Service; +import org.springframework.web.multipart.MultipartFile; + +import javax.annotation.Resource; +import java.io.IOException; +import java.io.InputStream; +import java.util.ArrayList; +import java.util.List; + +/** + * 平和县医院文件接口 + */ +@Slf4j +@Service(value = "100005FileClient") //bean注册名称,使用编码 + HttpClient,文件接口加 FileClient +public class PhxyyFileClient implements BaseFileClient { + + @Resource + private UdiInfoUploadService udiInfoUploadService; + @Resource + private ExecutorUtil executorUtil; + + @Override + public BaseResponse uploadPi(List files, String thirdSys) { + for (int i = 0; i < files.size(); i++) { + MultipartFile file = files.get(i); + if (file.isEmpty()) { + return ResultVOUtils.error(500, "上传第" + (i++) + "个文件失败"); + } + try { + InputStream inputStream = file.getInputStream(); + ExcelUtil util = new ExcelUtil(PhxyyProductEntity.class); + List phxyyProductEntities = util.importExcel("字典", inputStream); + List udiwmsProductInfoResponses = new ArrayList<>(); + for (PhxyyProductEntity phxyyProductEntity : phxyyProductEntities) { + UdiwmsProductInfoResponse udiwmsProductInfoResponse = new UdiwmsProductInfoResponse(); + BeanUtils.copyProperties(phxyyProductEntity, udiwmsProductInfoResponse); + udiwmsProductInfoResponses.add(udiwmsProductInfoResponse); + } + PostThrProductsRequest postThrProductsRequest = new PostThrProductsRequest(); + postThrProductsRequest.setDatas(udiwmsProductInfoResponses); + postThrProductsRequest.setUploadType("文件导入"); + postThrProductsRequest.setThirdSys(thirdSys); + executorUtil.getUploadExecutor().execute(ThreadUtil.newThread(() -> { + udiInfoUploadService.postProducts(postThrProductsRequest); + }, "uploadPi")); + log.error("上传完" + System.currentTimeMillis()); + } catch (IOException e) { + log.error("解析上传excel文件IO异常,异常信息:{}", e); + return ResultVOUtils.error(500, "数据异常"); + } catch (Exception e) { + log.error("处理产品信息excel文件异常,异常信息:{}", e); + return ResultVOUtils.error(500, "数据异常"); + } + } + return ResultVOUtils.success("文件解析成功,正在上传,请稍后刷新查看"); + } + + @Override + public BaseResponse uploadCorps(List files, String thirdSys) { + for (int i = 0; i < files.size(); i++) { + MultipartFile file = files.get(i); + if (file.isEmpty()) { + return ResultVOUtils.error(500, "上传第" + (i++) + "个文件失败"); + } + List udiwmsUnitResponses = new ArrayList<>(); + try { + InputStream inputStream = file.getInputStream(); + ExcelUtil util = new ExcelUtil(PhxyyCorpEntity.class); + List phxyyCorpEntities = util.importExcel("单位", inputStream); + for (PhxyyCorpEntity phxyyCorpEntity : phxyyCorpEntities) { + UdiwmsUnitResponse udiwmsUnitResponse = new UdiwmsUnitResponse(); + udiwmsUnitResponse.setName(phxyyCorpEntity.getCorpName()); + udiwmsUnitResponse.setUnitId(phxyyCorpEntity.getCorpCode()); + udiwmsUnitResponses.add(udiwmsUnitResponse); + } + PostThrCorpRequest postThrProductsRequest = new PostThrCorpRequest(); + postThrProductsRequest.setCorps(udiwmsUnitResponses); + postThrProductsRequest.setThirdSys(thirdSys); + executorUtil.getUploadExecutor().execute(ThreadUtil.newThread(() -> { + udiInfoUploadService.postCorps(postThrProductsRequest); + }, "uploadCorps")); + } catch (IOException e) { + log.error("解析往来单位excel文件IO异常,错误信息:{}", e); + return ResultVOUtils.error(500, "数据异常"); + } catch (Exception e) { + log.error("解析往来单位excel文件异常,异常信息:{}", e); + return ResultVOUtils.error(500, "数据异常"); + } + } + return ResultVOUtils.success("文件解析成功,正在上传,请稍后刷新查看"); + } + + @Override + public BaseResponse uploadInvPi(List files, String thirdSys) { + return ResultVOUtils.error(500, "暂不支持库存产品信息上传!"); + } + + @Override + public BaseResponse uploadOrders(List files, String thirdSys) { + return ResultVOUtils.error(500, "暂不支持业务单据上传!"); + } +} diff --git a/src/main/java/com/glxp/mipsdl/client/pzh/PzhzdClient.java b/src/main/java/com/glxp/mipsdl/client/pzh/PzhzdClient.java new file mode 100644 index 0000000..75cebb8 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/client/pzh/PzhzdClient.java @@ -0,0 +1,761 @@ +package com.glxp.mipsdl.client.pzh; + +import cn.hutool.core.util.StrUtil; +import com.glxp.mipsdl.client.BaseHttpClient; +import com.glxp.mipsdl.dao.pzhzd.YyUcloudV31SetDao; +import com.glxp.mipsdl.entity.pzhzd.YyUcloudV31SetEntity; +import com.glxp.mipsdl.entity.thrsys.ThrSystemBusApiEntity; +import com.glxp.mipsdl.enums.ResultEnum; +import com.glxp.mipsdl.http.UCloudHttpClient; +import com.glxp.mipsdl.req.base.*; +import com.glxp.mipsdl.req.post.PostFileThrOrderRequest; +import com.glxp.mipsdl.req.post.PostThrCorpRequest; +import com.glxp.mipsdl.req.post.PostThrInvProductsRequest; +import com.glxp.mipsdl.req.post.PostThrProductsRequest; +import com.glxp.mipsdl.req.pzh.USignRequest; +import com.glxp.mipsdl.req.ucloud.*; +import com.glxp.mipsdl.res.BaseResponse; +import com.glxp.mipsdl.res.PageSimpleResponse; +import com.glxp.mipsdl.res.ucloud.*; +import com.glxp.mipsdl.res.udiwms.*; +import com.glxp.mipsdl.util.DateUtil; +import com.glxp.mipsdl.util.ResultVOUtils; +import com.glxp.mipsdl.vo.ErpOrderEntity; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +/** + * 片仔癀用友erp Service + */ +@Slf4j +@Service(value = "100002HttpClient") //bean注册名称,使用编码 + HttpClient,文件接口加 FileClient +public class PzhzdClient implements BaseHttpClient { + + @Resource + private YyUcloudV31SetDao yyUcloudV31SetDao; + @Resource + private UCloudHttpClient uCloudHttpClient; + + private YyUcloudV31SetEntity setEntity; + + + @Override + public BaseResponse getUnit(UdiwmsUnitRequest udiwmsUnitRequest) { + UCustmandocRequest uCustmandocRequest = new UCustmandocRequest(udiwmsUnitRequest.getPage(), udiwmsUnitRequest.getLimit()); + uCustmandocRequest.setCustshortname(udiwmsUnitRequest.getKey()); + uCustmandocRequest.setCustname(udiwmsUnitRequest.getName()); + uCustmandocRequest.setCustcode(udiwmsUnitRequest.getUnitId()); + uCustmandocRequest.setUnitcode(getSetEntity().getUnitCode()); + UBaseResponse> response = uCloudHttpClient.custmandocQuery(uCustmandocRequest); + if (response != null) { + List uCustmandocResponses = response.getData().getDatas(); + if (uCustmandocResponses != null && !uCustmandocResponses.isEmpty()) { + List custmandocResponses = new ArrayList<>(); + for (UCustmandocResponse queryResponse : uCustmandocResponses) { + UdiwmsUnitResponse custmandocResponse = new UdiwmsUnitResponse(); + custmandocResponse.setAddr(queryResponse.getParentvo().getConaddr()); + custmandocResponse.setUnitId(queryResponse.getParentvo().getCustcode()); + custmandocResponse.setName(queryResponse.getParentvo().getCustname()); + custmandocResponse.setSpell(queryResponse.getParentvo().getMnecode()); + custmandocResponse.setMobile(queryResponse.getParentvo().getPhone1()); + custmandocResponse.setContact(queryResponse.getParentvo().getLinkman1()); + custmandocResponses.add(custmandocResponse); + } + PageSimpleResponse pageSimpleResponse = new PageSimpleResponse<>(); + pageSimpleResponse.setTotal((long) response.getData().getAllcount()); + pageSimpleResponse.setList(custmandocResponses); + return ResultVOUtils.success(pageSimpleResponse); + } + } + return ResultVOUtils.error(500, "数据查询失败"); + } + + @Override + public BaseResponse getProducts(UdiwmsProductRequest udiwmsProductRequest) { + UInvmandocRequest uInvmandocRequest = new UInvmandocRequest(udiwmsProductRequest.getPage(), udiwmsProductRequest.getLimit()); + uInvmandocRequest.setInvname(udiwmsProductRequest.getName()); + uInvmandocRequest.setInvcode(udiwmsProductRequest.getCode()); + uInvmandocRequest.setUnitcode(getSetEntity().getUnitCode()); + UBaseResponse> response = uCloudHttpClient.invmandocQuery(uInvmandocRequest); + if (response != null) { + List uCustmandocResponses = response.getData().getDatas(); + if (uCustmandocResponses != null && !uCustmandocResponses.isEmpty()) { + List custmandocResponses = new ArrayList<>(); + for (UInvmandocQueryResponse queryResponse : uCustmandocResponses) { + UdiwmsProductInfoResponse invmandocResponse = new UdiwmsProductInfoResponse(); + invmandocResponse.setCode(queryResponse.getParentvo().getInvbasVo().getInvcode()); + invmandocResponse.setName(queryResponse.getParentvo().getInvbasVo().getInvname()); + invmandocResponse.setMeasname(queryResponse.getParentvo().getInvbasVo().getMeasname()); + invmandocResponse.setSpec(queryResponse.getParentvo().getInvbasVo().getInvspec()); + invmandocResponse.setStandard(invmandocResponse.getSpec()); + invmandocResponse.setRegisterNo(queryResponse.getParentvo().getInvbasVo().getInvtype()); + invmandocResponse.setManufactory(queryResponse.getParentvo().getInvmanVo().getProdarea()); + custmandocResponses.add(invmandocResponse); + } + PageSimpleResponse pageSimpleResponse = new PageSimpleResponse<>(); + pageSimpleResponse.setTotal((long) response.getData().getAllcount()); + pageSimpleResponse.setList(custmandocResponses); + return ResultVOUtils.success(pageSimpleResponse); + } + } + return ResultVOUtils.success(response); + } + + @Override + public BaseResponse getOrderTypes(UdiwmsBusTypeRequest udiwmsBusTypeRequest) { + BaseResponse> baseResponse = new BaseResponse<>(); + PageSimpleResponse pageSimpleResponse = new PageSimpleResponse<>(); + pageSimpleResponse.setTotal(4L); + + ThrSystemBusApiEntity thrSystemBusApiEntity = new ThrSystemBusApiEntity(); + thrSystemBusApiEntity.setCode("采购入库"); + thrSystemBusApiEntity.setName("采购入库"); + + ThrSystemBusApiEntity thrSystemBusApiEntity1 = new ThrSystemBusApiEntity(); + thrSystemBusApiEntity1.setCode("采购入库"); + thrSystemBusApiEntity1.setName("采购入库"); + + ThrSystemBusApiEntity thrSystemBusApiEntity2 = new ThrSystemBusApiEntity(); + thrSystemBusApiEntity2.setCode("采购入库"); + thrSystemBusApiEntity2.setName("采购入库"); + + ThrSystemBusApiEntity thrSystemBusApiEntity3 = new ThrSystemBusApiEntity(); + thrSystemBusApiEntity3.setCode("采购入库"); + thrSystemBusApiEntity3.setName("采购入库"); + + List list = new ArrayList<>(4); + list.add(thrSystemBusApiEntity); + list.add(thrSystemBusApiEntity1); + list.add(thrSystemBusApiEntity2); + list.add(thrSystemBusApiEntity3); + + pageSimpleResponse.setList(list); + baseResponse.setData(pageSimpleResponse); + return baseResponse; + } + + @Override + public BaseResponse getOrders(UdiwmsOrderQueryRequest udiwmsOrderQueryRequest) { + if (null != udiwmsOrderQueryRequest) { + if (StrUtil.isBlank(udiwmsOrderQueryRequest.getAction()) && StrUtil.isBlank(udiwmsOrderQueryRequest.getBillAction())) { + return ResultVOUtils.error(500, "单据类型不能为空!"); + } + if (StrUtil.isBlank(udiwmsOrderQueryRequest.getStartDate())) { + return ResultVOUtils.error(500, "起始时间不能为空"); + } + if (StrUtil.isBlank(udiwmsOrderQueryRequest.getEndDate())) { + return ResultVOUtils.error(500, "结束时间不能为空"); + } + } else { + return ResultVOUtils.error(500, "参数不能为空"); + } + if ("WareHouseIn".equals(udiwmsOrderQueryRequest.getAction()) || udiwmsOrderQueryRequest.getBillAction().equals("采购入库") + || udiwmsOrderQueryRequest.getBillAction().equals("退货出库")) { + UPurchaseinRequest uPurchaseinRequest = new UPurchaseinRequest(); + uPurchaseinRequest.setDate_end(udiwmsOrderQueryRequest.getEndDate()); + uPurchaseinRequest.setDate_begin(udiwmsOrderQueryRequest.getStartDate()); + uPurchaseinRequest.setPage_now(udiwmsOrderQueryRequest.getPage() + ""); + uPurchaseinRequest.setPage_size(udiwmsOrderQueryRequest.getLimit() + ""); + // 3是已签字 2是未签字 +// if ("0".equals(udiwmsOrderRequest.getBillFlag())) { +// uPurchaseinRequest.setFbillflag("2"); +// } else if (("1").equals(udiwmsOrderRequest.getBillFlag())) { +// uPurchaseinRequest.setFbillflag("3"); +// } + uPurchaseinRequest.setBillcode(udiwmsOrderQueryRequest.getBillNo()); + List udiwmsOrderResponses = getPurchasein(uPurchaseinRequest); + if (udiwmsOrderResponses != null && udiwmsOrderResponses.size() > 0) { + List returnsList = new ArrayList<>(); + if ("采购入库".equals(udiwmsOrderQueryRequest.getBillAction())) { + for (int i = 0; i < udiwmsOrderResponses.size(); i++) { + if (udiwmsOrderResponses.get(i).getBillType().equals("采购入库")) { + returnsList.add(udiwmsOrderResponses.get(i)); + } + } + } else if ("退货出库".equals(udiwmsOrderQueryRequest.getBillAction())) { + for (int i = 0; i < udiwmsOrderResponses.size(); i++) { + if (udiwmsOrderResponses.get(i).getBillType().equals("退货出库")) { + returnsList.add(udiwmsOrderResponses.get(i)); + } + } + } else if ("WareHouseIn".equals(udiwmsOrderQueryRequest.getAction())) { + returnsList.addAll(udiwmsOrderResponses); + } + PageSimpleResponse pageSimpleResponse = new PageSimpleResponse<>(); + pageSimpleResponse.setTotal((long) returnsList.size()); + pageSimpleResponse.setList(returnsList); + return ResultVOUtils.success(pageSimpleResponse); + } else + return ResultVOUtils.error(500, "未查询到数据"); + + } else if ( + "WareHouseOut".equals(udiwmsOrderQueryRequest.getAction()) || + udiwmsOrderQueryRequest.getBillAction().equals("销售出库") || udiwmsOrderQueryRequest.getBillAction().equals("退货入库")) { + + USaleoutQueryRequest uSaleoutQueryRequest = new USaleoutQueryRequest(); + uSaleoutQueryRequest.setDate_end(udiwmsOrderQueryRequest.getEndDate()); + uSaleoutQueryRequest.setDate_begin(udiwmsOrderQueryRequest.getStartDate()); + uSaleoutQueryRequest.setPage_now(udiwmsOrderQueryRequest.getPage() + ""); + uSaleoutQueryRequest.setPage_size(udiwmsOrderQueryRequest.getLimit() + ""); + // 3是已签字 2是未签字 + if ("0".equals(udiwmsOrderQueryRequest.getBillFlag())) { + uSaleoutQueryRequest.setFbillflag("2"); + } else if (("1").equals(udiwmsOrderQueryRequest.getBillFlag())) { + uSaleoutQueryRequest.setFbillflag("3"); + } + uSaleoutQueryRequest.setBillcode(udiwmsOrderQueryRequest.getBillNo()); + + List udiwmsOrderResponses = getSaleout(uSaleoutQueryRequest); + if (udiwmsOrderResponses != null && udiwmsOrderResponses.size() > 0) { + List returnsList = new ArrayList<>(); + if ("销售出库".equals(udiwmsOrderQueryRequest.getBillAction())) { + for (int i = 0; i < udiwmsOrderResponses.size(); i++) { + if (udiwmsOrderResponses.get(i).getBillType().equals("销售出库")) { + returnsList.add(udiwmsOrderResponses.get(i)); + } + } + } else if ("退货入库".equals(udiwmsOrderQueryRequest.getBillAction())) { + for (int i = 0; i < udiwmsOrderResponses.size(); i++) { + if (udiwmsOrderResponses.get(i).getBillType().equals("退货入库")) { + returnsList.add(udiwmsOrderResponses.get(i)); + } + } + } else if ("WareHouseIn".equals(udiwmsOrderQueryRequest.getAction())) { + returnsList.addAll(udiwmsOrderResponses); + } + PageSimpleResponse pageSimpleResponse = new PageSimpleResponse<>(); + pageSimpleResponse.setTotal((long) returnsList.size()); + pageSimpleResponse.setList(returnsList); + return ResultVOUtils.success(pageSimpleResponse); + } else + return ResultVOUtils.error(500, "未查询到数据"); + } else { + return ResultVOUtils.error(500, "单据类型错误!"); + } + } + + @Override + public BaseResponse submitOrders(UdiwmsOrderRequest udiwmsOrderRequest) { + return null; + } + + @Override + public BaseResponse getInvProducts(UdiwmsInvProductsRequest udiwmsInvProductsRequest) { + if (udiwmsInvProductsRequest.getPage() > 1) { + return ResultVOUtils.error(500, "超出最大数"); + } + UOnhandQueryRequest onhandQueryRequest = new UOnhandQueryRequest(); + if (udiwmsInvProductsRequest.getInventoryCode() != null) { + onhandQueryRequest.setInventory(udiwmsInvProductsRequest.getInventoryCode()); + } else if (udiwmsInvProductsRequest.getInventoryCodes() != null) { + onhandQueryRequest.setInventorys(udiwmsInvProductsRequest.getInventoryCodes()); + } + onhandQueryRequest.setPage_size(udiwmsInvProductsRequest.getLimit() + ""); + onhandQueryRequest.setPage_now(udiwmsInvProductsRequest.getPage() + ""); + onhandQueryRequest.setBatchcode(udiwmsInvProductsRequest.getBatchNo()); + onhandQueryRequest.setWarehouse(udiwmsInvProductsRequest.getWarehouseCode()); + onhandQueryRequest.setCorp(setEntity.getUnitCode()); + onhandQueryRequest.setCalbody(setEntity.getUnitCode()); + UBaseResponse> response = uCloudHttpClient.onhandQuery(onhandQueryRequest); + if (response != null) { + List uOnhandQueryResponses; + uOnhandQueryResponses = response.getData().getDatas(); + if (uOnhandQueryResponses != null && uOnhandQueryResponses.size() > 0) { + List invProductResponses = new ArrayList<>(); + for (UOnhandQueryResponse onhandQueryResponse : uOnhandQueryResponses) { + UdiwmsInvProductResponse invProductResponse = new UdiwmsInvProductResponse(); + invProductResponse.setName(onhandQueryResponse.getCinventory_name()); + invProductResponse.setBatchNo(onhandQueryResponse.getVbatchcode()); + invProductResponse.setCode(onhandQueryResponse.getCinventory_code()); + invProductResponse.setCount(onhandQueryResponse.getNnum()); + invProductResponse.setSpec(onhandQueryResponse.getInvspec()); + invProductResponse.setRegisterCertNo(onhandQueryResponse.getInvtype()); + invProductResponse.setWarehouseName(onhandQueryResponse.getCwarehouse_name()); + invProductResponse.setWarehouseCode(onhandQueryResponse.getCwarehouse_code()); +// ErpStockEntity erpStockEntity = erpStockService.findByCode(invProductResponse.getCode(), invProductResponse.getBatchNo()); +// if (erpStockEntity != null) { +// udiwmsOnhandResponse.setExpirationDate(erpStockEntity.getExpirationDate()); +// udiwmsOnhandResponse.setManufacturingDate(erpStockEntity.getManufacturingDate()); +// } + invProductResponses.add(invProductResponse); + } + PageSimpleResponse pageSimpleResponse = new PageSimpleResponse<>(); + pageSimpleResponse.setTotal(invProductResponses.size() + 0L); + pageSimpleResponse.setList(invProductResponses); + return ResultVOUtils.success(pageSimpleResponse); + } + + } + return ResultVOUtils.success(response); + } + + @Override + public BaseResponse getWarehouse(UdiwmsWarehouseRequest udiwmsWarehouseRequest) { + return ResultVOUtils.success(); + } + + @Override + public BaseResponse testConnect() { + UdiwmsUnitRequest udiwmsUnitRequest = new UdiwmsUnitRequest(); + udiwmsUnitRequest.setPage(1); + udiwmsUnitRequest.setLimit(2); + BaseResponse baseResponse = getUnit(udiwmsUnitRequest); + if (baseResponse.getCode() == 20000) { + return ResultVOUtils.success("连接成功!"); + } + return baseResponse; + } + + @Override + public BaseResponse queryUdiInvProducts(UdiwmsQueryUdiInvProductsRequest queryUdiInvProductsRequest) { + return null; + } + + @Override + public BaseResponse submitProducts(UdiwmsAddProductsRequest udiwmsAddProductsRequest) { + return null; + } + + @Override + public BaseResponse submitUnit(UdiwmsAddUnitRequest udiwmsAddUnitRequest) { + return null; + } + + @Override + public BaseResponse submitPreInOrders(UdiwmsPreInOrderRequest udiwmsPreInOrderRequest) { + return null; + } + + @Override + public BaseResponse postProducts(PostThrProductsRequest postThrProductsRequest) { + return null; + } + + @Override + public BaseResponse postCorps(PostThrCorpRequest postThrCorpRequest) { + return null; + } + + @Override + public BaseResponse postOrderDetail(PostFileThrOrderRequest postFileThrOrderRequest) { + return null; + } + + @Override + public BaseResponse postInvProducts(PostThrInvProductsRequest postThrInvProductsRequest) { + return null; + } + + /** + * 提交采购计划 + * + * @param udiwmsOrderRequest + * @return + */ + public BaseResponse postOrder(UdiwmsOrderRequest udiwmsOrderRequest) { + + return null; + } + + /** + * 获取现存量 + * + * @param udiwmsInvProductsRequest + * @return + */ + public BaseResponse getOnHand(UdiwmsInvProductsRequest udiwmsInvProductsRequest) { + UOnhandQueryRequest onhandQueryRequest = new UOnhandQueryRequest(); + if (udiwmsInvProductsRequest.getInventoryCode() != null) { + onhandQueryRequest.setInventory(udiwmsInvProductsRequest.getInventoryCode()); + } else if (udiwmsInvProductsRequest.getInventoryCodes() != null) { + onhandQueryRequest.setInventorys(udiwmsInvProductsRequest.getInventoryCodes()); + } + onhandQueryRequest.setPage_size(udiwmsInvProductsRequest.getLimit() + ""); + onhandQueryRequest.setPage_now(udiwmsInvProductsRequest.getPage() + ""); + onhandQueryRequest.setBatchcode(udiwmsInvProductsRequest.getBatchNo()); + onhandQueryRequest.setWarehouse(udiwmsInvProductsRequest.getWarehouseCode()); + onhandQueryRequest.setCorp(setEntity.getUnitCode()); + onhandQueryRequest.setCalbody(setEntity.getUnitCode()); + UBaseResponse> response = uCloudHttpClient.onhandQuery(onhandQueryRequest); + if (response != null) { + List uOnhandQueryResponses; + uOnhandQueryResponses = response.getData().getDatas(); + if (uOnhandQueryResponses != null && uOnhandQueryResponses.size() > 0) { + List udiwmsOnhandResponses = new ArrayList<>(); + for (UOnhandQueryResponse onhandQueryResponse : uOnhandQueryResponses) { + UdiwmsOnhandResponse udiwmsOnhandResponse = new UdiwmsOnhandResponse(); + udiwmsOnhandResponse.setBatchNo(onhandQueryResponse.getVbatchcode()); + udiwmsOnhandResponse.setInventoryName(onhandQueryResponse.getCinventory_name()); + udiwmsOnhandResponse.setInventoryCode(onhandQueryResponse.getCinventory_code()); + udiwmsOnhandResponse.setCount(onhandQueryResponse.getNnum()); + udiwmsOnhandResponse.setRegisterCertNo(onhandQueryResponse.getInvtype()); + udiwmsOnhandResponse.setSpec(onhandQueryResponse.getInvspec()); + udiwmsOnhandResponse.setWarehouseName(onhandQueryResponse.getCwarehouse_name()); + udiwmsOnhandResponse.setWarehouseCode(onhandQueryResponse.getCwarehouse_code()); + udiwmsOnhandResponses.add(udiwmsOnhandResponse); + } + + PageSimpleResponse pageSimpleResponse = new PageSimpleResponse<>(); + pageSimpleResponse.setTotal(udiwmsOnhandResponses.size() + 0L); + pageSimpleResponse.setList(udiwmsOnhandResponses); + return ResultVOUtils.success(pageSimpleResponse); + } + + } + return ResultVOUtils.success(response); + } + + /** + * 单据签名 + * + * @param signRequest + * @return + */ + public BaseResponse signBill(USignRequest signRequest) { + if (signRequest.getBillAction().equals("PurchaseWareHouseIn") || signRequest.getBillAction().equals("ReturnWareHouseOut")) { + return purchaseinSign(signRequest); + } else if (signRequest.getBillAction().equals("SalesWareHouseOut") || signRequest.getBillAction().equals("ReturnWareHouseIn")) { + return saleSign(signRequest); + } else { + return ResultVOUtils.error(500, "单据类型错误!"); + } + } + + /** + * 修改erp订单 + * + * @param udiwmsPostBillRequest + * @return + */ + public BaseResponse modifyBill(UdiwmsPostBillRequest udiwmsPostBillRequest) { + Map> postMap = udiwmsPostBillRequest.getPostMap(); + if (udiwmsPostBillRequest.getModifyType() != null && "sign".equals(udiwmsPostBillRequest.getModifyType())) { + USignRequest signRequest = new USignRequest(); + signRequest.setBillcode(udiwmsPostBillRequest.getBillNo()); + signRequest.setBillAction(udiwmsPostBillRequest.getBillAction()); + if (signRequest.getBillAction().equals("PurchaseWareHouseIn") || signRequest.getBillAction().equals("ReturnWareHouseOut")) { + return purchaseinSign(signRequest); + } else if (signRequest.getBillAction().equals("SalesWareHouseOut") || signRequest.getBillAction().equals("ReturnWareHouseIn")) { + return saleSign(signRequest); + } else { + return ResultVOUtils.error(500, "单据类型错误!"); + } + } else { + ModifyPruchaseinRequest modifyPruchaseinRequest = new ModifyPruchaseinRequest(); + modifyPruchaseinRequest.setBillAction(udiwmsPostBillRequest.getBillAction()); + List generalBillVOBeans = new ArrayList<>(); + for (List entities : postMap.values()) { + ModifyPruchaseinRequest.GeneralBillVOBean generalBillVOBean = new ModifyPruchaseinRequest.GeneralBillVOBean(); + ModifyPruchaseinRequest.GeneralBillVOBean.ParentVOBean parentVOBean = new ModifyPruchaseinRequest.GeneralBillVOBean.ParentVOBean(); + List subPurchases = new ArrayList<>(); + for (ErpOrderEntity erpOrderEntity : entities) { + if (erpOrderEntity.getErpOrderId() != null) { + parentVOBean.setVbillcode(erpOrderEntity.getErpOrderId()); + ModifyPruchaseinRequest.GeneralBillVOBean.ChildrenVOBean childrenVOBean = new ModifyPruchaseinRequest.GeneralBillVOBean.ChildrenVOBean(); + childrenVOBean.setCinventoryid(erpOrderEntity.getGoodsid()); + if (erpOrderEntity.getCount() != 0) { + childrenVOBean.setNinnum(erpOrderEntity.getCount() + ""); + childrenVOBean.setNoutnum(erpOrderEntity.getCount() + ""); + subPurchases.add(childrenVOBean); + } + } else { + return ResultVOUtils.error(500, "批次号不匹配,请检查后修改!"); + } + } + generalBillVOBean.setParentVO(parentVOBean); + generalBillVOBean.setChildrenVO(subPurchases); + generalBillVOBeans.add(generalBillVOBean); + } + modifyPruchaseinRequest.setGeneralBillVO(generalBillVOBeans); + if (modifyPruchaseinRequest.getBillAction().equals("PurchaseWareHouseIn") || modifyPruchaseinRequest.getBillAction().equals("ReturnWareHouseOut")) { + return modifyPurchasein(modifyPruchaseinRequest); + } else if (modifyPruchaseinRequest.getBillAction().equals("SalesWareHouseOut") || modifyPruchaseinRequest.getBillAction().equals("ReturnWareHouseIn")) { + return modifySale(modifyPruchaseinRequest); + } else { + return ResultVOUtils.error(500, "单据类型错误!"); + } + } + } + + private YyUcloudV31SetEntity getSetEntity() { + if (null == setEntity) { + setEntity = yyUcloudV31SetDao.findSetUp(null); + } + return setEntity; + } + + public List getPurchasein(UPurchaseinRequest uPurchaseinRequest) { + uPurchaseinRequest.setCorp(setEntity.getUnitCode()); + UBaseResponse> response = uCloudHttpClient.purchaseinQuery(uPurchaseinRequest); + if (response != null) { + List uPurchaseinQueryResponses = response.getData().getDatas(); + if (uPurchaseinQueryResponses != null && !uPurchaseinQueryResponses.isEmpty()) { + List purchaseinResponses = new ArrayList<>(); + for (UPurchaseinQueryResponse queryResponse : uPurchaseinQueryResponses) { + UdiwmsOrderResponse udiwmsOrderResponse = new UdiwmsOrderResponse(); + UPurchaseinQueryResponse.ParentvoBean parentvoBean = queryResponse.getParentvo(); + if (parentvoBean != null) { + udiwmsOrderResponse.setBilldate(parentvoBean.getDbilldate()); + udiwmsOrderResponse.setCorpId(parentvoBean.getProvider_code()); + udiwmsOrderResponse.setCorpName(parentvoBean.getProvider_name()); + udiwmsOrderResponse.setBillNo(parentvoBean.getVbillcode()); + udiwmsOrderResponse.setOriginType("采购订单"); + udiwmsOrderResponse.setSignFlag(parentvoBean.getFbillflag()); + if (parentvoBean.isFreplenishflag()) + udiwmsOrderResponse.setBillType("退货出库"); + else + udiwmsOrderResponse.setBillType("采购入库"); + } + List childrenvoBeans = queryResponse.getChildrenvo(); + if (childrenvoBeans != null && childrenvoBeans.size() > 0) { + List subPurchases = new ArrayList<>(); + for (UPurchaseinQueryResponse.ChildrenvoBean childrenvoBean : childrenvoBeans) { + UdiwmsOrderResponse.SubErpOrder subErpOrder = new UdiwmsOrderResponse.SubErpOrder(); + subErpOrder.setProductId(childrenvoBean.getInventory_code()); + subErpOrder.setProductName(childrenvoBean.getInventory_name()); + subErpOrder.setSpec(childrenvoBean.getInvspec()); + subErpOrder.setCount(childrenvoBean.getNinnum()); + subErpOrder.setReCount(childrenvoBean.getNshouldinnum()); + subErpOrder.setBatchNo(childrenvoBean.getVbatchcode()); + subErpOrder.setExpireDate(childrenvoBean.getDvalidate()); + subPurchases.add(subErpOrder); + } + udiwmsOrderResponse.setSubErpOrders(subPurchases); + } + purchaseinResponses.add(udiwmsOrderResponse); + } + return purchaseinResponses; + } + } + return null; + } + + public List getSaleout(USaleoutQueryRequest uSaleoutQueryRequest) { + uSaleoutQueryRequest.setCorp(setEntity.getUnitCode()); + UBaseResponse> response = uCloudHttpClient.saleoutQuery(uSaleoutQueryRequest); + if (response != null) { + List uSaleoutQueryResponses = response.getData().getDatas(); + if (uSaleoutQueryResponses != null && !uSaleoutQueryResponses.isEmpty()) { + List purchaseinResponses = new ArrayList<>(); + for (USaleoutQueryResponse queryResponse : uSaleoutQueryResponses) { + UdiwmsOrderResponse purchaseinResponse = new UdiwmsOrderResponse(); + USaleoutQueryResponse.ParentvoBean parentvoBean = queryResponse.getParentvo(); + if (parentvoBean != null) { + purchaseinResponse.setBilldate(parentvoBean.getDbilldate()); + purchaseinResponse.setCorpId(parentvoBean.getCustomer_code()); + purchaseinResponse.setCorpName(parentvoBean.getCustomer_name()); + purchaseinResponse.setBillNo(parentvoBean.getVbillcode()); + purchaseinResponse.setOriginType("销售订单"); + purchaseinResponse.setSignFlag(parentvoBean.getFbillflag()); + if (parentvoBean.isFreplenishflag()) + purchaseinResponse.setBillType("退货入库"); + else + purchaseinResponse.setBillType("销售出库"); + } + List childrenvoBeans = queryResponse.getChildrenvo(); + if (childrenvoBeans != null && childrenvoBeans.size() > 0) { + List subPurchases = new ArrayList<>(); + for (USaleoutQueryResponse.ChildrenvoBean childrenvoBean : childrenvoBeans) { + UdiwmsOrderResponse.SubErpOrder subPurchase = new UdiwmsOrderResponse.SubErpOrder(); + subPurchase.setProductId(childrenvoBean.getInventory_code()); + subPurchase.setProductName(childrenvoBean.getInventory_name()); + subPurchase.setSpec(childrenvoBean.getInvspec()); + subPurchase.setReCount(childrenvoBean.getNshouldoutnum()); + subPurchase.setCount(childrenvoBean.getNoutnum()); + subPurchase.setBatchNo(childrenvoBean.getVbatchcode()); + subPurchases.add(subPurchase); + } + purchaseinResponse.setSubErpOrders(subPurchases); + } + purchaseinResponses.add(purchaseinResponse); + } + return purchaseinResponses; + } + } + return null; + } + + //采购入库单签字 + public BaseResponse purchaseinSign(USignRequest uSignRequest) { + UPurhaseinSignRequest uPurhaseinSignRequest = new UPurhaseinSignRequest(); + UPurhaseinSignRequest.QueryInfoBean queryInfoBean = new UPurhaseinSignRequest.QueryInfoBean(); + Map date = DateUtil.getYearTRange(); + queryInfoBean.setDate_begin((String) date.get("startDate")); + queryInfoBean.setDate_end((String) date.get("endDate")); + queryInfoBean.setCalbody(setEntity.getUnitCode()); + queryInfoBean.setCorp(setEntity.getUnitCode()); + queryInfoBean.setBillcode(uSignRequest.getBillcode()); + uPurhaseinSignRequest.setQueryInfo(queryInfoBean); + UPurhaseinSignRequest.SignInfoBean signInfoBean = new UPurhaseinSignRequest.SignInfoBean(); + signInfoBean.setCoperator(setEntity.getCoperator()); + uPurhaseinSignRequest.setSignInfo(signInfoBean); + UBaseResponse data = uCloudHttpClient.purchaseinSign(uPurhaseinSignRequest); + if (data != null && data.getStatus().equals("success")) { + return ResultVOUtils.success("修改成功"); + } else { + if (data != null) { + return ResultVOUtils.error(500, data.getErrormsg()); + } + return ResultVOUtils.error(500, "连接U8云下载服务出错!"); + } + } + + public BaseResponse saleSign(USignRequest uSignRequest) { + USaleoutSignRequest uSaleoutSignRequest = new USaleoutSignRequest(); + USaleoutSignRequest.QueryInfoBean queryInfoBean = new USaleoutSignRequest.QueryInfoBean(); + Map date = DateUtil.getYearTRange(); + queryInfoBean.setDate_begin((String) date.get("startDate")); + queryInfoBean.setDate_end((String) date.get("endDate")); + queryInfoBean.setCalbody(setEntity.getUnitCode()); + queryInfoBean.setCorp(setEntity.getUnitCode()); + queryInfoBean.setBillcode(uSignRequest.getBillcode()); + uSaleoutSignRequest.setQueryInfo(queryInfoBean); + USaleoutSignRequest.SignInfoBean signInfoBean = new USaleoutSignRequest.SignInfoBean(); + signInfoBean.setCoperator(setEntity.getCoperator()); + uSaleoutSignRequest.setSignInfo(signInfoBean); + UBaseResponse data = uCloudHttpClient.saleOutSign(uSaleoutSignRequest); + if (data != null && data.getStatus().equals("success")) { + return ResultVOUtils.success("修改成功"); + } else { + if (data != null) { + return ResultVOUtils.error(500, data.getErrormsg()); + } + return ResultVOUtils.error(500, "连接U8云下载服务出错!"); + } + } + + public BaseResponse modifyPurchasein(ModifyPruchaseinRequest modifyPruchaseinRequest) { + if (modifyPruchaseinRequest == null || modifyPruchaseinRequest.getGeneralBillVO() == null) { + return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, "参数不能为null"); + } + List generalBillVOBeans = modifyPruchaseinRequest.getGeneralBillVO(); + for (ModifyPruchaseinRequest.GeneralBillVOBean generalBillVOBean : generalBillVOBeans) { + UPurchaseinRequest uPurchaseinRequest = new UPurchaseinRequest(); + uPurchaseinRequest.setBillcode(generalBillVOBean.getParentVO().getVbillcode()); + uPurchaseinRequest.setPage_size("1"); + uPurchaseinRequest.setPage_now("1"); + Map date = DateUtil.getYearTRange(); + uPurchaseinRequest.setDate_begin((String) date.get("startDate")); + uPurchaseinRequest.setDate_end((String) date.get("endDate")); + uPurchaseinRequest.setCorp(setEntity.getUnitCode()); + UBaseResponse> response = uCloudHttpClient.purchaseinQuery(uPurchaseinRequest); + + List uPurchaseinQueryResponses = response.getData().getDatas(); + if (uPurchaseinQueryResponses != null && !uPurchaseinQueryResponses.isEmpty()) { + UPurchaseinQueryResponse uPurchaseinQueryResponse = uPurchaseinQueryResponses.get(0); + UPurchaseinQueryResponse.ParentvoBean parentvoBean = uPurchaseinQueryResponse.getParentvo(); + generalBillVOBean.getParentVO().setCbiztype(parentvoBean.getBiztype_code()); + generalBillVOBean.getParentVO().setCoperatorid(parentvoBean.getOperator_code()); + generalBillVOBean.getParentVO().setCwarehouseid(parentvoBean.getWarehouseid_code()); + generalBillVOBean.getParentVO().setPk_calbody(setEntity.getUnitCode()); + generalBillVOBean.getParentVO().setPk_corp(setEntity.getUnitCode()); + generalBillVOBean.getParentVO().setVnote("扫码修改"); + generalBillVOBean.setChildrenVO(transChild(modifyPruchaseinRequest.getBillAction(), generalBillVOBean, uPurchaseinQueryResponse)); + } + } + modifyPruchaseinRequest.setGeneralBillVO(generalBillVOBeans); + UBaseResponse data = uCloudHttpClient.purchaseinModify(modifyPruchaseinRequest); + if (data != null && data.getStatus().equals("success")) { + return ResultVOUtils.success("修改成功"); + } else { + if (data != null) { + return ResultVOUtils.error(500, data.getErrormsg()); + } + return ResultVOUtils.error(500, "连接U8云下载服务出错!"); + } + + + } + + public BaseResponse modifySale(ModifyPruchaseinRequest modifyPruchaseinRequest) { + if (modifyPruchaseinRequest == null || modifyPruchaseinRequest.getGeneralBillVO() == null) { + return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, "参数不能为null"); + } + List generalBillVOBeans = modifyPruchaseinRequest.getGeneralBillVO(); + for (ModifyPruchaseinRequest.GeneralBillVOBean generalBillVOBean : generalBillVOBeans) { + USaleoutQueryRequest uPurchaseinRequest = new USaleoutQueryRequest(); + uPurchaseinRequest.setBillcode(generalBillVOBean.getParentVO().getVbillcode()); + uPurchaseinRequest.setPage_size("1"); + uPurchaseinRequest.setPage_now("1"); + Map date = DateUtil.getYearTRange(); + uPurchaseinRequest.setDate_begin((String) date.get("startDate")); + uPurchaseinRequest.setDate_end((String) date.get("endDate")); + uPurchaseinRequest.setCorp("1110"); + UBaseResponse> response = uCloudHttpClient.saleoutQuery(uPurchaseinRequest); + + List uPurchaseinQueryResponses = response.getData().getDatas(); + if (uPurchaseinQueryResponses != null && !uPurchaseinQueryResponses.isEmpty()) { + USaleoutQueryResponse uPurchaseinQueryResponse = uPurchaseinQueryResponses.get(0); + USaleoutQueryResponse.ParentvoBean parentvoBean = uPurchaseinQueryResponse.getParentvo(); + generalBillVOBean.getParentVO().setCbiztype(parentvoBean.getBiztype_code()); + generalBillVOBean.getParentVO().setCoperatorid(parentvoBean.getOperator_code()); + generalBillVOBean.getParentVO().setCwarehouseid(parentvoBean.getWarehouseid_code()); + generalBillVOBean.getParentVO().setPk_calbody("1110"); + generalBillVOBean.getParentVO().setPk_corp("1110"); + generalBillVOBean.getParentVO().setVnote("校验修改"); + generalBillVOBean.getParentVO().setCcustomerid(parentvoBean.getCustomer_code()); + generalBillVOBean.setChildrenVO(transSaleChild(modifyPruchaseinRequest.getBillAction(), generalBillVOBean, uPurchaseinQueryResponse)); + } + } + modifyPruchaseinRequest.setGeneralBillVO(generalBillVOBeans); + + + UBaseResponse data = uCloudHttpClient.saleModify(modifyPruchaseinRequest); + if (data != null && data.getStatus().equals("success")) { + return ResultVOUtils.success("修改成功"); + } else { + if (data != null) { + return ResultVOUtils.error(500, data.getErrormsg()); + } + return ResultVOUtils.error(500, "连接U8云下载服务出错!"); + } + } + + public List transChild(String action, ModifyPruchaseinRequest.GeneralBillVOBean generalBillVOBean, UPurchaseinQueryResponse uPurchaseinQueryResponse) { + List childrenVOBeans = generalBillVOBean.getChildrenVO(); + List temps = uPurchaseinQueryResponse.getChildrenvo(); + if (childrenVOBeans != null && temps != null) { + for (ModifyPruchaseinRequest.GeneralBillVOBean.ChildrenVOBean childrenVOBean : childrenVOBeans) { + for (int i = 0; i < temps.size(); i++) { + if (childrenVOBean.getCinventoryid().equals(temps.get(i).getInventory_code())) { +// childrenVOBean.setNprice(temps.get(i).getNprice() + ""); + childrenVOBean.setCrowno(temps.get(i).getCrowno()); + if (action.equals("ReturnWareHouseOut")) { + childrenVOBean.setNoutnum((-Integer.parseInt(childrenVOBean.getNinnum())) + ""); + } + } + } + } + } + return childrenVOBeans; + } + + public List transSaleChild(String action, ModifyPruchaseinRequest.GeneralBillVOBean generalBillVOBean, USaleoutQueryResponse uSaleoutQueryResponse) { + List childrenVOBeans = generalBillVOBean.getChildrenVO(); + List temps = uSaleoutQueryResponse.getChildrenvo(); + if (childrenVOBeans != null && temps != null) { + for (ModifyPruchaseinRequest.GeneralBillVOBean.ChildrenVOBean childrenVOBean : childrenVOBeans) { + for (int i = 0; i < temps.size(); i++) { + if (childrenVOBean.getCinventoryid().equals(temps.get(i).getInventory_code())) { +// childrenVOBean.setNprice(temps.get(i).getNsaleprice() + ""); +// childrenVOBean.setNoutnum(temps.get(i).getNoutnum() + ""); + childrenVOBean.setCrowno(temps.get(i).getCrowno()); + if (action.equals("ReturnWareHouseIn")) { + childrenVOBean.setNoutnum((-Integer.parseInt(childrenVOBean.getNoutnum())) + ""); + } + + } + + } + } + } + return childrenVOBeans; + } + + +} diff --git a/src/main/java/com/glxp/mipsdl/client/ygudplat/YgUdplatClient.java b/src/main/java/com/glxp/mipsdl/client/ygudplat/YgUdplatClient.java new file mode 100644 index 0000000..455a38a --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/client/ygudplat/YgUdplatClient.java @@ -0,0 +1,100 @@ +package com.glxp.mipsdl.client.ygudplat; + +import com.glxp.mipsdl.client.BaseHttpClient; +import com.glxp.mipsdl.req.base.*; +import com.glxp.mipsdl.req.post.PostFileThrOrderRequest; +import com.glxp.mipsdl.req.post.PostThrCorpRequest; +import com.glxp.mipsdl.req.post.PostThrInvProductsRequest; +import com.glxp.mipsdl.req.post.PostThrProductsRequest; +import com.glxp.mipsdl.res.BaseResponse; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; + +/** + * 阳光采购平台接口对接 + */ +@Slf4j +@Service(value = "100004HttpClient") //bean注册名称,使用编码 + HttpClient,文件接口加 FileClient +public class YgUdplatClient implements BaseHttpClient { + + + @Override + public BaseResponse getUnit(UdiwmsUnitRequest udiwmsUnitRequest) { + return null; + } + + @Override + public BaseResponse getProducts(UdiwmsProductRequest udiwmsProductRequest) { + return null; + } + + @Override + public BaseResponse getOrderTypes(UdiwmsBusTypeRequest udiwmsBusTypeRequest) { + return null; + } + + @Override + public BaseResponse getOrders(UdiwmsOrderQueryRequest udiwmsOrderQueryRequest) { + return null; + } + + @Override + public BaseResponse submitOrders(UdiwmsOrderRequest udiwmsOrderRequest) { + return null; + } + + @Override + public BaseResponse getInvProducts(UdiwmsInvProductsRequest udiwmsInvProductsRequest) { + return null; + } + + @Override + public BaseResponse getWarehouse(UdiwmsWarehouseRequest udiwmsWarehouseRequest) { + return null; + } + + @Override + public BaseResponse postProducts(PostThrProductsRequest postThrProductsRequest) { + return null; + } + + @Override + public BaseResponse postCorps(PostThrCorpRequest postThrCorpRequest) { + return null; + } + + @Override + public BaseResponse postOrderDetail(PostFileThrOrderRequest postFileThrOrderRequest) { + return null; + } + + @Override + public BaseResponse postInvProducts(PostThrInvProductsRequest postThrInvProductsRequest) { + return null; + } + + @Override + public BaseResponse testConnect() { + return null; + } + + @Override + public BaseResponse queryUdiInvProducts(UdiwmsQueryUdiInvProductsRequest queryUdiInvProductsRequest) { + return null; + } + + @Override + public BaseResponse submitProducts(UdiwmsAddProductsRequest udiwmsAddProductsRequest) { + return null; + } + + @Override + public BaseResponse submitUnit(UdiwmsAddUnitRequest udiwmsAddUnitRequest) { + return null; + } + + @Override + public BaseResponse submitPreInOrders(UdiwmsPreInOrderRequest udiwmsPreInOrderRequest) { + return null; + } +} diff --git a/src/main/java/com/glxp/mipsdl/client/yxzyy/YxzyyClient.java b/src/main/java/com/glxp/mipsdl/client/yxzyy/YxzyyClient.java new file mode 100644 index 0000000..d4a8674 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/client/yxzyy/YxzyyClient.java @@ -0,0 +1,337 @@ +package com.glxp.mipsdl.client.yxzyy; + +import cn.hutool.core.bean.BeanUtil; +import cn.hutool.core.util.StrUtil; +import com.alibaba.fastjson2.JSONObject; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.glxp.mipsdl.client.BaseHttpClient; +import com.glxp.mipsdl.config.ThirdSysConfig; +import com.glxp.mipsdl.constant.ConstantType; +import com.glxp.mipsdl.constant.Constants; +import com.glxp.mipsdl.dao.auth.AuthWarehouseDao; +import com.glxp.mipsdl.dao.basic.BasicBussinessTypeDao; +import com.glxp.mipsdl.dao.basic.BasicCorpDao; +import com.glxp.mipsdl.dao.inout.IoCodeDao; +import com.glxp.mipsdl.dao.inout.IoOrderDao; +import com.glxp.mipsdl.dao.inout.IoOrderDetailBizDao; +import com.glxp.mipsdl.dao.thrsys.ThrBustypeOriginDao; +import com.glxp.mipsdl.dao.thrsys.ThrInvWarehouseDao; +import com.glxp.mipsdl.dao.thrsys.ThrSystemBusApiDao; +import com.glxp.mipsdl.entity.auth.AuthWarehouseEntity; +import com.glxp.mipsdl.entity.basic.BasicBussinessTypeEntity; +import com.glxp.mipsdl.entity.inout.IoCodeEntity; +import com.glxp.mipsdl.entity.inout.IoOrderDetailBizEntity; +import com.glxp.mipsdl.entity.inout.IoOrderEntity; +import com.glxp.mipsdl.entity.thrsys.ThrCorpEntity; +import com.glxp.mipsdl.entity.thrsys.ThrInvWarehouseEntity; +import com.glxp.mipsdl.entity.thrsys.ThrSystemBusApiEntity; +import com.glxp.mipsdl.http.HttpClient; +import com.glxp.mipsdl.req.base.*; +import com.glxp.mipsdl.req.dsxyy.DsOrderRequest; +import com.glxp.mipsdl.req.post.PostFileThrOrderRequest; +import com.glxp.mipsdl.req.post.PostThrCorpRequest; +import com.glxp.mipsdl.req.post.PostThrInvProductsRequest; +import com.glxp.mipsdl.req.post.PostThrProductsRequest; +import com.glxp.mipsdl.req.yxzyy.YxBusTypeRequest; +import com.glxp.mipsdl.req.yxzyy.YxProductRequest; +import com.glxp.mipsdl.req.yxzyy.YxUnitRequest; +import com.glxp.mipsdl.res.BaseResponse; +import com.glxp.mipsdl.service.auth.AuthWarehouseService; +import com.glxp.mipsdl.service.thrsys.ThrCorpService; +import com.glxp.mipsdl.service.thrsys.ThrSystemDetailService; +import com.glxp.mipsdl.util.DateUtil; +import com.glxp.mipsdl.util.DictUtl; +import com.glxp.mipsdl.util.ResultVOUtils; +import com.glxp.mipsdl.util.SubmitOrderUtil; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/** + * 云霄中医院物资系统对接接口实现 + */ +@Slf4j +@Service(value = "100007HttpClient") //bean注册名称,使用编码 + HttpClient,文件接口加 FileClient +public class YxzyyClient implements BaseHttpClient { + + @Resource + private ThrSystemDetailService thrSystemDetailService; + @Resource + private HttpClient httpClient; + @Resource + private ThrBustypeOriginDao thrBustypeOriginDao; + @Resource + private IoOrderDao orderDao; + @Resource + private ThrSystemBusApiDao thrSystemBusApiDao; + @Resource + private BasicBussinessTypeDao basicBussinessTypeDao; + @Resource + private BasicCorpDao basicCorpDao; + @Resource + private IoCodeDao codeDao; + @Resource + private AuthWarehouseDao authWarehouseDao; + @Resource + private ThrInvWarehouseDao thrInvWarehouseDao; + @Resource + private AuthWarehouseService authWarehouseService; + @Resource + private ThirdSysConfig thirdSysConfig; + @Resource + private ThrCorpService thrCorpService; + @Resource + private IoOrderDetailBizDao orderDetailBizDao; + @Resource + private SubmitOrderUtil submitOrderUtil; + + @Override + public BaseResponse getUnit(UdiwmsUnitRequest udiwmsUnitRequest) { + YxUnitRequest yxUnitRequest = new YxUnitRequest(); + BeanUtil.copyProperties(udiwmsUnitRequest, yxUnitRequest); + String response = httpClient.postJson(thrSystemDetailService.getUrl(Constants.URL_NAME_CORP_URL), yxUnitRequest); + BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class); + return baseResponse; + } + + @Override + public BaseResponse getProducts(UdiwmsProductRequest udiwmsProductRequest) { + YxProductRequest yxProductRequest = new YxProductRequest(); + BeanUtil.copyProperties(udiwmsProductRequest, yxProductRequest); + String response = httpClient.postJson(thrSystemDetailService.getUrl(Constants.URL_NAME_PI_QUERY_URL), yxProductRequest); + BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class); + return baseResponse; + } + + @Override + public BaseResponse getOrderTypes(UdiwmsBusTypeRequest udiwmsBusTypeRequest) { + YxBusTypeRequest yxBusTypeRequest = new YxBusTypeRequest(); + BeanUtil.copyProperties(udiwmsBusTypeRequest, yxBusTypeRequest); + String response = httpClient.postJson(thrSystemDetailService.getUrl(Constants.URL_NAME_BUS_TYPE_QUERY_URL), yxBusTypeRequest); + BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class); + return baseResponse; + } + + @Override + public BaseResponse getOrders(UdiwmsOrderQueryRequest udiwmsOrderQueryRequest) { + if (StrUtil.isBlank(udiwmsOrderQueryRequest.getBillType())) { + return ResultVOUtils.error(500, "单据类型不能为空"); + } + //查询绑定的第三方单据类型 + String thirdAction = thrBustypeOriginDao.findThirdActionByBillType(udiwmsOrderQueryRequest.getBillType(), DictUtl.CURRENT_HOSP_CODE); + udiwmsOrderQueryRequest.setBillType(thirdAction); + String response = httpClient.postJson(thrSystemDetailService.getUrl(Constants.URL_NAME_ORDER_QUERY_URL), udiwmsOrderQueryRequest); + BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class); + return baseResponse; + } + + @Override + public BaseResponse submitOrders(UdiwmsOrderRequest udiwmsOrderRequest) { + if (StrUtil.isBlank(udiwmsOrderRequest.getBillNo())) { + return ResultVOUtils.error(500, "单据号不能为空"); + } + + DsOrderRequest dsOrderRequest = new DsOrderRequest(); + BeanUtil.copyProperties(udiwmsOrderRequest, dsOrderRequest); + + //查询单据和详情信息,组装第三方系统接口参数 + IoOrderEntity orderEntity = orderDao.selectOne(new QueryWrapper().eq("billNo", udiwmsOrderRequest.getBillNo())); + + dsOrderRequest.setBillDate(DateUtil.formatDateTime(orderEntity.getCreateTime())); + //查询对应的第三方单据类型 + ThrSystemBusApiEntity thrSystemBusApiEntity = thrSystemBusApiDao.selectOne(new QueryWrapper().eq("code", udiwmsOrderRequest.getBillType())); + if (StrUtil.isBlank(thrSystemBusApiEntity.getUrl())) { + return ResultVOUtils.error(500, "接口未配置,无法提交!"); + } + + dsOrderRequest.setBillType(thrSystemBusApiEntity.getThirdBuyCode()); + + //查询单据类型,设置往来单位信息 + BasicBussinessTypeEntity basicBussinessTypeEntity = basicBussinessTypeDao.selectByAction(udiwmsOrderRequest.getBillType()); + if (basicBussinessTypeEntity.getCorpType().equals(Constants.CORP_HOSPTIAL)) { + //医院客户 + dsOrderRequest.setCorpId(orderEntity.getFromCorp()); + //查询客户名称 + String corpName = basicCorpDao.selectNameByErpId(orderEntity.getFromCorp()); + dsOrderRequest.setCorpName(corpName); + } else if (basicBussinessTypeEntity.getCorpType().equals(Constants.CORP_INTTERNAL)) { + //内部科室 + AuthWarehouseEntity warehouseEntity = authWarehouseDao.selectOne(new QueryWrapper().eq("code", udiwmsOrderRequest.getCorpId())); + try { + //根据第三方系统标识,获取对应字段的值 + ThrInvWarehouseEntity thrInvWarehouseEntity = thrInvWarehouseDao.selectOne(new QueryWrapper() + .eq("code", authWarehouseService.getThirdInvCode(warehouseEntity)) + .eq("thirdSys", thirdSysConfig.getThirdId())); + + dsOrderRequest.setCorpId(thrInvWarehouseEntity.getCode()); + dsOrderRequest.setCorpName(thrInvWarehouseEntity.getName()); + } catch (Exception e) { + log.error("查询单据对应往来单位的第三方仓库信息异常", e); + } + } else if (basicBussinessTypeEntity.getCorpType().equals(Constants.CORP_SP)) { + //供应商 + ThrCorpEntity thrCorp = thrCorpService.getThrCorp(udiwmsOrderRequest.getCorpId()); + if (null != thrCorp) { + dsOrderRequest.setCorpId(thrCorp.getUnitId()); + dsOrderRequest.setCorpName(thrCorp.getName()); + } else { + log.error("查询单据对应的第三方往来单位信息异常"); + } + } + + //查询仓库信息 + AuthWarehouseEntity warehouseEntity = authWarehouseDao.selectOne(new QueryWrapper().eq("code", orderEntity.getInvCode())); + try { + ThrInvWarehouseEntity thrInvWarehouseEntity = thrInvWarehouseDao.selectOne(new QueryWrapper() + .eq("code", authWarehouseService.getThirdInvCode(warehouseEntity)) + .eq("thirdSys", thirdSysConfig.getThirdId())); + + dsOrderRequest.setLocInvCode(thrInvWarehouseEntity.getCode()); + dsOrderRequest.setLocInvName(thrInvWarehouseEntity.getName()); + + dsOrderRequest.setLocStorageCode(thrInvWarehouseEntity.getCode()); + dsOrderRequest.setLocStorageName(thrInvWarehouseEntity.getName()); + } catch (Exception e) { + log.info("查询第三方系统仓库信息异常", e); + } + + if (StrUtil.nullToEmpty(thrSystemBusApiEntity.getUrl()).equals("useOut")) { + dsOrderRequest.setCorpId(dsOrderRequest.getLocStorageCode()); + dsOrderRequest.setCorpName(dsOrderRequest.getLocStorageName()); + + ThrInvWarehouseEntity thrInvWarehouseEntity = thrInvWarehouseDao.selectOne(new QueryWrapper().eq("code", "29").eq("thirdSysFk", thirdSysConfig.getThirdId())); + dsOrderRequest.setLocStorageCode("29"); + dsOrderRequest.setLocStorageName(thrInvWarehouseEntity.getName()); + } + + dsOrderRequest.setBillFlag("1"); + //设置单据出入库类型 + if (basicBussinessTypeEntity.getMainAction().equals(ConstantType.TYPE_PUT)) { + dsOrderRequest.setInoutType(1); //入库 + } else if (basicBussinessTypeEntity.getMainAction().equals(ConstantType.TYPE_OUT)) { + dsOrderRequest.setInoutType(2); //出库 + } + + dsOrderRequest.setRemark("udi管理系统提交单据"); + + //组装单据明细数据 + List ioCodeEntities = codeDao.selectList(new QueryWrapper() + .eq("orderId", orderEntity.getBillNo()) + .ne("action", "StockCheck") + ); + + List items = new ArrayList<>(); + //查询业务单据详情 + List detailBizEntities = orderDetailBizDao.selectList(new QueryWrapper().eq("orderIdFk", orderEntity.getBillNo())); + + + setOrderDetailList(ioCodeEntities, items, detailBizEntities); + + Collections.reverse(items); + + //云霄使用items字段,其他医院使用item字段 + dsOrderRequest.setItems(items); + + return submitOrderUtil.submitOrder(orderEntity, dsOrderRequest); + } + + /** + * 封装单据详情参数 + * + * @param ioCodeEntities 单据码明细 + * @param orderDetailRequests 单据详情参数 + * @param detailBizEntities 单据业务详情 + */ + private void setOrderDetailList(List ioCodeEntities, List orderDetailRequests, List detailBizEntities) { + for (IoOrderDetailBizEntity detailBizEntity : detailBizEntities) { + UdiwmsOrderDetailRequest item = submitOrderUtil.buildProductInfo(detailBizEntity); + + //封装条码信息 + submitOrderUtil.setCodeList(ioCodeEntities, detailBizEntity, item); + orderDetailRequests.add(item); + } + } + + @Override + public BaseResponse getInvProducts(UdiwmsInvProductsRequest udiwmsInvProductsRequest) { + String response = httpClient.postJson(thrSystemDetailService.getUrl(Constants.URL_NAME_INV_PI_URL), udiwmsInvProductsRequest); + BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class); + return baseResponse; + } + + @Override + public BaseResponse getWarehouse(UdiwmsWarehouseRequest udiwmsWarehouseRequest) { + String response = httpClient.postJson(thrSystemDetailService.getUrl(Constants.URL_NAME_WAREHOUSE_QUERY_URL), udiwmsWarehouseRequest); + BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class); + return baseResponse; + } + + @Override + public BaseResponse postProducts(PostThrProductsRequest postThrProductsRequest) { + postThrProductsRequest.setUploadType("文件导入"); + String response = httpClient.postUDIWMSJson(thirdSysConfig.getPostPiUrl(), postThrProductsRequest); + BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class); + return baseResponse; + } + + @Override + public BaseResponse postCorps(PostThrCorpRequest postThrCorpRequest) { + postThrCorpRequest.setUploadType("文件导入"); + String response = httpClient.postUDIWMSJson(thirdSysConfig.getPostCorpUrl(), postThrCorpRequest); + BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class); + return baseResponse; + } + + @Override + public BaseResponse postOrderDetail(PostFileThrOrderRequest postFileThrOrderRequest) { + postFileThrOrderRequest.setUploadType("文件导入"); + String response = httpClient.postUDIWMSJson(thirdSysConfig.getPostOrderUrl(), postFileThrOrderRequest); + BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class); + return baseResponse; + } + + @Override + public BaseResponse postInvProducts(PostThrInvProductsRequest postThrInvProductsRequest) { + String response = httpClient.postUDIWMSJson(thirdSysConfig.getPostInvPiUrl(), postThrInvProductsRequest); + BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class); + return baseResponse; + } + + @Override + public BaseResponse testConnect() { + UdiwmsUnitRequest udiwmsUnitRequest = new UdiwmsUnitRequest(); + udiwmsUnitRequest.setPage(1); + udiwmsUnitRequest.setLimit(1); + BaseResponse baseResponse = getUnit(udiwmsUnitRequest); + if (baseResponse.getCode() == 20000) { + return ResultVOUtils.success("连接成功"); + } + return ResultVOUtils.error(500, "连接失败!"); + } + + @Override + public BaseResponse queryUdiInvProducts(UdiwmsQueryUdiInvProductsRequest queryUdiInvProductsRequest) { + String response = httpClient.postUDIWMSJson(thirdSysConfig.getQueryInvUrl(), queryUdiInvProductsRequest); + BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class); + return baseResponse; + } + + @Override + public BaseResponse submitProducts(UdiwmsAddProductsRequest udiwmsAddProductsRequest) { + return null; + } + + @Override + public BaseResponse submitUnit(UdiwmsAddUnitRequest udiwmsAddUnitRequest) { + return null; + } + + @Override + public BaseResponse submitPreInOrders(UdiwmsPreInOrderRequest udiwmsPreInOrderRequest) { + return null; + } +} diff --git a/src/main/java/com/glxp/mipsdl/client/yxzyy/YxzyyFileClient.java b/src/main/java/com/glxp/mipsdl/client/yxzyy/YxzyyFileClient.java new file mode 100644 index 0000000..5320a5d --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/client/yxzyy/YxzyyFileClient.java @@ -0,0 +1,88 @@ +package com.glxp.mipsdl.client.yxzyy; + +import cn.hutool.core.thread.ThreadUtil; +import com.glxp.mipsdl.client.BaseFileClient; +import com.glxp.mipsdl.req.post.PostThrProductsRequest; +import com.glxp.mipsdl.res.BaseResponse; +import com.glxp.mipsdl.res.udiwms.UdiwmsProductInfoResponse; +import com.glxp.mipsdl.service.file.UdiInfoUploadService; +import com.glxp.mipsdl.util.ExcelUtil; +import com.glxp.mipsdl.util.ExecutorUtil; +import com.glxp.mipsdl.util.ResultVOUtils; +import com.glxp.mipsdl.vo.file.yxzyy.YxzyyProductEntity; +import lombok.extern.slf4j.Slf4j; +import org.springframework.beans.BeanUtils; +import org.springframework.stereotype.Service; +import org.springframework.web.multipart.MultipartFile; + +import javax.annotation.Resource; +import java.io.IOException; +import java.io.InputStream; +import java.util.ArrayList; +import java.util.List; + +/** + * 云霄中医院文件接口 + */ +@Slf4j +@Service +public class YxzyyFileClient implements BaseFileClient { + + @Resource + private UdiInfoUploadService udiInfoUploadService; + @Resource + private ExecutorUtil executorUtil; + + @Override + public BaseResponse uploadPi(List files, String thirdSys) { + for (int i = 0; i < files.size(); i++) { + MultipartFile file = files.get(i); + if (file.isEmpty()) { + return ResultVOUtils.error(500, "上传第" + (i++) + "个文件失败"); + } + try { + InputStream inputStream = file.getInputStream(); + ExcelUtil util = new ExcelUtil(YxzyyProductEntity.class); + List yxzyyProductEntities = util.importExcel("耗材目录表", inputStream); + List udiwmsProductInfoResponses = new ArrayList<>(); + for (YxzyyProductEntity yxzyyProductEntity : yxzyyProductEntities) { + UdiwmsProductInfoResponse udiwmsProductInfoResponse = new UdiwmsProductInfoResponse(); + BeanUtils.copyProperties(yxzyyProductEntity, udiwmsProductInfoResponse); + //合并材料规格和材料型号两列数据为规格型号 + udiwmsProductInfoResponse.setSpec(yxzyyProductEntity.getSpec() + yxzyyProductEntity.getModel()); + udiwmsProductInfoResponses.add(udiwmsProductInfoResponse); + } + PostThrProductsRequest postThrProductsRequest = new PostThrProductsRequest(); + postThrProductsRequest.setDatas(udiwmsProductInfoResponses); + postThrProductsRequest.setUploadType("文件导入"); + postThrProductsRequest.setThirdSys(thirdSys); + executorUtil.getUploadExecutor().execute(ThreadUtil.newThread(() -> { + udiInfoUploadService.postProducts(postThrProductsRequest); + }, "uploadPi")); + log.error("上传完" + System.currentTimeMillis()); + } catch (IOException e) { + log.error("解析产品信息excel文件IO异常,异常信息:{}", e); + return ResultVOUtils.error(500, "数据异常"); + } catch (Exception e) { + log.error("处理产品信息excel文件异常,异常信息:{}", e); + return ResultVOUtils.error(500, "数据异常"); + } + } + return ResultVOUtils.success("文件解析成功,正在上传,请稍后刷新查看"); + } + + @Override + public BaseResponse uploadCorps(List files, String thirdSys) { + return ResultVOUtils.error(500, "暂不支持往来单位上传!"); + } + + @Override + public BaseResponse uploadInvPi(List files, String thirdSys) { + return ResultVOUtils.error(500, "暂不支持库存产品信息上传!"); + } + + @Override + public BaseResponse uploadOrders(List files, String thirdSys) { + return ResultVOUtils.error(500, "暂不支持业务单据上传!"); + } +} diff --git a/src/main/java/com/glxp/mipsdl/client/zaxyy/ZaxyyClient.java b/src/main/java/com/glxp/mipsdl/client/zaxyy/ZaxyyClient.java new file mode 100644 index 0000000..3f09778 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/client/zaxyy/ZaxyyClient.java @@ -0,0 +1,543 @@ +package com.glxp.mipsdl.client.zaxyy; + +import cn.hutool.core.bean.BeanUtil; +import cn.hutool.core.collection.CollUtil; +import cn.hutool.core.util.StrUtil; +import cn.hutool.json.JSONUtil; +import com.alibaba.fastjson2.JSONObject; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.glxp.mipsdl.client.BaseHttpClient; +import com.glxp.mipsdl.config.ThirdSysConfig; +import com.glxp.mipsdl.constant.ConstantType; +import com.glxp.mipsdl.constant.Constants; +import com.glxp.mipsdl.dao.auth.AuthUserDao; +import com.glxp.mipsdl.dao.auth.AuthWarehouseDao; +import com.glxp.mipsdl.dao.basic.BasicBussinessTypeDao; +import com.glxp.mipsdl.dao.basic.BasicCorpDao; +import com.glxp.mipsdl.dao.inout.IoCodeDao; +import com.glxp.mipsdl.dao.inout.IoOrderDao; +import com.glxp.mipsdl.dao.inout.IoOrderDetailBizDao; +import com.glxp.mipsdl.dao.inout.IoOrderUploadLogDao; +import com.glxp.mipsdl.dao.thrsys.ThrInvWarehouseDao; +import com.glxp.mipsdl.dao.thrsys.ThrSystemBusApiDao; +import com.glxp.mipsdl.entity.auth.AuthUserEntity; +import com.glxp.mipsdl.entity.auth.AuthWarehouseEntity; +import com.glxp.mipsdl.entity.basic.BasicBussinessTypeEntity; +import com.glxp.mipsdl.entity.inout.IoCodeEntity; +import com.glxp.mipsdl.entity.inout.IoOrderDetailBizEntity; +import com.glxp.mipsdl.entity.inout.IoOrderEntity; +import com.glxp.mipsdl.entity.inout.IoOrderUploadLogEntity; +import com.glxp.mipsdl.entity.thrsys.ThrCorpEntity; +import com.glxp.mipsdl.entity.thrsys.ThrInvWarehouseEntity; +import com.glxp.mipsdl.entity.thrsys.ThrSystemBusApiEntity; +import com.glxp.mipsdl.http.HttpClient; +import com.glxp.mipsdl.req.base.*; +import com.glxp.mipsdl.req.post.PostFileThrOrderRequest; +import com.glxp.mipsdl.req.post.PostThrCorpRequest; +import com.glxp.mipsdl.req.post.PostThrInvProductsRequest; +import com.glxp.mipsdl.req.post.PostThrProductsRequest; +import com.glxp.mipsdl.req.zaxyy.ZaZyRequest; +import com.glxp.mipsdl.req.zaxyy.ZaxzyyOrderRequest; +import com.glxp.mipsdl.res.BaseResponse; +import com.glxp.mipsdl.service.auth.AuthWarehouseService; +import com.glxp.mipsdl.service.thrsys.ThrCorpService; +import com.glxp.mipsdl.service.thrsys.ThrSystemDetailService; +import com.glxp.mipsdl.util.DateUtil; +import com.glxp.mipsdl.util.ResultVOUtils; +import com.glxp.mipsdl.util.SubmitOrderUtil; +import lombok.extern.slf4j.Slf4j; +import org.dom4j.Document; +import org.dom4j.DocumentException; +import org.dom4j.DocumentHelper; +import org.springframework.beans.BeanUtils; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +/** + * 诏安县医院,智业V1接口对接 + */ +@Slf4j +@Service(value = "100003HttpClient") //bean注册名称,使用编码 + HttpClient,文件接口加 FileClient +public class ZaxyyClient implements BaseHttpClient { + + @Resource + private ThrSystemDetailService thrSystemDetailService; + @Resource + private HttpClient httpClient; + @Resource + private IoOrderDao orderDao; + @Resource + private ThrSystemBusApiDao thrSystemBusApiDao; + @Resource + private AuthUserDao authUserDao; + @Resource + private BasicBussinessTypeDao basicBussinessTypeDao; + @Resource + private BasicCorpDao basicCorpDao; + @Resource + private IoCodeDao codeDao; + @Resource + private AuthWarehouseDao authWarehouseDao; + @Resource + private ThrInvWarehouseDao thrInvWarehouseDao; + @Resource + private AuthWarehouseService authWarehouseService; + @Resource + private ThirdSysConfig thirdSysConfig; + @Resource + private ThrCorpService thrCorpService; + @Resource + private IoOrderDetailBizDao orderDetailBizDao; + @Resource + private IoOrderUploadLogDao orderUploadLogDao; + @Resource + private SubmitOrderUtil submitOrderUtil; + + + /** + * 拼接xml请求头 + * + * @param methodName 方法名 + * @return + */ + public String getMsgHeader(String methodName) { + return "" + + "" + + "" + + methodName + + "" + + ""; + } + + public String parserResult(String response) { + if (response.contains("().eq("billNo", udiwmsOrderRequest.getBillNo())); + + zaxzyyOrderRequest.setBillDate(DateUtil.formatDateTime(orderEntity.getCreateTime())); + //查询对应的第三方单据类型 + ThrSystemBusApiEntity thrSystemBusApiEntity = thrSystemBusApiDao.selectOne(new QueryWrapper().eq("code", udiwmsOrderRequest.getBillType())); + if (StrUtil.isBlank(thrSystemBusApiEntity.getUrl())) { + return ResultVOUtils.error(500, "接口未配置,无法提交!"); + } + + Integer userId; + if (orderEntity.getReviewUser() != null) { + userId = Integer.valueOf(orderEntity.getReviewUser()); + } else { + userId = Integer.valueOf(orderEntity.getCreateUser()); + } + AuthUserEntity authUser = authUserDao.selectById(userId); + zaxzyyOrderRequest.setThirdSys(authUser.getEmployeeName()); + zaxzyyOrderRequest.setBillType(thrSystemBusApiEntity.getThirdBuyCode()); + zaxzyyOrderRequest.setBillFlag("1"); + + //查询单据类型 + BasicBussinessTypeEntity basicBussinessTypeEntity = basicBussinessTypeDao.selectByAction(udiwmsOrderRequest.getBillType()); + if (basicBussinessTypeEntity.getCorpType().equals(Constants.CORP_HOSPTIAL)) { + //医院客户 + zaxzyyOrderRequest.setCorpId(orderEntity.getFromCorp()); + //查询客户名称 + String corpName = basicCorpDao.selectNameByErpId(orderEntity.getFromCorp()); + zaxzyyOrderRequest.setCorpName(corpName); + } else if (basicBussinessTypeEntity.getCorpType().equals(Constants.CORP_INTTERNAL)) { + //内部科室 + AuthWarehouseEntity warehouseEntity = authWarehouseDao.selectOne(new QueryWrapper().eq("code", udiwmsOrderRequest.getCorpId())); + try { + //根据第三方系统标识,获取对应字段的值 + ThrInvWarehouseEntity thrInvWarehouseEntity = thrInvWarehouseDao.selectOne(new QueryWrapper() + .eq("code", authWarehouseService.getThirdInvCode(warehouseEntity)) + .eq("thirdSys", thirdSysConfig.getThirdId())); + + zaxzyyOrderRequest.setCorpId(thrInvWarehouseEntity.getCode()); + zaxzyyOrderRequest.setCorpName(thrInvWarehouseEntity.getName()); + } catch (Exception e) { + log.error("查询单据对应往来单位的第三方仓库信息异常", e); + } + } else if (basicBussinessTypeEntity.getCorpType().equals(Constants.CORP_SP)) { + //供应商 + ThrCorpEntity thrCorp = thrCorpService.getThrCorp(udiwmsOrderRequest.getCorpId()); + if (null != thrCorp) { + zaxzyyOrderRequest.setCorpId(thrCorp.getUnitId()); + zaxzyyOrderRequest.setCorpName(thrCorp.getName()); + } else { + log.error("查询单据对应的第三方往来单位信息异常"); + } + } + + //查询仓库信息 + AuthWarehouseEntity warehouseEntity = authWarehouseDao.selectOne(new QueryWrapper().eq("code", orderEntity.getInvCode())); + try { + ThrInvWarehouseEntity thrInvWarehouseEntity = thrInvWarehouseDao.selectOne(new QueryWrapper() + .eq("code", authWarehouseService.getThirdInvCode(warehouseEntity)) + .eq("thirdSys", thirdSysConfig.getThirdId())); + + zaxzyyOrderRequest.setLocInvCode(thrInvWarehouseEntity.getCode()); + zaxzyyOrderRequest.setLocInvName(thrInvWarehouseEntity.getName()); + + zaxzyyOrderRequest.setLocStorageCode(thrInvWarehouseEntity.getCode()); + zaxzyyOrderRequest.setLocStorageName(thrInvWarehouseEntity.getName()); + } catch (Exception e) { + log.info("查询第三方系统仓库信息异常", e); + } + + //设置单据出入库类型 + if (basicBussinessTypeEntity.getMainAction().equals(ConstantType.TYPE_PUT)) { + zaxzyyOrderRequest.setInoutType(1); //入库 + } else if (basicBussinessTypeEntity.getMainAction().equals(ConstantType.TYPE_OUT)) { + zaxzyyOrderRequest.setInoutType(2); //出库 + } + + //设置备注信息 + zaxzyyOrderRequest.setRemark("udi管理系统提交单据"); + + //组装单据明细数据 + List ioCodeEntities = codeDao.selectList(new QueryWrapper() + .eq("orderId", orderEntity.getBillNo()) + .ne("action", "StockCheck") + ); + + List items = new ArrayList<>(); + //查询业务单据详情 + List detailBizEntities = orderDetailBizDao.selectList(new QueryWrapper().eq("orderIdFk", orderEntity.getBillNo())); + setOrderDetailList(ioCodeEntities, items, detailBizEntities); + + zaxzyyOrderRequest.setItem(items); + + //构造诏安接口参数 + ZaZyRequest zaZyRequest = new ZaZyRequest(); + + //提交到第三方系统 + if (thrSystemBusApiEntity.getUrl().equals("saveMasterialInput")) { + //采购入库单据 + zaZyRequest.setMsgHeader(getMsgHeader("saveMasterialInput")); + String key = "orderSubmitUrl"; + zaZyRequest.setMsgBody(JSONUtil.toJsonStr(zaxzyyOrderRequest)); + } else if (thrSystemBusApiEntity.getUrl().equals("saveMaterialHight")) { + zaxzyyOrderRequest.setLocStorageCode("1001304"); + zaxzyyOrderRequest.setLocStorageName("骨科耗材及试剂仓库"); + //临床出库 + zaZyRequest.setMsgHeader(getMsgHeader("saveMaterialHight")); + String key = "preInOrderSubmit"; + + UdiwmsPreInOrderRequest udiwmsPreInOrderRequest = submitPreInOrderToThirdSys(zaxzyyOrderRequest, orderEntity); + zaZyRequest.setMsgBody(JSONUtil.toJsonStr(udiwmsPreInOrderRequest)); + } + + return submitOrder(orderEntity, zaZyRequest); + + } + + /** + * 处理提交单据,记录日志,解析结果逻辑 + * + * @param orderEntity + * @param zaZyRequest + * @return + */ + private BaseResponse submitOrder(IoOrderEntity orderEntity, ZaZyRequest zaZyRequest) { + //记录日志 + IoOrderUploadLogEntity uploadLog = new IoOrderUploadLogEntity(); + uploadLog.setBillDate(orderEntity.getCreateTime()); + uploadLog.setBillType(orderEntity.getAction()); + uploadLog.setSubmitTime(new Date()); + uploadLog.setBillNo(orderEntity.getBillNo()); + uploadLog.setFromType(Constants.THIRD_ORDER_UPLOAD); + String response = httpClient.postJson(thrSystemDetailService.getUrl(Constants.URL_NAME_ORDER_SUBMIT_URL), zaZyRequest); + response = parserResult(response); + if (StrUtil.isNotBlank(response)) { + try { + BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class); + if (baseResponse.getCode() == 20000) { + String thirdBillNo = String.valueOf(baseResponse.getData()); + orderEntity.setThirdBillNo(thirdBillNo); + uploadLog.setStatus(2); + uploadLog.setThrBillNo(thirdBillNo); + uploadLog.setResult("提交成功"); + orderDao.updateById(orderEntity); + orderUploadLogDao.insert(uploadLog); + return ResultVOUtils.success("提交成功"); + } + uploadLog.setStatus(3); + uploadLog.setResult("提交失败,错误信息:" + baseResponse.getMessage()); + orderUploadLogDao.insert(uploadLog); + return baseResponse; + } catch (Exception e) { + log.error("解析提交到智业单据返回结果异常,结果信息:{}", response); + log.error("异常信息:{}", e); + uploadLog.setStatus(3); + uploadLog.setResult("提交失败,错误信息:" + response); + orderUploadLogDao.insert(uploadLog); + return ResultVOUtils.error(500, "提交失败"); + } + } else { + uploadLog.setStatus(3); + uploadLog.setResult("提交失败,调用接口返回为空"); + orderUploadLogDao.insert(uploadLog); + return ResultVOUtils.error(500, "提交失败"); + } + } + + /** + * 封装单据详情参数 + * + * @param ioCodeEntities 单据码明细 + * @param orderDetailRequests 单据详情参数 + * @param detailBizEntities 单据业务详情 + */ + private void setOrderDetailList(List ioCodeEntities, List orderDetailRequests, List detailBizEntities) { + for (IoOrderDetailBizEntity detailBizEntity : detailBizEntities) { + UdiwmsOrderDetailRequest item = submitOrderUtil.buildProductInfo(detailBizEntity); + + //封装条码信息 + submitOrderUtil.setCodeList(ioCodeEntities, detailBizEntity, item); + + orderDetailRequests.add(item); + } + } + + @Override + public BaseResponse getInvProducts(UdiwmsInvProductsRequest udiwmsInvProductsRequest) { + ZaZyRequest zaZyRequest = new ZaZyRequest(); + zaZyRequest.setMsgHeader(getMsgHeader("getMaterialStorage")); + zaZyRequest.setMsgBody(JSONUtil.toJsonStr(udiwmsInvProductsRequest)); + String response = httpClient.postJson(thrSystemDetailService.getUrl(Constants.URL_NAME_INV_PI_URL), zaZyRequest); + response = parserResult(response); + try { + BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class); + return baseResponse; + } catch (Exception e) { + log.error("解析诏安智业接口返回库存产品数据异常,返回结果:{}", response); + log.error("异常信息:{}", e); + return ResultVOUtils.error(500, "网络错误,或远程服务器异常无法返回正确结果(" + response + ")"); + } + } + + @Override + public BaseResponse getWarehouse(UdiwmsWarehouseRequest udiwmsWarehouseRequest) { + ZaZyRequest zaZyRequest = new ZaZyRequest(); + zaZyRequest.setMsgHeader(getMsgHeader("getMaterialDept")); + zaZyRequest.setMsgBody(JSONUtil.toJsonStr(udiwmsWarehouseRequest)); + String response = httpClient.postJson(thrSystemDetailService.getUrl(Constants.URL_NAME_WAREHOUSE_QUERY_URL), zaZyRequest); + response = parserResult(response); + try { + BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class); + return baseResponse; + } catch (Exception e) { + log.error("解析诏安智业接口返回仓库(科室)数据异常,返回结果:{}", response); + log.error("异常信息:{}", e); + return ResultVOUtils.error(500, "网络错误,或远程服务器异常无法返回正确结果(" + response + ")"); + } + } + + @Override + public BaseResponse postProducts(PostThrProductsRequest postThrProductsRequest) { + postThrProductsRequest.setUploadType("文件导入"); + String response = httpClient.postUDIWMSJson(thirdSysConfig.getPostPiUrl(), postThrProductsRequest); + BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class); + return baseResponse; + } + + @Override + public BaseResponse postCorps(PostThrCorpRequest postThrCorpRequest) { + postThrCorpRequest.setUploadType("文件导入"); + String response = httpClient.postUDIWMSJson(thirdSysConfig.getPostCorpUrl(), postThrCorpRequest); + BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class); + return baseResponse; + } + + @Override + public BaseResponse postOrderDetail(PostFileThrOrderRequest postFileThrOrderRequest) { + postFileThrOrderRequest.setUploadType("文件导入"); + String response = httpClient.postUDIWMSJson(thirdSysConfig.getPostOrderUrl(), postFileThrOrderRequest); + BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class); + return baseResponse; + } + + @Override + public BaseResponse postInvProducts(PostThrInvProductsRequest postThrInvProductsRequest) { + String response = httpClient.postUDIWMSJson(thirdSysConfig.getPostInvPiUrl(), postThrInvProductsRequest); + BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class); + return baseResponse; + } + + @Override + public BaseResponse testConnect() { + UdiwmsUnitRequest udiwmsUnitRequest = new UdiwmsUnitRequest(); + udiwmsUnitRequest.setPage(1); + udiwmsUnitRequest.setLimit(1); + BaseResponse baseResponse = getUnit(udiwmsUnitRequest); + if (baseResponse.getCode() == 20000) { + return ResultVOUtils.success("连接成功!"); + } + return ResultVOUtils.error(500, "连接失败!"); + } + + @Override + public BaseResponse queryUdiInvProducts(UdiwmsQueryUdiInvProductsRequest queryUdiInvProductsRequest) { + String response = httpClient.postUDIWMSJson(thirdSysConfig.getQueryInvUrl(), queryUdiInvProductsRequest); + BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class); + return baseResponse; + } + + @Override + public BaseResponse submitProducts(UdiwmsAddProductsRequest udiwmsAddProductsRequest) { + return null; + } + + @Override + public BaseResponse submitUnit(UdiwmsAddUnitRequest udiwmsAddUnitRequest) { + return null; + } + + @Override + public BaseResponse submitPreInOrders(UdiwmsPreInOrderRequest udiwmsPreInOrderRequest) { + ZaZyRequest zaZyRequest = new ZaZyRequest(); + zaZyRequest.setMsgHeader(getMsgHeader("saveMaterialHight")); + zaZyRequest.setMsgBody(JSONUtil.toJsonStr(udiwmsPreInOrderRequest)); + String response = httpClient.postJson(thrSystemDetailService.getUrl(Constants.URL_NAME_PRE_IN_ORDER_SUBMIT_URL), zaZyRequest); + response = parserResult(response); + try { + BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class); + return baseResponse; + } catch (Exception e) { + log.error("解析诏安智业接口提交单据返回数据异常,返回结果:{}", response); + log.error("异常信息:{}", e); + return ResultVOUtils.error(500, "网络错误,或远程服务器异常无法返回正确结果(" + response + ")"); + } + } + + + /** + * 转换提交单据参数 + * + * @param udiwmsOrderRequest + * @param orderEntity + * @return + */ + public UdiwmsPreInOrderRequest submitPreInOrderToThirdSys(ZaxzyyOrderRequest udiwmsOrderRequest, IoOrderEntity orderEntity) { + UdiwmsPreInOrderRequest udiwmsPreInOrderRequest = new UdiwmsPreInOrderRequest(); + if (udiwmsOrderRequest != null) { + BeanUtils.copyProperties(udiwmsOrderRequest, udiwmsPreInOrderRequest); + udiwmsPreInOrderRequest.setLocInvCode(udiwmsOrderRequest.getLocStorageCode()); + udiwmsPreInOrderRequest.setLocInvName(udiwmsOrderRequest.getLocStorageName()); + if (orderEntity.getReviewUser() != null) { + AuthUserEntity authUser = authUserDao.selectById(orderEntity.getReviewUser()); + udiwmsPreInOrderRequest.setActor(authUser.getEmployeeName()); + } else if (orderEntity.getCreateUser() != null) { + AuthUserEntity authUser = authUserDao.selectById(orderEntity.getCreateUser()); + udiwmsPreInOrderRequest.setActor(authUser.getEmployeeName()); + } + List itemDTOS = new ArrayList<>(); + if (CollUtil.isNotEmpty(udiwmsOrderRequest.getItem())) { + for (UdiwmsOrderDetailRequest udiwmsOrderDetail : udiwmsOrderRequest.getItem()) { + if (CollUtil.isNotEmpty(udiwmsOrderDetail.getCodeList())) { + for (UdiwmsOrderDetailRequest.CodeDetailEntity codeDetaiEntity : udiwmsOrderDetail.getCodeList()) { + UdiwmsPreInOrderRequest.ItemDTO itemDTO = new UdiwmsPreInOrderRequest.ItemDTO(); + BeanUtils.copyProperties(udiwmsOrderDetail, itemDTO); + itemDTO.setCode(codeDetaiEntity.getCode()); + itemDTO.setCount(codeDetaiEntity.getCount()); + itemDTOS.add(itemDTO); + + } + } + } + } + udiwmsPreInOrderRequest.setItems(itemDTOS); + } + return udiwmsPreInOrderRequest; + } + +} diff --git a/src/main/java/com/glxp/mipsdl/client/zaxyy/ZazyyFileClient.java b/src/main/java/com/glxp/mipsdl/client/zaxyy/ZazyyFileClient.java new file mode 100644 index 0000000..e7d1eb6 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/client/zaxyy/ZazyyFileClient.java @@ -0,0 +1,162 @@ +package com.glxp.mipsdl.client.zaxyy; + +import cn.hutool.core.thread.ThreadUtil; +import com.glxp.mipsdl.client.BaseFileClient; +import com.glxp.mipsdl.req.post.PostThrCorpRequest; +import com.glxp.mipsdl.req.post.PostThrProductsRequest; +import com.glxp.mipsdl.res.BaseResponse; +import com.glxp.mipsdl.res.udiwms.UdiwmsProductInfoResponse; +import com.glxp.mipsdl.res.udiwms.UdiwmsUnitResponse; +import com.glxp.mipsdl.service.file.UdiInfoUploadService; +import com.glxp.mipsdl.util.ExcelUtil; +import com.glxp.mipsdl.util.ExecutorUtil; +import com.glxp.mipsdl.util.ResultVOUtils; +import com.glxp.mipsdl.vo.file.zazyy.ZyCorpEntity; +import com.glxp.mipsdl.vo.file.zazyy.ZyProductEntity; +import lombok.extern.slf4j.Slf4j; +import org.apache.poi.ss.usermodel.CellType; +import org.apache.poi.ss.usermodel.Row; +import org.springframework.beans.BeanUtils; +import org.springframework.stereotype.Service; +import org.springframework.web.multipart.MultipartFile; + +import javax.annotation.Resource; +import java.io.IOException; +import java.io.InputStream; +import java.util.ArrayList; +import java.util.List; + +/** + * 诏安,职业V1文件规范 + */ +@Slf4j +@Service +public class ZazyyFileClient implements BaseFileClient { + + @Resource + private UdiInfoUploadService udiInfoUploadService; + @Resource + private ExecutorUtil executorUtil; + + @Override + public BaseResponse uploadPi(List files, String thirdSys) { + for (int i = 0; i < files.size(); i++) { + MultipartFile file = files.get(i); + if (file.isEmpty()) { + return ResultVOUtils.error(500, "上传第" + (i++) + "个文件失败"); + } + try { + InputStream inputStream = file.getInputStream(); + ExcelUtil util = new ExcelUtil(ZyProductEntity.class); + List zyProductEntities = util.importExcel(inputStream); + List udiwmsProductInfoResponses = new ArrayList<>(); + for (ZyProductEntity zyProductEntity : zyProductEntities) { + UdiwmsProductInfoResponse udiwmsProductInfoResponse = new UdiwmsProductInfoResponse(); + BeanUtils.copyProperties(zyProductEntity, udiwmsProductInfoResponse); + udiwmsProductInfoResponses.add(udiwmsProductInfoResponse); + } + PostThrProductsRequest postThrProductsRequest = new PostThrProductsRequest(); + postThrProductsRequest.setDatas(udiwmsProductInfoResponses); + postThrProductsRequest.setUploadType("文件导入"); + postThrProductsRequest.setThirdSys(thirdSys); + executorUtil.getUploadExecutor().execute(ThreadUtil.newThread(() -> { + udiInfoUploadService.postProducts(postThrProductsRequest); + }, "uploadPi")); + log.error("上传完" + System.currentTimeMillis()); + } catch (IOException e) { + log.error("解析上传excel文件IO异常,异常信息:{}", e); + return ResultVOUtils.error(500, "数据异常"); + } catch (Exception e) { + log.error("处理产品信息excel文件异常,异常信息:{}", e); + return ResultVOUtils.error(500, "数据异常"); + } + } + return ResultVOUtils.success("文件解析成功,正在上传,请稍后刷新查看"); + } + + @Override + public BaseResponse uploadCorps(List files, String thirdSys) { + for (int i = 0; i < files.size(); i++) { + MultipartFile file = files.get(i); + if (file.isEmpty()) { + return ResultVOUtils.error(500, "上传第" + (i++) + "个文件失败"); + } + List udiwmsUnitResponses = new ArrayList<>(); + try { + InputStream inputStream = file.getInputStream(); + ExcelUtil util = new ExcelUtil(ZyCorpEntity.class); + List zyCorpEntities = util.importExcel(inputStream); + for (ZyCorpEntity zyCorpEntity : zyCorpEntities) { + UdiwmsUnitResponse udiwmsUnitResponse = new UdiwmsUnitResponse(); + udiwmsUnitResponse.setName(zyCorpEntity.getCorpName()); + udiwmsUnitResponse.setUnitId(zyCorpEntity.getCorpCode()); + udiwmsUnitResponses.add(udiwmsUnitResponse); + } + PostThrCorpRequest postThrProductsRequest = new PostThrCorpRequest(); + postThrProductsRequest.setCorps(udiwmsUnitResponses); + postThrProductsRequest.setThirdSys(thirdSys); + executorUtil.getUploadExecutor().execute(ThreadUtil.newThread(() -> { + udiInfoUploadService.postCorps(postThrProductsRequest); + }, "uploadCorps")); + } catch (IOException e) { + log.error("解析往来单位excel文件IO异常,错误信息:{}", e); + return ResultVOUtils.error(500, "数据异常"); + } catch (Exception e) { + log.error("解析往来单位excel文件异常,异常信息:{}", e); + return ResultVOUtils.error(500, "数据异常"); + } + } + return ResultVOUtils.success("文件解析成功,正在上传,请稍后刷新查看"); + } + + @Override + public BaseResponse uploadInvPi(List files, String thirdSys) { + return ResultVOUtils.error(500, "暂不支持库存产品信息上传!"); + } + + @Override + public BaseResponse uploadOrders(List files, String thirdSys) { + return ResultVOUtils.error(500, "暂不支持业务单据上传!"); + } + + public boolean filterEmpty(Row row) { + + if (row.getCell(0) != null) { + row.getCell(0).setCellType(CellType.STRING); + } + if (row.getCell(1) != null) { + row.getCell(1).setCellType(CellType.STRING); + } + if (row.getCell(2) != null) { + row.getCell(2).setCellType(CellType.STRING); + } + if (row.getCell(3) != null) { + row.getCell(3).setCellType(CellType.STRING); + } + if (row.getCell(4) != null) { + row.getCell(4).setCellType(CellType.STRING); + } + if (row.getCell(5) != null) { + row.getCell(5).setCellType(CellType.STRING); + } + if (row.getCell(6) != null) { + row.getCell(6).setCellType(CellType.STRING); + } + if ((row.getCell(0) == null && row.getCell(1) == null && row.getCell(2) == null + && row.getCell(3) == null && row.getCell(4) == null && row.getCell(5) == null && row.getCell(6) == null) || + ( + (row.getCell(0) != null && row.getCell(1) != null && row.getCell(2) != null + && row.getCell(3) != null && row.getCell(4) != null && row.getCell(5) != null && row.getCell(6) != null) && + ("".equals(row.getCell(0).getStringCellValue()) + && "".equals(row.getCell(1).getStringCellValue()) + && "".equals(row.getCell(2).getStringCellValue()) + && "".equals(row.getCell(3).getStringCellValue()) + && "".equals(row.getCell(4).getStringCellValue()) + && "".equals(row.getCell(5).getStringCellValue()) + && "".equals(row.getCell(6).getStringCellValue())) + )) { + return true; + } + return false; + } +} diff --git a/src/main/java/com/glxp/mipsdl/config/HosDictConfig.java b/src/main/java/com/glxp/mipsdl/config/HosDictConfig.java new file mode 100644 index 0000000..8e41346 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/config/HosDictConfig.java @@ -0,0 +1,50 @@ +package com.glxp.mipsdl.config; + +import cn.hutool.core.io.resource.ResourceUtil; +import cn.hutool.core.util.StrUtil; +import cn.hutool.json.JSONArray; +import cn.hutool.json.JSONObject; +import cn.hutool.json.JSONUtil; +import com.glxp.mipsdl.util.DictUtl; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Component; + +import javax.annotation.PostConstruct; +import java.util.ArrayList; +import java.util.HashMap; + +/** + * 医院编码字典配置类 + */ +@Slf4j +@Component +public class HosDictConfig { + + @PostConstruct + public void initHospDict() { + log.info("系统启动中,初始化医院编码字典"); + String json = ResourceUtil.readUtf8Str("hosp_dict.json"); + if (StrUtil.isNotBlank(json)) { + JSONArray jsonArray = JSONUtil.parseArray(json); + if (jsonArray.size() > 0) { + DictUtl.HOSP_CODE = new ArrayList<>(jsonArray.size()); + DictUtl.HOSP_NAME = new ArrayList<>(jsonArray.size()); + DictUtl.HOSP_DICT = new HashMap<>(jsonArray.size()); + jsonArray.forEach(item -> { + JSONObject jsonObject = JSONUtil.parseObj(item); + String code = jsonObject.get("code", String.class); + String name = jsonObject.get("name", String.class); + DictUtl.HOSP_CODE.add(code); + DictUtl.HOSP_NAME.add(name); + DictUtl.HOSP_DICT.put(code, name); + }); + log.info("医院编码字典初始化完成,编码数量为: {}", jsonArray.size()); + } else { + log.info("初始化医院编码字典失败,字典文件为空"); + } + } else { + log.error("初始化医院编码字典失败,字典文件为空"); + } + } + +} diff --git a/src/main/java/com/glxp/mipsdl/config/HospConfig.java b/src/main/java/com/glxp/mipsdl/config/HospConfig.java new file mode 100644 index 0000000..4782c0b --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/config/HospConfig.java @@ -0,0 +1,94 @@ +package com.glxp.mipsdl.config; + +import cn.hutool.core.collection.CollUtil; +import cn.hutool.core.util.StrUtil; +import cn.hutool.json.JSONUtil; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.glxp.mipsdl.dao.auth.AuthLicenseDao; +import com.glxp.mipsdl.dao.system.SysHospConfigDao; +import com.glxp.mipsdl.entity.auth.AuthLicenseEntity; +import com.glxp.mipsdl.entity.system.SysHospConfigEntity; +import com.glxp.mipsdl.util.DictUtl; +import lombok.extern.slf4j.Slf4j; +import org.springframework.context.annotation.Configuration; + +import javax.annotation.PostConstruct; +import javax.annotation.Resource; +import java.util.ArrayList; +import java.util.List; + +/** + * 读取医院配置 + */ +@Slf4j +@Configuration +public class HospConfig { + + @Resource + private SysHospConfigDao hospConfigDao; + @Resource + private AuthLicenseDao authLicenseDao; + + private static SysHospConfigEntity hospConfig; + + /** + * 获取医院配置信息 + * @return + */ + @PostConstruct + public SysHospConfigEntity getHospConfig() { + if (null == hospConfig) { + log.info("系统启动中,获取医院编码"); + List configList = hospConfigDao.selectList(null); + if (CollUtil.isNotEmpty(configList)) { + hospConfig = configList.get(0); + DictUtl.CURRENT_HOSP_CODE = hospConfig.getCode(); + log.info("获取医院编码成功,编码信息:{}", JSONUtil.toJsonStr(hospConfig)); + return hospConfig; + } + log.error("获取医院编码失败,未查询到数据库配置信息,请前往UDI管理系统配置医院编码"); + return null; + } else { + return hospConfig; + } + } + + /** + * 获取UDI管理系统配置的第三方服务的授权信息 + * + * @return + */ + @PostConstruct + public AuthLicenseEntity getAuthLicense() { + log.info("系统启动中,获取第三方服务授权信息"); + AuthLicenseEntity authLicenseEntity = authLicenseDao.selectOne(new QueryWrapper().eq(AuthLicenseEntity.COL_NAME, "第三方服务")); + if (null != authLicenseEntity && StrUtil.isNotBlank(authLicenseEntity.getApikey()) && StrUtil.isNotBlank(authLicenseEntity.getSecretkey())) { + log.info("获取第三方服务授权信息成功"); + return authLicenseEntity; + } + log.error("获取第三方服务授权信息失败,未查询到数据库配置信息,请前往UDI管理系统配置授权码等信息"); + return null; + } + + /** + * 获取UDI管理系统授权的第三方服务请求头,用于请求UDI管理系统鉴权 + * + * @return + */ + + public String[] getHeaderArray() { + List headerArray = new ArrayList<>(); + headerArray.add("Content-Type"); + headerArray.add("application/json"); + AuthLicenseEntity license = getAuthLicense(); + if (null != license) { + headerArray.add("api_key"); + headerArray.add(license.getApikey()); + headerArray.add("secret_key"); + headerArray.add(license.getSecretkey()); + } + return headerArray.toArray(new String[0]); + } + + +} diff --git a/src/main/java/com/glxp/mipsdl/config/OkHttpConfig.java b/src/main/java/com/glxp/mipsdl/config/OkHttpConfig.java new file mode 100644 index 0000000..b113964 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/config/OkHttpConfig.java @@ -0,0 +1,99 @@ +package com.glxp.mipsdl.config; + +import lombok.extern.slf4j.Slf4j; +import okhttp3.ConnectionPool; +import okhttp3.OkHttpClient; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; + +import javax.net.ssl.SSLContext; +import javax.net.ssl.SSLSocketFactory; +import javax.net.ssl.TrustManager; +import javax.net.ssl.X509TrustManager; +import java.security.KeyManagementException; +import java.security.NoSuchAlgorithmException; +import java.security.SecureRandom; +import java.security.cert.CertificateException; +import java.security.cert.X509Certificate; +import java.util.concurrent.TimeUnit; + +/** + * @author Answer.AI.L + * @date 2019-04-09 + */ +@Slf4j +@Configuration +public class OkHttpConfig { + + @Value("${ok.http.connect-timeout}") + private Integer connectTimeout; + + @Value("${ok.http.read-timeout}") + private Integer readTimeout; + + @Value("${ok.http.write-timeout}") + private Integer writeTimeout; + + @Value("${ok.http.max-idle-connections}") + private Integer maxIdleConnections; + + @Value("${ok.http.keep-alive-duration}") + private Long keepAliveDuration; + + @Bean + public OkHttpClient okHttpClient() { + return new OkHttpClient.Builder() + .sslSocketFactory(sslSocketFactory(), x509TrustManager()) + // 是否开启缓存 + .retryOnConnectionFailure(false) + .connectionPool(pool()) + .connectTimeout(connectTimeout, TimeUnit.SECONDS) + .readTimeout(readTimeout, TimeUnit.SECONDS) + .writeTimeout(writeTimeout, TimeUnit.SECONDS) + .hostnameVerifier((hostname, session) -> true) + // 设置代理 +// .proxy(new Proxy(Proxy.Type.HTTP, new InetSocketAddress("127.0.0.1", 8888))) + // 拦截器 +// .addInterceptor() + .build(); + } + + @Bean + public X509TrustManager x509TrustManager() { + return new X509TrustManager() { + @Override + public void checkClientTrusted(X509Certificate[] chain, String authType) + throws CertificateException { + } + + @Override + public void checkServerTrusted(X509Certificate[] chain, String authType) + throws CertificateException { + } + + @Override + public X509Certificate[] getAcceptedIssuers() { + return new X509Certificate[0]; + } + }; + } + + @Bean + public SSLSocketFactory sslSocketFactory() { + try { + // 信任任何链接 + SSLContext sslContext = SSLContext.getInstance("TLS"); + sslContext.init(null, new TrustManager[]{x509TrustManager()}, new SecureRandom()); + return sslContext.getSocketFactory(); + } catch (NoSuchAlgorithmException | KeyManagementException e) { + log.error(e.getMessage(), e); + } + return null; + } + + @Bean + public ConnectionPool pool() { + return new ConnectionPool(maxIdleConnections, keepAliveDuration, TimeUnit.SECONDS); + } +} diff --git a/src/main/java/com/glxp/mipsdl/config/ThirdSysConfig.java b/src/main/java/com/glxp/mipsdl/config/ThirdSysConfig.java new file mode 100644 index 0000000..15573ab --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/config/ThirdSysConfig.java @@ -0,0 +1,95 @@ +package com.glxp.mipsdl.config; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.glxp.mipsdl.constant.Constants; +import com.glxp.mipsdl.dao.thrsys.ThrSystemDao; +import com.glxp.mipsdl.entity.thrsys.ThrSystemEntity; +import lombok.extern.slf4j.Slf4j; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.context.annotation.Configuration; + +import javax.annotation.Resource; + +@Slf4j +@Configuration +public class ThirdSysConfig { + + @Value("${THIRD_ID}") + private String thirdSys; + @Value("${THIRD_NAME}") + private String thirdName; + @Value("${UDIWMS_IP}") + private String udiWmsUrl; + + @Resource + private ThrSystemDao thrSystemDao; + + /** + * 获取第三方系统信息 + * + * @return + */ + public ThrSystemEntity getThirdSysConfig() { + return thrSystemDao.selectOne(new QueryWrapper().eq(ThrSystemEntity.COL_THIRDID, thirdSys)); + } + + /** + * 获取第三方系统ID + * + * @return + */ + public String getThirdId() { + return thirdSys; + } + + public String getThirdName() { + return thirdName; + } + + /** + * 获取上传产品信息URL + * + * @return + */ + public String getPostPiUrl() { + return udiWmsUrl + Constants.URL_NAME_POST_THR_PRODUCTS_URL; + } + + /** + * 获取上传往来单位信息URL + * + * @return + */ + public String getPostCorpUrl() { + return udiWmsUrl + Constants.URL_NAME_POST_THR_CORPS_URL; + } + + /** + * 获取上传往来单位信息URL + * + * @return + */ + public String getPostOrderUrl() { + return udiWmsUrl + Constants.URL_NAME_POST_THR_ORDER_URL; + } + + /** + * 获取上传库存产品URL + * + * @return + */ + public String getPostInvPiUrl() { + return udiWmsUrl + Constants.URL_NAME_POST_THR_INV_PRODUCTS_URL; + } + + /** + * 获取查询UDI管理系统库存信息接口URL + * + * @return + */ + public String getQueryInvUrl() { + return udiWmsUrl + Constants.URL_NAME_UDIWMS_PRODUCTS_FILTER_URL; + } + + +} diff --git a/src/main/java/com/glxp/mipsdl/constant/ConstantType.java b/src/main/java/com/glxp/mipsdl/constant/ConstantType.java new file mode 100644 index 0000000..ffdf422 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/constant/ConstantType.java @@ -0,0 +1,42 @@ +package com.glxp.mipsdl.constant; + +/** + * 类型常量 + */ +public interface ConstantType { + + //单据状态 + + /** + * 出库 + */ + String TYPE_PUT = "WareHouseIn"; + + /** + * 入库 + */ + String TYPE_OUT = "WareHouseOut"; + + + //日志相关常量 + /** + * 日志类型 - 接口 + */ + String LOG_TYPE_INTERFACE = "interface"; + + /** + * 日志类型 - 请求第三方系统 + */ + String LOG_TYPE_THIRD = "third"; + + /** + * 日志处理状态 - 异常 + */ + int LOG_STATUS_ERROR = 0; + + /** + * 日志处理状态 - 成功 + */ + int LOG_STATUS_SUCCESS = 1; + +} diff --git a/src/main/java/com/glxp/mipsdl/constant/Constants.java b/src/main/java/com/glxp/mipsdl/constant/Constants.java new file mode 100644 index 0000000..7cb541b --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/constant/Constants.java @@ -0,0 +1,128 @@ +package com.glxp.mipsdl.constant; + +/** + * 常量类 + */ +public interface Constants { + + //接口名称 + + /** + * 获取往来单位接口URL名称 + */ + public static final String URL_NAME_CORP_URL = "corpUrl"; + + /** + * 获取产品信息接口URL名称 + */ + public static final String URL_NAME_PI_QUERY_URL = "piQueryUrl"; + + /** + * 获取单据类型列表接口URL名称 + */ + public static final String URL_NAME_BUS_TYPE_QUERY_URL = "busTypeQueryUrl"; + + /** + * 提交单据接口URL名称 + */ + public static final String URL_NAME_ORDER_SUBMIT_URL = "orderSubmitUrl"; + + /** + * 获取库存产品接口URL名称 + */ + public static final String URL_NAME_INV_PI_URL = "invPiUrl"; + + /** + * 获取仓库(科室)字典接口URL名称 + */ + public static final String URL_NAME_WAREHOUSE_QUERY_URL = "warehouseQueryUrl"; + + /** + * 查询单据列表接口URL名称 + */ + public static final String URL_NAME_ORDER_QUERY_URL = "orderQueryUrl"; + + /** + * 新增产品接口URL名称 + */ + public static final String URL_NAME_PRODUCT_SUBMIT_URL = "productSubmitUrl"; + + /** + * 提交预入库单据接口URL名称 + */ + public static final String URL_NAME_PRE_IN_ORDER_SUBMIT_URL = "preInOrderSubmit"; + + /** + * 新增往来单位接口URL名称 + */ + public static final String URL_NAME_UNIT_SUBMIT_URL = "unitSubmitUrl"; + + //上传数据到UDI管理系统URL名称合集 + + /** + * 上传产品信息 + */ + public static final String URL_NAME_POST_THR_PRODUCTS_URL = "/udiwms/thrsys/postThrProducts"; + + /** + * 上传往来单位数据 + */ + public static final String URL_NAME_POST_THR_CORPS_URL = "/udiwms/thrsys/postCorps"; + + /** + * 上传单据 + */ + public static final String URL_NAME_POST_THR_ORDER_URL = "/udiwms/thrsys/postFileOrder"; + + /** + * 上传库存产品 + */ + public static final String URL_NAME_POST_THR_INV_PRODUCTS_URL = "/udiwms/thrsys/postInvProducts"; + + /** + * 查询UDI管理系统库存 + */ + public static final String URL_NAME_UDIWMS_PRODUCTS_FILTER_URL = "/udiwms/inv/products/filter"; + + + //往来单位类型 + + /** + * 病人 + */ + public static final int CORP_SICK = 1; + + /** + * 供应商 + */ + public static final int CORP_SP = 2; + + /** + * 内部科室等 + */ + public static final int CORP_INTTERNAL = 3; + + /** + * 特殊往来 + */ + public static final int CORP_SPECIAL = 4; + + /** + * 医院客户 + */ + public static final int CORP_HOSPTIAL = 5; + + + //单据状态类型 + + /** + * 业务单据上传至第三方 + */ + public static final int THIRD_ORDER_UPLOAD = 1; + + /** + * 接收第三方上传扫码单据 + */ + public static final int THIRD_ORDER_RECEIVE = 2; + +} diff --git a/src/main/java/com/glxp/mipsdl/controller/DictController.java b/src/main/java/com/glxp/mipsdl/controller/DictController.java new file mode 100644 index 0000000..bedfc5e --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/controller/DictController.java @@ -0,0 +1,43 @@ +package com.glxp.mipsdl.controller; + +import com.glxp.mipsdl.config.HospConfig; +import com.glxp.mipsdl.res.BaseResponse; +import com.glxp.mipsdl.util.DictUtl; +import com.glxp.mipsdl.util.ResultVOUtils; +import lombok.extern.slf4j.Slf4j; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; + +/** + * 字典接口 + */ +@Slf4j +@RestController +public class DictController { + + @Resource + private HospConfig hospConfig; + + /** + * 获取医院字典列表 + * + * @return + */ + @GetMapping("/udiwms/erp/getHostDictList") + public BaseResponse getHostDictList() { + return ResultVOUtils.success(DictUtl.HOSP_DICT); + } + + /** + * 获取当前医院信息 + * + * @return + */ + @GetMapping("/udiwms/erp/getCurrentHospInfo") + public BaseResponse getCurrentHospInfo() { + return ResultVOUtils.success(hospConfig.getHospConfig()); + } + +} diff --git a/src/main/java/com/glxp/mipsdl/controller/ThirdGetController.java b/src/main/java/com/glxp/mipsdl/controller/ThirdGetController.java new file mode 100644 index 0000000..cab867d --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/controller/ThirdGetController.java @@ -0,0 +1,34 @@ +package com.glxp.mipsdl.controller; + +import cn.hutool.core.util.StrUtil; +import com.glxp.mipsdl.client.ClientProcessor; +import com.glxp.mipsdl.req.base.UdiwmsQueryUdiInvProductsRequest; +import com.glxp.mipsdl.res.BaseResponse; +import com.glxp.mipsdl.util.ResultVOUtils; +import lombok.extern.slf4j.Slf4j; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RestController; + +/** + * 提供给第三方系统调用的接口 + */ +@Slf4j +@RestController +public class ThirdGetController { + + @PostMapping("/udiwms/inv/products/filter") + public BaseResponse filterInv(@RequestBody UdiwmsQueryUdiInvProductsRequest thirdFilterInvRequest) { + if (null == thirdFilterInvRequest) { + return ResultVOUtils.error(500, "查询条件不能为空"); + } + if (StrUtil.isEmpty(thirdFilterInvRequest.getBatchNo()) && + StrUtil.isEmpty(thirdFilterInvRequest.getProductName()) && + StrUtil.isEmpty(thirdFilterInvRequest.getDiCode()) && + StrUtil.isEmpty(thirdFilterInvRequest.getSupName())) { + return ResultVOUtils.error(500, "查询条件不能为空!"); + } + return ClientProcessor.getHttpClient().queryUdiInvProducts(thirdFilterInvRequest); + } + +} diff --git a/src/main/java/com/glxp/mipsdl/controller/UdiInfoUploadController.java b/src/main/java/com/glxp/mipsdl/controller/UdiInfoUploadController.java new file mode 100644 index 0000000..2e15d50 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/controller/UdiInfoUploadController.java @@ -0,0 +1,68 @@ +package com.glxp.mipsdl.controller; + +import com.glxp.mipsdl.client.ClientProcessor; +import com.glxp.mipsdl.res.BaseResponse; +import lombok.extern.slf4j.Slf4j; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.multipart.MultipartFile; + +import java.util.List; + +/** + * 上传文件接口 + */ +@Slf4j +@RestController +public class UdiInfoUploadController { + + /** + * 产品信息导入 + * + * @param files + * @param thirdSys + * @return + */ + @PostMapping("/udiwms/erp/pi/upload") + public BaseResponse uploadPi(@RequestParam("file") List files, @RequestParam("thirdSys") String thirdSys) { + return ClientProcessor.getFileClient().uploadPi(files, thirdSys); + } + + /** + * 往来单位导入 + * + * @param files + * @param thirdSys + * @return + */ + @PostMapping("/udiwms/erp/corp/upload") + public BaseResponse uploadCorps(@RequestParam("file") List files, @RequestParam("thirdSys") String thirdSys) { + return ClientProcessor.getFileClient().uploadCorps(files, thirdSys); + } + + /** + * 库存产品信息上传 + * + * @param files + * @param thirdSys + * @return + */ + @PostMapping("/udiwms/erp/invpi/upload") + public BaseResponse uploadInvPi(@RequestParam("file") List files, @RequestParam("thirdSys") String thirdSys) { + return ClientProcessor.getFileClient().uploadInvPi(files, thirdSys); + } + + /** + * 业务单据上传 + * + * @param files + * @param thirdSys + * @return + */ + @PostMapping("/udiwms/erp/order/upload") + public BaseResponse uploadOrders(@RequestParam("file") List files, @RequestParam("thirdSys") String thirdSys) { + return ClientProcessor.getFileClient().uploadOrders(files, thirdSys); + } + +} diff --git a/src/main/java/com/glxp/mipsdl/controller/UdiWmsController.java b/src/main/java/com/glxp/mipsdl/controller/UdiWmsController.java new file mode 100644 index 0000000..92d45fb --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/controller/UdiWmsController.java @@ -0,0 +1,181 @@ +package com.glxp.mipsdl.controller; + +import com.glxp.mipsdl.client.ClientProcessor; +import com.glxp.mipsdl.client.pzh.PzhzdClient; +import com.glxp.mipsdl.req.base.*; +import com.glxp.mipsdl.req.pzh.USignRequest; +import com.glxp.mipsdl.res.BaseResponse; +import com.glxp.mipsdl.util.DictUtl; +import com.glxp.mipsdl.util.ResultVOUtils; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; + +/** + * 提供给UDI管理系统的接口 + */ +@RestController +public class UdiWmsController { + + @Resource + private PzhzdClient pzhzdClient; + + /** + * 获取第三方系统往来单位信息接口 + * + * @param udiwmsUnitRequest + * @param bindingResult + * @return + */ + @PostMapping("/udiwms/erp/getUnits") + public BaseResponse getUnits(@RequestBody UdiwmsUnitRequest udiwmsUnitRequest) { + return ClientProcessor.getHttpClient().getUnit(udiwmsUnitRequest); + } + + /** + * 获取第三方系统产品信息接口 + * + * @param udiwmsProductRequest + * @return + */ + @PostMapping("/udiwms/erp/getProducts") + public BaseResponse getProducts(@RequestBody UdiwmsProductRequest udiwmsProductRequest) { + return ClientProcessor.getHttpClient().getProducts(udiwmsProductRequest); + } + + /** + * 获取仓库信息接口 + * + * @param udiwmsWarehouseRequest + * @return + */ + @PostMapping("/udiwms/erp/getWarehouse") + public BaseResponse getWarehouse(@RequestBody UdiwmsWarehouseRequest udiwmsWarehouseRequest) { + return ClientProcessor.getHttpClient().getWarehouse(udiwmsWarehouseRequest); + } + + /** + * 获取单据信息接口 + * + * @param udiwmsOrderQueryRequest + * @return + */ + @PostMapping("/udiwms/erp/getOrders") + public BaseResponse getOrders(@RequestBody UdiwmsOrderQueryRequest udiwmsOrderQueryRequest) { + return ClientProcessor.getHttpClient().getOrders(udiwmsOrderQueryRequest); + } + + /** + * 获取单据类型接口 + * + * @param udiwmsBusTypeRequest + * @return + */ + @PostMapping("/udiwms/erp/getOrderType") + public BaseResponse getOrderTypes(@RequestBody UdiwmsBusTypeRequest udiwmsBusTypeRequest) { + return ClientProcessor.getHttpClient().getOrderTypes(udiwmsBusTypeRequest); + } + + /** + * 提交单据接口 + * + * @param udiwmsOrderRequest + * @return + */ + @PostMapping("/udiwms/erp/submitOrders") + public BaseResponse submitOrders(@RequestBody UdiwmsOrderRequest udiwmsOrderRequest) { + return ClientProcessor.getHttpClient().submitOrders(udiwmsOrderRequest); + } + + /** + * 获取库存产品信息接口 + * + * @param udiwmsInvProductsRequest + * @return + */ + @PostMapping("/udiwms/erp/inv/getInvProduct") + public BaseResponse getInvProduct(@RequestBody UdiwmsInvProductsRequest udiwmsInvProductsRequest) { + return ClientProcessor.getHttpClient().getInvProducts(udiwmsInvProductsRequest); + } + + /** + * 提交产品到第三方系统接口 + * + * @param udiwmsAddProductsRequest + * @return + */ + @PostMapping("/udiwms/erp/post/product") + public BaseResponse postProduct(@RequestBody UdiwmsAddProductsRequest udiwmsAddProductsRequest) { + return ClientProcessor.getHttpClient().submitProducts(udiwmsAddProductsRequest); + } + + /** + * 添加第三方系统往来单位信息 + * + * @param udiwmsAddUnitRequest + * @return + */ + @PostMapping("/udiwms/erp/post/unit") + public BaseResponse postUnit(@RequestBody UdiwmsAddUnitRequest udiwmsAddUnitRequest) { + return ClientProcessor.getHttpClient().submitUnit(udiwmsAddUnitRequest); + } + + @PostMapping("/udiwms/erp/testThirdSys") + public BaseResponse testThirdSys() { + return ClientProcessor.getHttpClient().testConnect(); + } + + + //片仔癀用友U8专属接口 + /** + * 提交采购计划 + * + * @return + */ + @PostMapping("/udiwms/erp/order/postOrder") + public BaseResponse postOrder(@RequestBody UdiwmsOrderRequest udiwmsOrderRequest) { + if (!DictUtl.CURRENT_HOSP_CODE.equals("100002")) { + return ResultVOUtils.error(500, "未设置系统版本"); + } + return pzhzdClient.postOrder(udiwmsOrderRequest); + } + + /** + * 获取现存量接口 + * @param udiwmsInvProductsRequest + * @return + */ + @GetMapping("/udiwms/erp/getOnhand") + public BaseResponse getOnHand(@RequestBody UdiwmsInvProductsRequest udiwmsInvProductsRequest) { + if (!DictUtl.CURRENT_HOSP_CODE.equals("100002")) { + return ResultVOUtils.error(500, "未设置系统版本"); + } + return pzhzdClient.getOnHand(udiwmsInvProductsRequest); + } + + /** + * 签字ERP订单接口 + * @param signRequest + * @return + */ + @PostMapping("/udiwms/erp/signBill") + public BaseResponse signBill(@RequestBody USignRequest signRequest) { + if (!DictUtl.CURRENT_HOSP_CODE.equals("100002")) { + return ResultVOUtils.error(500, "未设置系统版本"); + } + return pzhzdClient.signBill(signRequest); + } + + //修改ERP订单接口 + @PostMapping("/udiwms/erp/modifyBill") + public BaseResponse modifyBill(@RequestBody UdiwmsPostBillRequest udiwmsPostBillRequest) { + if (!DictUtl.CURRENT_HOSP_CODE.equals("100002")) { + return ResultVOUtils.error(500, "未设置系统版本"); + } + return pzhzdClient.modifyBill(udiwmsPostBillRequest); + } + +} diff --git a/src/main/java/com/glxp/mipsdl/dao/auth/AuthLicenseDao.java b/src/main/java/com/glxp/mipsdl/dao/auth/AuthLicenseDao.java new file mode 100644 index 0000000..367cfee --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/dao/auth/AuthLicenseDao.java @@ -0,0 +1,7 @@ +package com.glxp.mipsdl.dao.auth; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.glxp.mipsdl.entity.auth.AuthLicenseEntity; + +public interface AuthLicenseDao extends BaseMapper { +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/dao/auth/AuthUserDao.java b/src/main/java/com/glxp/mipsdl/dao/auth/AuthUserDao.java new file mode 100644 index 0000000..6a41dc0 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/dao/auth/AuthUserDao.java @@ -0,0 +1,7 @@ +package com.glxp.mipsdl.dao.auth; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.glxp.mipsdl.entity.auth.AuthUserEntity; + +public interface AuthUserDao extends BaseMapper { +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/dao/auth/AuthWarehouseDao.java b/src/main/java/com/glxp/mipsdl/dao/auth/AuthWarehouseDao.java new file mode 100644 index 0000000..9d008ee --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/dao/auth/AuthWarehouseDao.java @@ -0,0 +1,7 @@ +package com.glxp.mipsdl.dao.auth; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.glxp.mipsdl.entity.auth.AuthWarehouseEntity; + +public interface AuthWarehouseDao extends BaseMapper { +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/dao/basic/BasicBussinessTypeDao.java b/src/main/java/com/glxp/mipsdl/dao/basic/BasicBussinessTypeDao.java new file mode 100644 index 0000000..56f66d9 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/dao/basic/BasicBussinessTypeDao.java @@ -0,0 +1,17 @@ +package com.glxp.mipsdl.dao.basic; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.glxp.mipsdl.entity.basic.BasicBussinessTypeEntity; +import org.apache.ibatis.annotations.Param; + +public interface BasicBussinessTypeDao extends BaseMapper { + + /** + * 通过单据类型编码查询单据类型 + * + * @param action + * @return + */ + BasicBussinessTypeEntity selectByAction(@Param("action") String action); + +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/dao/basic/BasicCorpDao.java b/src/main/java/com/glxp/mipsdl/dao/basic/BasicCorpDao.java new file mode 100644 index 0000000..081083f --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/dao/basic/BasicCorpDao.java @@ -0,0 +1,16 @@ +package com.glxp.mipsdl.dao.basic; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.glxp.mipsdl.entity.basic.BasicCorpEntity; +import org.apache.ibatis.annotations.Param; + +public interface BasicCorpDao extends BaseMapper { + + /** + * 查询往来单位名称 + * + * @param erpId + * @return + */ + String selectNameByErpId(@Param("erpId") String erpId); +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/dao/basic/BasicProductsDao.java b/src/main/java/com/glxp/mipsdl/dao/basic/BasicProductsDao.java new file mode 100644 index 0000000..9ec2111 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/dao/basic/BasicProductsDao.java @@ -0,0 +1,7 @@ +package com.glxp.mipsdl.dao.basic; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.glxp.mipsdl.entity.basic.BasicProductsEntity; + +public interface BasicProductsDao extends BaseMapper { +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/dao/basic/BasicUdirelDao.java b/src/main/java/com/glxp/mipsdl/dao/basic/BasicUdirelDao.java new file mode 100644 index 0000000..8d705f6 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/dao/basic/BasicUdirelDao.java @@ -0,0 +1,7 @@ +package com.glxp.mipsdl.dao.basic; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.glxp.mipsdl.entity.basic.BasicUdirelEntity; + +public interface BasicUdirelDao extends BaseMapper { +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/dao/inout/IoCodeDao.java b/src/main/java/com/glxp/mipsdl/dao/inout/IoCodeDao.java new file mode 100644 index 0000000..f906a22 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/dao/inout/IoCodeDao.java @@ -0,0 +1,7 @@ +package com.glxp.mipsdl.dao.inout; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.glxp.mipsdl.entity.inout.IoCodeEntity; + +public interface IoCodeDao extends BaseMapper { +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/dao/inout/IoCodeTempDao.java b/src/main/java/com/glxp/mipsdl/dao/inout/IoCodeTempDao.java new file mode 100644 index 0000000..15f395d --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/dao/inout/IoCodeTempDao.java @@ -0,0 +1,7 @@ +package com.glxp.mipsdl.dao.inout; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.glxp.mipsdl.entity.inout.IoCodeTempEntity; + +public interface IoCodeTempDao extends BaseMapper { +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/dao/inout/IoOrderDao.java b/src/main/java/com/glxp/mipsdl/dao/inout/IoOrderDao.java new file mode 100644 index 0000000..aa6130b --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/dao/inout/IoOrderDao.java @@ -0,0 +1,7 @@ +package com.glxp.mipsdl.dao.inout; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.glxp.mipsdl.entity.inout.IoOrderEntity; + +public interface IoOrderDao extends BaseMapper { +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/dao/inout/IoOrderDetailBizDao.java b/src/main/java/com/glxp/mipsdl/dao/inout/IoOrderDetailBizDao.java new file mode 100644 index 0000000..692e4eb --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/dao/inout/IoOrderDetailBizDao.java @@ -0,0 +1,7 @@ +package com.glxp.mipsdl.dao.inout; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.glxp.mipsdl.entity.inout.IoOrderDetailBizEntity; + +public interface IoOrderDetailBizDao extends BaseMapper { +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/dao/inout/IoOrderDetailCodeDao.java b/src/main/java/com/glxp/mipsdl/dao/inout/IoOrderDetailCodeDao.java new file mode 100644 index 0000000..14889bb --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/dao/inout/IoOrderDetailCodeDao.java @@ -0,0 +1,7 @@ +package com.glxp.mipsdl.dao.inout; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.glxp.mipsdl.entity.inout.IoOrderDetailCodeEntity; + +public interface IoOrderDetailCodeDao extends BaseMapper { +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/dao/inout/IoOrderDetailResultDao.java b/src/main/java/com/glxp/mipsdl/dao/inout/IoOrderDetailResultDao.java new file mode 100644 index 0000000..31f848f --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/dao/inout/IoOrderDetailResultDao.java @@ -0,0 +1,7 @@ +package com.glxp.mipsdl.dao.inout; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.glxp.mipsdl.entity.inout.IoOrderDetailResultEntity; + +public interface IoOrderDetailResultDao extends BaseMapper { +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/dao/inout/IoOrderUploadLogDao.java b/src/main/java/com/glxp/mipsdl/dao/inout/IoOrderUploadLogDao.java new file mode 100644 index 0000000..6381be4 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/dao/inout/IoOrderUploadLogDao.java @@ -0,0 +1,7 @@ +package com.glxp.mipsdl.dao.inout; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.glxp.mipsdl.entity.inout.IoOrderUploadLogEntity; + +public interface IoOrderUploadLogDao extends BaseMapper { +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/dao/pzhzd/YyUcloudV31SetDao.java b/src/main/java/com/glxp/mipsdl/dao/pzhzd/YyUcloudV31SetDao.java new file mode 100644 index 0000000..f91d4c5 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/dao/pzhzd/YyUcloudV31SetDao.java @@ -0,0 +1,13 @@ +package com.glxp.mipsdl.dao.pzhzd; + +import com.glxp.mipsdl.entity.pzhzd.YyUcloudV31SetEntity; +import org.apache.ibatis.annotations.Param; + +/** + * 片仔癀 + */ +public interface YyUcloudV31SetDao { + + YyUcloudV31SetEntity findSetUp(@Param("url") String url); + +} diff --git a/src/main/java/com/glxp/mipsdl/dao/system/SysErpLogDao.java b/src/main/java/com/glxp/mipsdl/dao/system/SysErpLogDao.java new file mode 100644 index 0000000..a76ac2e --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/dao/system/SysErpLogDao.java @@ -0,0 +1,7 @@ +package com.glxp.mipsdl.dao.system; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.glxp.mipsdl.entity.system.SysErpLogEntity; + +public interface SysErpLogDao extends BaseMapper { +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/dao/system/SysHospConfigDao.java b/src/main/java/com/glxp/mipsdl/dao/system/SysHospConfigDao.java new file mode 100644 index 0000000..43a46f4 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/dao/system/SysHospConfigDao.java @@ -0,0 +1,7 @@ +package com.glxp.mipsdl.dao.system; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.glxp.mipsdl.entity.system.SysHospConfigEntity; + +public interface SysHospConfigDao extends BaseMapper { +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/dao/system/SysScheduledDao.java b/src/main/java/com/glxp/mipsdl/dao/system/SysScheduledDao.java new file mode 100644 index 0000000..cd4d738 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/dao/system/SysScheduledDao.java @@ -0,0 +1,7 @@ +package com.glxp.mipsdl.dao.system; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.glxp.mipsdl.entity.system.SysScheduledEntity; + +public interface SysScheduledDao extends BaseMapper { +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/dao/system/SysThirdSysApiDao.java b/src/main/java/com/glxp/mipsdl/dao/system/SysThirdSysApiDao.java new file mode 100644 index 0000000..08b850d --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/dao/system/SysThirdSysApiDao.java @@ -0,0 +1,7 @@ +package com.glxp.mipsdl.dao.system; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.glxp.mipsdl.entity.system.SysThirdsysApiEntity; + +public interface SysThirdSysApiDao extends BaseMapper { +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/dao/thrsys/ThrBustypeOriginDao.java b/src/main/java/com/glxp/mipsdl/dao/thrsys/ThrBustypeOriginDao.java new file mode 100644 index 0000000..9d66d0c --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/dao/thrsys/ThrBustypeOriginDao.java @@ -0,0 +1,17 @@ +package com.glxp.mipsdl.dao.thrsys; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.glxp.mipsdl.entity.thrsys.ThrBustypeOriginEntity; +import org.apache.ibatis.annotations.Param; + +public interface ThrBustypeOriginDao extends BaseMapper { + + /** + * 查询单据类型对应的第三方单据类型 + * + * @param billType 本地单据类型 + * @param hospCode 医院编码 + * @return + */ + String findThirdActionByBillType(@Param("billType") String billType, @Param("hospCode") String hospCode); +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/dao/thrsys/ThrCorpDao.java b/src/main/java/com/glxp/mipsdl/dao/thrsys/ThrCorpDao.java new file mode 100644 index 0000000..53799a7 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/dao/thrsys/ThrCorpDao.java @@ -0,0 +1,7 @@ +package com.glxp.mipsdl.dao.thrsys; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.glxp.mipsdl.entity.thrsys.ThrCorpEntity; + +public interface ThrCorpDao extends BaseMapper { +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/dao/thrsys/ThrDeptDao.java b/src/main/java/com/glxp/mipsdl/dao/thrsys/ThrDeptDao.java new file mode 100644 index 0000000..6dd0079 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/dao/thrsys/ThrDeptDao.java @@ -0,0 +1,7 @@ +package com.glxp.mipsdl.dao.thrsys; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.glxp.mipsdl.entity.thrsys.ThrDeptEntity; + +public interface ThrDeptDao extends BaseMapper { +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/dao/thrsys/ThrInvWarehouseDao.java b/src/main/java/com/glxp/mipsdl/dao/thrsys/ThrInvWarehouseDao.java new file mode 100644 index 0000000..54bd14a --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/dao/thrsys/ThrInvWarehouseDao.java @@ -0,0 +1,7 @@ +package com.glxp.mipsdl.dao.thrsys; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.glxp.mipsdl.entity.thrsys.ThrInvWarehouseEntity; + +public interface ThrInvWarehouseDao extends BaseMapper { +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/dao/thrsys/ThrProductsDao.java b/src/main/java/com/glxp/mipsdl/dao/thrsys/ThrProductsDao.java new file mode 100644 index 0000000..60e923c --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/dao/thrsys/ThrProductsDao.java @@ -0,0 +1,7 @@ +package com.glxp.mipsdl.dao.thrsys; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.glxp.mipsdl.entity.thrsys.ThrProductsEntity; + +public interface ThrProductsDao extends BaseMapper { +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/dao/thrsys/ThrSystemBusApiDao.java b/src/main/java/com/glxp/mipsdl/dao/thrsys/ThrSystemBusApiDao.java new file mode 100644 index 0000000..2001ded --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/dao/thrsys/ThrSystemBusApiDao.java @@ -0,0 +1,7 @@ +package com.glxp.mipsdl.dao.thrsys; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.glxp.mipsdl.entity.thrsys.ThrSystemBusApiEntity; + +public interface ThrSystemBusApiDao extends BaseMapper { +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/dao/thrsys/ThrSystemDao.java b/src/main/java/com/glxp/mipsdl/dao/thrsys/ThrSystemDao.java new file mode 100644 index 0000000..ceb1e91 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/dao/thrsys/ThrSystemDao.java @@ -0,0 +1,7 @@ +package com.glxp.mipsdl.dao.thrsys; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.glxp.mipsdl.entity.thrsys.ThrSystemEntity; + +public interface ThrSystemDao extends BaseMapper { +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/dao/thrsys/ThrSystemDetailDao.java b/src/main/java/com/glxp/mipsdl/dao/thrsys/ThrSystemDetailDao.java new file mode 100644 index 0000000..8504759 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/dao/thrsys/ThrSystemDetailDao.java @@ -0,0 +1,17 @@ +package com.glxp.mipsdl.dao.thrsys; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.glxp.mipsdl.entity.thrsys.ThrSystemDetailEntity; +import org.apache.ibatis.annotations.Param; + +public interface ThrSystemDetailDao extends BaseMapper { + + /** + * 查询医院配置的指定接口的地址信息 + * + * @param key 接口名称 + * @param hospCode 医院编码 + * @return + */ + ThrSystemDetailEntity selectByKey(@Param("key") String key, @Param("hospCode") String hospCode); +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/entity/auth/AuthLicenseEntity.java b/src/main/java/com/glxp/mipsdl/entity/auth/AuthLicenseEntity.java new file mode 100644 index 0000000..392080c --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/entity/auth/AuthLicenseEntity.java @@ -0,0 +1,52 @@ +package com.glxp.mipsdl.entity.auth; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import java.util.Date; +import lombok.Data; + +@Data +@TableName(value = "auth_license") +public class AuthLicenseEntity { + @TableId(value = "id", type = IdType.AUTO) + private String id; + + @TableField(value = "appid") + private String appid; + + @TableField(value = "`name`") + private String name; + + @TableField(value = "apikey") + private String apikey; + + @TableField(value = "secretkey") + private String secretkey; + + @TableField(value = "createDate") + private Date createDate; + + @TableField(value = "customerId") + private String customerId; + + @TableField(value = "companyName") + private String companyName; + + public static final String COL_ID = "id"; + + public static final String COL_APPID = "appid"; + + public static final String COL_NAME = "name"; + + public static final String COL_APIKEY = "apikey"; + + public static final String COL_SECRETKEY = "secretkey"; + + public static final String COL_CREATEDATE = "createDate"; + + public static final String COL_CUSTOMERID = "customerId"; + + public static final String COL_COMPANYNAME = "companyName"; +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/entity/auth/AuthUserEntity.java b/src/main/java/com/glxp/mipsdl/entity/auth/AuthUserEntity.java new file mode 100644 index 0000000..0ba093a --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/entity/auth/AuthUserEntity.java @@ -0,0 +1,103 @@ +package com.glxp.mipsdl.entity.auth; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +import java.util.Date; + +/** + * 管理员表 + */ +@Data +@TableName(value = "auth_user") +public class AuthUserEntity { + + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + /** + * 用户名 + */ + @TableField(value = "userName") + private String userName; + + /** + * 登录密码;sp_password加密 + */ + @TableField(value = "`passWord`") + private String passWord; + + /** + * 最后登录ip + */ + @TableField(value = "lastLoginIp") + private String lastLoginIp; + + /** + * 注册时间 + */ + @TableField(value = "createTime") + private Date createTime; + + /** + * 用户状态 0:禁用; 1:正常 ;2:未验证 + */ + @TableField(value = "userFlag") + private Integer userFlag; + + @TableField(value = "lastModifyTime") + private Date lastModifyTime; + + @TableField(value = "comments") + private String comments; + + @TableField(value = "employeeName") + private String employeeName; + + @TableField(value = "CustomerId") + private String customerId; + + @TableField(value = "lastLoginTime") + private Date lastLoginTime; + + /** + * 当前部门 + */ + @TableField(value = "locDeptCode") + private String locDeptCode; + + /** + * 当前仓库 + */ + @TableField(value = "locInvCode") + private String locInvCode; + + public static final String COL_ID = "id"; + + public static final String COL_USERNAME = "userName"; + + public static final String COL_PASSWORD = "passWord"; + + public static final String COL_LASTLOGINIP = "lastLoginIp"; + + public static final String COL_CREATETIME = "createTime"; + + public static final String COL_USERFLAG = "userFlag"; + + public static final String COL_LASTMODIFYTIME = "lastModifyTime"; + + public static final String COL_COMMENTS = "comments"; + + public static final String COL_EMPLOYEENAME = "employeeName"; + + public static final String COL_CUSTOMERID = "CustomerId"; + + public static final String COL_LASTLOGINTIME = "lastLoginTime"; + + public static final String COL_LOCDEPTCODE = "locDeptCode"; + + public static final String COL_LOCINVCODE = "locInvCode"; +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/entity/auth/AuthWarehouseEntity.java b/src/main/java/com/glxp/mipsdl/entity/auth/AuthWarehouseEntity.java new file mode 100644 index 0000000..2e59cf9 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/entity/auth/AuthWarehouseEntity.java @@ -0,0 +1,107 @@ +package com.glxp.mipsdl.entity.auth; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +/** + * 仓库字典表 + */ +@Data +@TableName(value = "auth_warehouse") +public class AuthWarehouseEntity { + @TableId(value = "id", type = IdType.AUTO) + private String id; + + /** + * 仓库编码 + */ + @TableField(value = "code") + private String code; + + /** + * 仓库名称 + */ + @TableField(value = "`name`") + private String name; + + /** + * 部门编码 + */ + @TableField(value = "parentId") + private String parentId; + + /** + * 备注 + */ + @TableField(value = "remark") + private String remark; + + /** + * 是否系统默认仓库 + */ + @TableField(value = "defaultInv") + private Boolean defaultInv; + + /** + * 第三方产品编码 + */ + @TableField(value = "thirdId") + private String thirdId; + + /** + * 第三方产品编码 + */ + @TableField(value = "thirdId1") + private String thirdId1; + + /** + * 第三方产品编码 + */ + @TableField(value = "thirdId2") + private String thirdId2; + + /** + * 第三方产品编码 + */ + @TableField(value = "thirdId3") + private String thirdId3; + + /** + * 第三方产品编码 + */ + @TableField(value = "thirdId4") + private String thirdId4; + + /** + * 父级仓库 + */ + @TableField(value = "parentCode") + private String parentCode; + + public static final String COL_ID = "id"; + + public static final String COL_CODE = "code"; + + public static final String COL_NAME = "name"; + + public static final String COL_PARENTID = "parentId"; + + public static final String COL_REMARK = "remark"; + + public static final String COL_DEFAULTINV = "defaultInv"; + + public static final String COL_THIRDID = "thirdId"; + + public static final String COL_THIRDID1 = "thirdId1"; + + public static final String COL_THIRDID2 = "thirdId2"; + + public static final String COL_THIRDID3 = "thirdId3"; + + public static final String COL_THIRDID4 = "thirdId4"; + + public static final String COL_PARENTCODE = "parentCode"; +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/entity/basic/BasicBussinessTypeEntity.java b/src/main/java/com/glxp/mipsdl/entity/basic/BasicBussinessTypeEntity.java new file mode 100644 index 0000000..7178156 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/entity/basic/BasicBussinessTypeEntity.java @@ -0,0 +1,449 @@ +package com.glxp.mipsdl.entity.basic; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +import java.util.Date; + +/** + * 单据类型表 + */ +@Data +@TableName(value = "basic_bussiness_type") +public class BasicBussinessTypeEntity { + + /** + * id + */ + @TableId(value = "id", type = IdType.AUTO) + private Integer id; + + /** + * 主类型(出库,入库) + */ + @TableField(value = "mainAction") + private String mainAction; + + /** + * 业务类型 + */ + @TableField(value = "`action`") + private String action; + + /** + * 业务名称 + */ + @TableField(value = "`name`") + private String name; + + /** + * 是否启用, 0:未启用 1:启用 + */ + @TableField(value = "`enable`") + private Boolean enable; + + /** + * 备注 + */ + @TableField(value = "remark") + private String remark; + + /** + * 第三方系统外键 + */ + @TableField(value = "thirdSysFk") + private String thirdSysFk; + + /** + * 是否自动生成往来单位:1.是;2.否 + */ + @TableField(value = "genUnit") + private Boolean genUnit; + + /** + * 是否是内部单据:1.是;0:否 + */ + @TableField(value = "innerOrder") + private Boolean innerOrder; + + /** + * 是否二次验收 + */ + @TableField(value = "secCheckEnable") + private Boolean secCheckEnable; + + /** + * 是否根据业务单据类型校验 + */ + @TableField(value = "checkEnable") + private Boolean checkEnable; + + /** + * UDIMS平台来源是否需要校验 + */ + @TableField(value = "checkUdims") + private Boolean checkUdims; + + /** + * pda已校验单据 + */ + @TableField(value = "checkPdaEd") + private Boolean checkPdaEd; + + /** + * pda未检验单据 + */ + @TableField(value = "checkPdaUn") + private Boolean checkPdaUn; + + /** + * PC端扫码精灵 + */ + @TableField(value = "checkPc") + private Boolean checkPc; + + /** + * web前端页面新增单据 + */ + @TableField(value = "checkWebNew") + private Boolean checkWebNew; + + /** + * 供应商平台导出单据 + */ + @TableField(value = "checkSp") + private Boolean checkSp; + + /** + * 流转生成单据 + */ + @TableField(value = "checkChange") + private Boolean checkChange; + + /** + * UDIMS平台单据 二次校验 + */ + @TableField(value = "secCheckUdims") + private Boolean secCheckUdims; + + /** + * 手持终端已校验单据 二次校验 + */ + @TableField(value = "secCheckPdaEd") + private Boolean secCheckPdaEd; + + /** + * 手持终端未校验单据 二次校验 + */ + @TableField(value = "secCheckPdaUn") + private Boolean secCheckPdaUn; + + /** + * UDI扫码通 二次校验 + */ + @TableField(value = "secCheckPc") + private Boolean secCheckPc; + + /** + * web端新增单据 二次复核 + */ + @TableField(value = "secCheckWebNew") + private Boolean secCheckWebNew; + + /** + * 自动补单二次复核 + */ + @TableField(value = "secCheckChange") + private Boolean secCheckChange; + + /** + * 供应商平台导出单据 + */ + @TableField(value = "secCheckSp") + private Boolean secCheckSp; + + /** + * 往来单位类型 + */ + @TableField(value = "corpType") + private Boolean corpType; + + /** + * 补单扫码单据类型 + */ + @TableField(value = "supplementOrderType") + private String supplementOrderType; + + /** + * 平衡补单是否校验 + */ + @TableField(value = "checkBalance") + private Boolean checkBalance; + + /** + * 平衡补单是否二次验收 + */ + @TableField(value = "secCheckBalance") + private Boolean secCheckBalance; + + /** + * 允许科室多次使用出库 + */ + @TableField(value = "useDyCount") + private Boolean useDyCount; + + /** + * 到期提示 + */ + @TableField(value = "expireTip") + private Boolean expireTip; + + /** + * 更新时间 + */ + @TableField(value = "updateTime") + private Date updateTime; + + /** + * 默认往来单位 + */ + @TableField(value = "defaultUnit") + private String defaultUnit; + + /** + * 创建单据前缀 + */ + @TableField(value = "`prefix`") + private String prefix; + + /** + * 出库是否直接上传至自助平台 + */ + @TableField(value = "outToSpms") + private Boolean outToSpms; + + /** + * 允许出库自动缺量补单 + */ + @TableField(value = "ullageFill") + private Boolean ullageFill; + + /** + * 是否只采集预验收产品 + */ + @TableField(value = "scanPreIn") + private Boolean scanPreIn; + + /** + * 是否访问库存 + */ + @TableField(value = "vailInv") + private Boolean vailInv; + + /** + * 允许验收自助平台单据 + */ + @TableField(value = "entrutSpms") + private Boolean entrutSpms; + + /** + * 是否强制三期校验 + */ + @TableField(value = "codeFillCheck") + private Boolean codeFillCheck; + + /** + * 默认分库 + */ + @TableField(value = "defaultSubInv") + private Boolean defaultSubInv; + + /** + * 默认仓库 + */ + @TableField(value = "defaultInv") + private Boolean defaultInv; + + /** + * 订单详情展示方式:0:根据批次号展示,1:根据条码展示 + */ + @TableField(value = "orderVisibleType") + private Boolean orderVisibleType; + + /** + * 是否校验复制单据 + */ + @TableField(value = "checkCopy") + private Boolean checkCopy; + + /** + * 是否二次校验复制单据 + */ + @TableField(value = "secCheckCopy") + private Boolean secCheckCopy; + + /** + * 第三方系统单据类型 + */ + @TableField(value = "originAction") + private String originAction; + + /** + * 是否预入库 + */ + @TableField(value = "advanceType") + private Boolean advanceType; + + /** + * 是否流转 + */ + @TableField(value = "changeEnable") + private Boolean changeEnable; + + /** + * 是否供应商使用 + */ + @TableField(value = "spUse") + private Boolean spUse; + + /** + * 是否预验收单据类型 + */ + @TableField(value = "preIn") + private Boolean preIn; + + /** + * 缺量补单是否全量补单 + */ + @TableField(value = "supplementAll") + private Boolean supplementAll; + + /** + * 创建人 + */ + @TableField(value = "`createUser`") + private String createUser; + + /** + * 创建时间 + */ + @TableField(value = "createTime") + private Date createTime; + + /** + * 更新人 + */ + @TableField(value = "updateUser") + private String updateUser; + + public static final String COL_ID = "id"; + + public static final String COL_MAINACTION = "mainAction"; + + public static final String COL_ACTION = "action"; + + public static final String COL_NAME = "name"; + + public static final String COL_ENABLE = "enable"; + + public static final String COL_REMARK = "remark"; + + public static final String COL_THIRDSYSFK = "thirdSysFk"; + + public static final String COL_GENUNIT = "genUnit"; + + public static final String COL_INNERORDER = "innerOrder"; + + public static final String COL_SECCHECKENABLE = "secCheckEnable"; + + public static final String COL_CHECKENABLE = "checkEnable"; + + public static final String COL_CHECKUDIMS = "checkUdims"; + + public static final String COL_CHECKPDAED = "checkPdaEd"; + + public static final String COL_CHECKPDAUN = "checkPdaUn"; + + public static final String COL_CHECKPC = "checkPc"; + + public static final String COL_CHECKWEBNEW = "checkWebNew"; + + public static final String COL_CHECKSP = "checkSp"; + + public static final String COL_CHECKCHANGE = "checkChange"; + + public static final String COL_SECCHECKUDIMS = "secCheckUdims"; + + public static final String COL_SECCHECKPDAED = "secCheckPdaEd"; + + public static final String COL_SECCHECKPDAUN = "secCheckPdaUn"; + + public static final String COL_SECCHECKPC = "secCheckPc"; + + public static final String COL_SECCHECKWEBNEW = "secCheckWebNew"; + + public static final String COL_SECCHECKCHANGE = "secCheckChange"; + + public static final String COL_SECCHECKSP = "secCheckSp"; + + public static final String COL_CORPTYPE = "corpType"; + + public static final String COL_SUPPLEMENTORDERTYPE = "supplementOrderType"; + + public static final String COL_CHECKBALANCE = "checkBalance"; + + public static final String COL_SECCHECKBALANCE = "secCheckBalance"; + + public static final String COL_USEDYCOUNT = "useDyCount"; + + public static final String COL_EXPIRETIP = "expireTip"; + + public static final String COL_UPDATETIME = "updateTime"; + + public static final String COL_DEFAULTUNIT = "defaultUnit"; + + public static final String COL_PREFIX = "prefix"; + + public static final String COL_OUTTOSPMS = "outToSpms"; + + public static final String COL_ULLAGEFILL = "ullageFill"; + + public static final String COL_SCANPREIN = "scanPreIn"; + + public static final String COL_VAILINV = "vailInv"; + + public static final String COL_ENTRUTSPMS = "entrutSpms"; + + public static final String COL_CODEFILLCHECK = "codeFillCheck"; + + public static final String COL_DEFAULTSUBINV = "defaultSubInv"; + + public static final String COL_DEFAULTINV = "defaultInv"; + + public static final String COL_ORDERVISIBLETYPE = "orderVisibleType"; + + public static final String COL_CHECKCOPY = "checkCopy"; + + public static final String COL_SECCHECKCOPY = "secCheckCopy"; + + public static final String COL_ORIGINACTION = "originAction"; + + public static final String COL_ADVANCETYPE = "advanceType"; + + public static final String COL_CHANGEENABLE = "changeEnable"; + + public static final String COL_SPUSE = "spUse"; + + public static final String COL_PREIN = "preIn"; + + public static final String COL_SUPPLEMENTALL = "supplementAll"; + + public static final String COL_CREATEUSER = "createUser"; + + public static final String COL_CREATETIME = "createTime"; + + public static final String COL_UPDATEUSER = "updateUser"; +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/entity/basic/BasicCorpEntity.java b/src/main/java/com/glxp/mipsdl/entity/basic/BasicCorpEntity.java new file mode 100644 index 0000000..3b8e4e7 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/entity/basic/BasicCorpEntity.java @@ -0,0 +1,200 @@ +package com.glxp.mipsdl.entity.basic; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +import java.util.Date; + +/** + * 往来单位字典表 + */ +@Data +@TableName(value = "basic_corp") +public class BasicCorpEntity { + + @TableId(value = "id", type = IdType.AUTO) + private Integer id; + + /** + * 往来单位编码 + */ + @TableField(value = "erpId") + private String erpId; + + /** + * 往来单位名称 + */ + @TableField(value = "`name`") + private String name; + + /** + * 往来单位简称 + */ + @TableField(value = "spell") + private String spell; + + /** + * 地址 + */ + @TableField(value = "addr") + private String addr; + + /** + * 状态 + */ + @TableField(value = "`status`") + private Integer status; + + /** + * 类型 + */ + @TableField(value = "`type`") + private String type; + + /** + * 联系人 + */ + @TableField(value = "contact") + private String contact; + + /** + * 联系电话 + */ + @TableField(value = "mobile") + private String mobile; + + @TableField(value = "creditNo") + private String creditNo; + + /** + * 第三方平台ID(备用) + */ + @TableField(value = "thirdId") + private String thirdId; + + @TableField(value = "thirdId1") + private String thirdId1; + + @TableField(value = "thirdId2") + private String thirdId2; + + @TableField(value = "thirdId3") + private String thirdId3; + + @TableField(value = "thirdId4") + private String thirdId4; + + @TableField(value = "thirdName") + private String thirdName; + + @TableField(value = "thirdName1") + private String thirdName1; + + @TableField(value = "thirdName2") + private String thirdName2; + + @TableField(value = "thirdName3") + private String thirdName3; + + @TableField(value = "thirdName4") + private String thirdName4; + + /** + * 往来单位类型:1.客户,2:供应商,3:内部科室,4.特殊往来 + */ + @TableField(value = "corpType") + private Integer corpType; + + /** + * 客户单据:1.患者,2.客户 + */ + @TableField(value = "outType") + private Integer outType; + + /** + * 创建人 + */ + @TableField(value = "`createUser`") + private String createUser; + + /** + * 创建时间 + */ + @TableField(value = "createTime") + private Date createTime; + + /** + * 更新人 + */ + @TableField(value = "updateUser") + private String updateUser; + + /** + * 更新时间 + */ + @TableField(value = "updateTime") + private Date updateTime; + + /** + * 备注 + */ + @TableField(value = "remark") + private String remark; + + public static final String COL_ID = "id"; + + public static final String COL_ERPID = "erpId"; + + public static final String COL_NAME = "name"; + + public static final String COL_SPELL = "spell"; + + public static final String COL_ADDR = "addr"; + + public static final String COL_STATUS = "status"; + + public static final String COL_TYPE = "type"; + + public static final String COL_CONTACT = "contact"; + + public static final String COL_MOBILE = "mobile"; + + public static final String COL_CREDITNO = "creditNo"; + + public static final String COL_THIRDID = "thirdId"; + + public static final String COL_THIRDID1 = "thirdId1"; + + public static final String COL_THIRDID2 = "thirdId2"; + + public static final String COL_THIRDID3 = "thirdId3"; + + public static final String COL_THIRDID4 = "thirdId4"; + + public static final String COL_THIRDNAME = "thirdName"; + + public static final String COL_THIRDNAME1 = "thirdName1"; + + public static final String COL_THIRDNAME2 = "thirdName2"; + + public static final String COL_THIRDNAME3 = "thirdName3"; + + public static final String COL_THIRDNAME4 = "thirdName4"; + + public static final String COL_CORPTYPE = "corpType"; + + public static final String COL_OUTTYPE = "outType"; + + public static final String COL_CREATEUSER = "createUser"; + + public static final String COL_CREATETIME = "createTime"; + + public static final String COL_UPDATEUSER = "updateUser"; + + public static final String COL_UPDATETIME = "updateTime"; + + public static final String COL_REMARK = "remark"; +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/entity/basic/BasicProductsEntity.java b/src/main/java/com/glxp/mipsdl/entity/basic/BasicProductsEntity.java new file mode 100644 index 0000000..b6bd70e --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/entity/basic/BasicProductsEntity.java @@ -0,0 +1,467 @@ +package com.glxp.mipsdl.entity.basic; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +import java.util.Date; + +/** + * 耗材字典表 + */ +@Data +@TableName(value = "basic_products") +public class BasicProductsEntity { + @TableId(value = "id", type = IdType.AUTO) + private Integer id; + + /** + * UUID + */ + @TableField(value = "uuid") + private String uuid; + + /** + * 同步库原UUID + */ + @TableField(value = "originUuid") + private String originUuid; + + /** + * 最小销售产品标识 + */ + @TableField(value = "nameCode") + private String nameCode; + + /** + * 产品记录key(国家库) + */ + @TableField(value = "deviceRecordKey") + private String deviceRecordKey; + + /** + * 包装比例 + */ + @TableField(value = "packRatio") + private String packRatio; + + /** + * 包装单位 + */ + @TableField(value = "packUnit") + private String packUnit; + + /** + * 包装级别 + */ + @TableField(value = "packLevel") + private String packLevel; + + /** + * 包含下级数量 + */ + @TableField(value = "bhxjsl") + private Integer bhxjsl; + + /** + * 包含最小销售包装数量 + */ + @TableField(value = "bhzxxsbzsl") + private Integer bhzxxsbzsl; + + /** + * 最小包装单元内包含使用单元数量: +最小销售标识包含使用单元数量 + */ + @TableField(value = "zxxsbzbhsydysl") + private Integer zxxsbzbhsydysl; + + /** + * 包含下级产品编码 + */ + @TableField(value = "bhxjcpbm") + private String bhxjcpbm; + + /** + * 包装层级 + */ + @TableField(value = "bzcj") + private String bzcj; + + /** + * 产品名称,通用名称 + */ + @TableField(value = "cpmctymc") + private String cpmctymc; + + /** + * 产品类别 + */ + @TableField(value = "cplb") + private String cplb; + + /** + * 分类编码 + */ + @TableField(value = "flbm") + private String flbm; + + /** + * 规格型号 + */ + @TableField(value = "ggxh") + private String ggxh; + + /** + * 器械类别 + */ + @TableField(value = "qxlb") + private String qxlb; + + /** + * 统一社会信用代码证号 + */ + @TableField(value = "tyshxydm") + private String tyshxydm; + + /** + * 注册/备案人名称 + */ + @TableField(value = "ylqxzcrbarmc") + private String ylqxzcrbarmc; + + /** + * "注册/备案证号, + */ + @TableField(value = "zczbhhzbapzbh") + private String zczbhhzbapzbh; + + /** + * 注册/备案人名称英文名称 + */ + @TableField(value = "ylqxzcrbarywmc") + private String ylqxzcrbarywmc; + + /** + * 使用单元产品标识 + */ + @TableField(value = "sydycpbs") + private String sydycpbs; + + /** + * 上级产品标识 + */ + @TableField(value = "sjcpbm") + private String sjcpbm; + + /** + * 历史版本号,最高为最新 + */ + @TableField(value = "versionNumber") + private Integer versionNumber; + + /** + * 表示类型:1.主标识,2,使用单元标识,3.本体标识,4,包装标识 + */ + @TableField(value = "diType") + private Integer diType; + + /** + * 医保编码 + */ + @TableField(value = "ybbm") + private String ybbm; + + /** + * 商品条码 + */ + @TableField(value = "sptm") + private String sptm; + + /** + * 生产厂家 + */ + @TableField(value = "manufactory") + private String manufactory; + + /** + * 计量单位 + */ + @TableField(value = "measname") + private String measname; + + /** + * 0:UDI,1:第三方产品编码 + */ + @TableField(value = "productType") + private Integer productType; + + /** + * 是否包含批号 + */ + @TableField(value = "scbssfbhph") + private String scbssfbhph; + + /** + * 是否包含序列号 + */ + @TableField(value = "scbssfbhxlh") + private String scbssfbhxlh; + + /** + * 是否包含生产日期 + */ + @TableField(value = "scbssfbhscrq") + private String scbssfbhscrq; + + /** + * 是否包含失效日期 + */ + @TableField(value = "scbssfbhsxrq") + private String scbssfbhsxrq; + + /** + * 产品描述 + */ + @TableField(value = "cpms") + private String cpms; + + /** + * 是否允许无批次号扫码 + */ + @TableField(value = "allowNoBatch") + private Boolean allowNoBatch; + + /** + * 是否允许无生产日期扫码 + */ + @TableField(value = "allowNoExpire") + private Boolean allowNoExpire; + + /** + * 是否允许无失效日期扫码 + */ + @TableField(value = "allowNoProduct") + private Boolean allowNoProduct; + + /** + * 商品名称 + */ + @TableField(value = "spmc") + private String spmc; + + /** + * 产品类型(器械类别) + */ + @TableField(value = "cplx") + private String cplx; + + /** + * 耗材或者设备(产品类别) + */ + @TableField(value = "hchzsb") + private String hchzsb; + + /** + * 代理商 + */ + @TableField(value = "cpdls") + private String cpdls; + + /** + * 价格 + */ + @TableField(value = "price") + private Long price; + + /** + * 备注字段1 + */ + @TableField(value = "basicPrductRemak1") + private String basicPrductRemak1; + + /** + * 备注字段2 + */ + @TableField(value = "basicPrductRemak2") + private String basicPrductRemak2; + + /** + * 备注字段3 + */ + @TableField(value = "basicPrductRemak3") + private String basicPrductRemak3; + + /** + * 备注字段4 + */ + @TableField(value = "basicPrductRemak4") + private String basicPrductRemak4; + + /** + * 备注字段5 + */ + @TableField(value = "basicPrductRemak5") + private String basicPrductRemak5; + + /** + * 备注字段6 + */ + @TableField(value = "basicPrductRemak6") + private String basicPrductRemak6; + + /** + * 备注字段7 + */ + @TableField(value = "basicPrductRemak7") + private String basicPrductRemak7; + + /** + * 备注字段8 + */ + @TableField(value = "basicPrductRemak8") + private String basicPrductRemak8; + + /** + * 创建时间 + */ + @TableField(value = "createTime") + private Date createTime; + + /** + * 最後更新時間 + */ + @TableField(value = "updateTime") + private String updateTime; + + /** + * 创建人 + */ + @TableField(value = "`createUser`") + private String createUser; + + /** + * 更新人 + */ + @TableField(value = "updateUser") + private String updateUser; + + @TableField(value = "remark") + private String remark; + + public static final String COL_ID = "id"; + + public static final String COL_UUID = "uuid"; + + public static final String COL_ORIGINUUID = "originUuid"; + + public static final String COL_NAMECODE = "nameCode"; + + public static final String COL_DEVICERECORDKEY = "deviceRecordKey"; + + public static final String COL_PACKRATIO = "packRatio"; + + public static final String COL_PACKUNIT = "packUnit"; + + public static final String COL_PACKLEVEL = "packLevel"; + + public static final String COL_BHXJSL = "bhxjsl"; + + public static final String COL_BHZXXSBZSL = "bhzxxsbzsl"; + + public static final String COL_ZXXSBZBHSYDYSL = "zxxsbzbhsydysl"; + + public static final String COL_BHXJCPBM = "bhxjcpbm"; + + public static final String COL_BZCJ = "bzcj"; + + public static final String COL_CPMCTYMC = "cpmctymc"; + + public static final String COL_CPLB = "cplb"; + + public static final String COL_FLBM = "flbm"; + + public static final String COL_GGXH = "ggxh"; + + public static final String COL_QXLB = "qxlb"; + + public static final String COL_TYSHXYDM = "tyshxydm"; + + public static final String COL_YLQXZCRBARMC = "ylqxzcrbarmc"; + + public static final String COL_ZCZBHHZBAPZBH = "zczbhhzbapzbh"; + + public static final String COL_YLQXZCRBARYWMC = "ylqxzcrbarywmc"; + + public static final String COL_SYDYCPBS = "sydycpbs"; + + public static final String COL_SJCPBM = "sjcpbm"; + + public static final String COL_VERSIONNUMBER = "versionNumber"; + + public static final String COL_DITYPE = "diType"; + + public static final String COL_YBBM = "ybbm"; + + public static final String COL_SPTM = "sptm"; + + public static final String COL_MANUFACTORY = "manufactory"; + + public static final String COL_MEASNAME = "measname"; + + public static final String COL_PRODUCTTYPE = "productType"; + + public static final String COL_SCBSSFBHPH = "scbssfbhph"; + + public static final String COL_SCBSSFBHXLH = "scbssfbhxlh"; + + public static final String COL_SCBSSFBHSCRQ = "scbssfbhscrq"; + + public static final String COL_SCBSSFBHSXRQ = "scbssfbhsxrq"; + + public static final String COL_CPMS = "cpms"; + + public static final String COL_ALLOWNOBATCH = "allowNoBatch"; + + public static final String COL_ALLOWNOEXPIRE = "allowNoExpire"; + + public static final String COL_ALLOWNOPRODUCT = "allowNoProduct"; + + public static final String COL_SPMC = "spmc"; + + public static final String COL_CPLX = "cplx"; + + public static final String COL_HCHZSB = "hchzsb"; + + public static final String COL_CPDLS = "cpdls"; + + public static final String COL_PRICE = "price"; + + public static final String COL_BASICPRDUCTREMAK1 = "basicPrductRemak1"; + + public static final String COL_BASICPRDUCTREMAK2 = "basicPrductRemak2"; + + public static final String COL_BASICPRDUCTREMAK3 = "basicPrductRemak3"; + + public static final String COL_BASICPRDUCTREMAK4 = "basicPrductRemak4"; + + public static final String COL_BASICPRDUCTREMAK5 = "basicPrductRemak5"; + + public static final String COL_BASICPRDUCTREMAK6 = "basicPrductRemak6"; + + public static final String COL_BASICPRDUCTREMAK7 = "basicPrductRemak7"; + + public static final String COL_BASICPRDUCTREMAK8 = "basicPrductRemak8"; + + public static final String COL_CREATETIME = "createTime"; + + public static final String COL_UPDATETIME = "updateTime"; + + public static final String COL_CREATEUSER = "createUser"; + + public static final String COL_UPDATEUSER = "updateUser"; + + public static final String COL_REMARK = "remark"; +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/entity/basic/BasicUdirelEntity.java b/src/main/java/com/glxp/mipsdl/entity/basic/BasicUdirelEntity.java new file mode 100644 index 0000000..b56abb6 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/entity/basic/BasicUdirelEntity.java @@ -0,0 +1,195 @@ +package com.glxp.mipsdl.entity.basic; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +import java.util.Date; + +/** + * 耗材字典关联表 + */ +@Data +@TableName(value = "basic_udirel") +public class BasicUdirelEntity { + + @TableId(value = "id", type = IdType.AUTO) + private Integer id; + + /** + * 字典UUID + */ + @TableField(value = "uuid") + private String uuid; + + /** + * 第三方主系统产品ID + */ + @TableField(value = "mainId") + private String mainId; + + /** + * 第三方产品ID + */ + @TableField(value = "thirdId") + private String thirdId; + + /** + * 第三方产品ID1 + */ + @TableField(value = "thirdId1") + private String thirdId1; + + /** + * 第三方产品ID2 + */ + @TableField(value = "thirdId2") + private String thirdId2; + + /** + * 第三方产品ID3 + */ + @TableField(value = "thirdId3") + private String thirdId3; + + /** + * 第三方产品ID4 + */ + @TableField(value = "thirdId4") + private String thirdId4; + + /** + * 阳光采购平台编码 + */ + @TableField(value = "udplatCode") + private String udplatCode; + + /** + * 是否以使用单元入库 + */ + @TableField(value = "isUseDy") + private Boolean isUseDy; + + /** + * 是否禁用 + */ + @TableField(value = "isDisable") + private Boolean isDisable; + + /** + * 是否锁定,锁定后不能再继续编辑 + */ + @TableField(value = "isLock") + private Boolean isLock; + + /** + * 1.未提交,2.已提交,3.已锁定 + */ + @TableField(value = "lockStatus") + private Integer lockStatus; + + /** + * 是否寄售(预入库) + */ + @TableField(value = "isAdavence") + private Boolean isAdavence; + + /** + * 是否允许多次使用出库 + */ + @TableField(value = "useMuti") + private Boolean useMuti; + + /** + * 最小包装单元可使用次数 + */ + @TableField(value = "useNum") + private Integer useNum; + + /** + * 过滤供应商用 + */ + @TableField(value = "supName") + private String supName; + + /** + * 创建时间 + */ + @TableField(value = "createTime") + private Date createTime; + + /** + * 最後更新時間 + */ + @TableField(value = "updateTime") + private String updateTime; + + /** + * 修改时间 + */ + @TableField(value = "modifyTime") + private Date modifyTime; + + /** + * 创建人 + */ + @TableField(value = "`createUser`") + private String createUser; + + /** + * 更新人 + */ + @TableField(value = "updateUser") + private String updateUser; + + @TableField(value = "remark") + private String remark; + + public static final String COL_ID = "id"; + + public static final String COL_UUID = "uuid"; + + public static final String COL_MAINID = "mainId"; + + public static final String COL_THIRDID = "thirdId"; + + public static final String COL_THIRDID1 = "thirdId1"; + + public static final String COL_THIRDID2 = "thirdId2"; + + public static final String COL_THIRDID3 = "thirdId3"; + + public static final String COL_THIRDID4 = "thirdId4"; + + public static final String COL_UDPLATCODE = "udplatCode"; + + public static final String COL_ISUSEDY = "isUseDy"; + + public static final String COL_ISDISABLE = "isDisable"; + + public static final String COL_ISLOCK = "isLock"; + + public static final String COL_LOCKSTATUS = "lockStatus"; + + public static final String COL_ISADAVENCE = "isAdavence"; + + public static final String COL_USEMUTI = "useMuti"; + + public static final String COL_USENUM = "useNum"; + + public static final String COL_SUPNAME = "supName"; + + public static final String COL_CREATETIME = "createTime"; + + public static final String COL_UPDATETIME = "updateTime"; + + public static final String COL_MODIFYTIME = "modifyTime"; + + public static final String COL_CREATEUSER = "createUser"; + + public static final String COL_UPDATEUSER = "updateUser"; + + public static final String COL_REMARK = "remark"; +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/entity/inout/IoCodeEntity.java b/src/main/java/com/glxp/mipsdl/entity/inout/IoCodeEntity.java new file mode 100644 index 0000000..e2325a1 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/entity/inout/IoCodeEntity.java @@ -0,0 +1,182 @@ +package com.glxp.mipsdl.entity.inout; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +import java.util.Date; + +/** + * 单据正式码表 + */ +@Data +@TableName(value = "io_code") +public class IoCodeEntity { + + @TableId(value = "id", type = IdType.AUTO) + private Integer id; + + /** + * UDI码 + */ + @TableField(value = "code") + private String code; + + /** + * 主单据类型(入库,出库) + */ + @TableField(value = "mainAction") + private String mainAction; + + /** + * 单据类型 + */ + @TableField(value = "`action`") + private String action; + + /** + * 订单号外键 + */ + @TableField(value = "orderId") + private String orderId; + + /** + * 手持终端订单号 + */ + @TableField(value = "corpOrderId") + private String corpOrderId; + + /** + * DI标识 + */ + @TableField(value = "nameCode") + private String nameCode; + + /** + * 批次号 + */ + @TableField(value = "batchNo") + private String batchNo; + + /** + * 生产日期 + */ + @TableField(value = "produceDate") + private String produceDate; + + /** + * 失效日期 + */ + @TableField(value = "expireDate") + private String expireDate; + + /** + * 序列号 + */ + @TableField(value = "serialNo") + private String serialNo; + + /** + * 包装级别 + */ + @TableField(value = "packageLevel") + private String packageLevel; + + /** + * 供应商ID外键 + */ + @TableField(value = "supId") + private String supId; + + /** + * 耗材字典ID外键 + */ + @TableField(value = "relId") + private Integer relId; + + /** + * 扫码数量 + */ + @TableField(value = "`count`") + private Integer count; + + /** + * 实际数量 + */ + @TableField(value = "reCount") + private Integer reCount; + + /** + * 部门编码外键 + */ + @TableField(value = "deptCode") + private String deptCode; + + /** + * 仓库编码外键 + */ + @TableField(value = "invCode") + private String invCode; + + /** + * 货位编码外键 + */ + @TableField(value = "warehouseCode") + private String warehouseCode; + + /** + * 更新日期 + */ + @TableField(value = "updateTime") + private Date updateTime; + + /** + * 创建日期 + */ + @TableField(value = "createTime") + private Date createTime; + + public static final String COL_ID = "id"; + + public static final String COL_CODE = "code"; + + public static final String COL_MAINACTION = "mainAction"; + + public static final String COL_ACTION = "action"; + + public static final String COL_ORDERID = "orderId"; + + public static final String COL_CORPORDERID = "corpOrderId"; + + public static final String COL_NAMECODE = "nameCode"; + + public static final String COL_BATCHNO = "batchNo"; + + public static final String COL_PRODUCEDATE = "produceDate"; + + public static final String COL_EXPIREDATE = "expireDate"; + + public static final String COL_SERIALNO = "serialNo"; + + public static final String COL_PACKAGELEVEL = "packageLevel"; + + public static final String COL_SUPID = "supId"; + + public static final String COL_RELID = "relId"; + + public static final String COL_COUNT = "count"; + + public static final String COL_RECOUNT = "reCount"; + + public static final String COL_DEPTCODE = "deptCode"; + + public static final String COL_INVCODE = "invCode"; + + public static final String COL_WAREHOUSECODE = "warehouseCode"; + + public static final String COL_UPDATETIME = "updateTime"; + + public static final String COL_CREATETIME = "createTime"; +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/entity/inout/IoCodeTempEntity.java b/src/main/java/com/glxp/mipsdl/entity/inout/IoCodeTempEntity.java new file mode 100644 index 0000000..1aad568 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/entity/inout/IoCodeTempEntity.java @@ -0,0 +1,182 @@ +package com.glxp.mipsdl.entity.inout; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +import java.util.Date; + +/** + * 单据临时码表 + */ +@Data +@TableName(value = "io_code_temp") +public class IoCodeTempEntity { + + @TableId(value = "id", type = IdType.AUTO) + private Integer id; + + /** + * UDI码 + */ + @TableField(value = "code") + private String code; + + /** + * 主单据类型(入库,出库) + */ + @TableField(value = "mainAction") + private String mainAction; + + /** + * 单据类型 + */ + @TableField(value = "`action`") + private String action; + + /** + * 订单号外键 + */ + @TableField(value = "orderId") + private String orderId; + + /** + * 手持终端订单号 + */ + @TableField(value = "corpOrderId") + private String corpOrderId; + + /** + * DI标识 + */ + @TableField(value = "nameCode") + private String nameCode; + + /** + * 批次号 + */ + @TableField(value = "batchNo") + private String batchNo; + + /** + * 生产日期 + */ + @TableField(value = "produceDate") + private String produceDate; + + /** + * 失效日期 + */ + @TableField(value = "expireDate") + private String expireDate; + + /** + * 序列号 + */ + @TableField(value = "serialNo") + private String serialNo; + + /** + * 包装级别 + */ + @TableField(value = "packageLevel") + private String packageLevel; + + /** + * 供应商ID外键 + */ + @TableField(value = "supId") + private String supId; + + /** + * 耗材字典ID外键 + */ + @TableField(value = "relId") + private Integer relId; + + /** + * 扫码数量 + */ + @TableField(value = "`count`") + private Integer count; + + /** + * 实际数量 + */ + @TableField(value = "reCount") + private Integer reCount; + + /** + * 部门编码外键 + */ + @TableField(value = "deptCode") + private String deptCode; + + /** + * 仓库编码外键 + */ + @TableField(value = "invCode") + private String invCode; + + /** + * 货位编码外键 + */ + @TableField(value = "warehouseCode") + private String warehouseCode; + + /** + * 更新日期 + */ + @TableField(value = "updateTime") + private Date updateTime; + + /** + * 创建日期 + */ + @TableField(value = "createTime") + private Date createTime; + + public static final String COL_ID = "id"; + + public static final String COL_CODE = "code"; + + public static final String COL_MAINACTION = "mainAction"; + + public static final String COL_ACTION = "action"; + + public static final String COL_ORDERID = "orderId"; + + public static final String COL_CORPORDERID = "corpOrderId"; + + public static final String COL_NAMECODE = "nameCode"; + + public static final String COL_BATCHNO = "batchNo"; + + public static final String COL_PRODUCEDATE = "produceDate"; + + public static final String COL_EXPIREDATE = "expireDate"; + + public static final String COL_SERIALNO = "serialNo"; + + public static final String COL_PACKAGELEVEL = "packageLevel"; + + public static final String COL_SUPID = "supId"; + + public static final String COL_RELID = "relId"; + + public static final String COL_COUNT = "count"; + + public static final String COL_RECOUNT = "reCount"; + + public static final String COL_DEPTCODE = "deptCode"; + + public static final String COL_INVCODE = "invCode"; + + public static final String COL_WAREHOUSECODE = "warehouseCode"; + + public static final String COL_UPDATETIME = "updateTime"; + + public static final String COL_CREATETIME = "createTime"; +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/entity/inout/IoOrderDetailBizEntity.java b/src/main/java/com/glxp/mipsdl/entity/inout/IoOrderDetailBizEntity.java new file mode 100644 index 0000000..41581fd --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/entity/inout/IoOrderDetailBizEntity.java @@ -0,0 +1,246 @@ +package com.glxp.mipsdl.entity.inout; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +import java.math.BigDecimal; + +/** + * 单据业务详情表 + */ +@Data +@TableName(value = "io_order_detail_biz") +public class IoOrderDetailBizEntity { + + @TableId(value = "id", type = IdType.AUTO) + private Integer id; + + /** + * 订单号外键 + */ + @TableField(value = "orderIdFk") + private String orderIdFk; + + /** + * 耗材字典ID外键 + */ + @TableField(value = "bindRlFk") + private String bindRlFk; + + /** + * DI信息UUID外键 + */ + @TableField(value = "uuidFk") + private String uuidFk; + + /** + * DI + */ + @TableField(value = "nameCode") + private String nameCode; + + /** + * 批次号 + */ + @TableField(value = "batchNo") + private String batchNo; + + /** + * 生产日期 + */ + @TableField(value = "productDate") + private String productDate; + + /** + * 失效日期 + */ + @TableField(value = "expireDate") + private String expireDate; + + /** + * 产品通用名称 + */ + @TableField(value = "coName") + private String coName; + + /** + * 注册证号 + */ + @TableField(value = "certCode") + private String certCode; + + /** + * 医疗器械注册备案证号 + */ + @TableField(value = "ylqxzcrbarmc") + private String ylqxzcrbarmc; + + /** + * 生产企业 + */ + @TableField(value = "manufacturer") + private String manufacturer; + + /** + * 计量单位 + */ + @TableField(value = "measname") + private String measname; + + /** + * 规格型号 + */ + @TableField(value = "spec") + private String spec; + + /** + * 价格 + */ + @TableField(value = "price") + private BigDecimal price; + + /** + * 销售清单号 + */ + @TableField(value = "secSalesListNo") + private String secSalesListNo; + + /** + * 发票第一票 + */ + @TableField(value = "firstSalesInvNo") + private String firstSalesInvNo; + + /** + * 发票第二票 + */ + @TableField(value = "secSalesInvNo") + private String secSalesInvNo; + + /** + * 发票有效期 + */ + @TableField(value = "invoiceDate") + private String invoiceDate; + + /** + * 供应商ID外键 + */ + @TableField(value = "supId") + private String supId; + + /** + * 绑定供应商状态 + */ + @TableField(value = "bindSupStatus") + private String bindSupStatus; + + /** + * 单据数量 + */ + @TableField(value = "`count`") + private Integer count; + + /** + * 单据实际数量 + */ + @TableField(value = "reCount") + private Integer reCount; + + /** + * 备注 + */ + @TableField(value = "remark") + private String remark; + + /** + * 扩展字段1 + */ + @TableField(value = "remark1") + private String remark1; + + /** + * 扩展字段2 + */ + @TableField(value = "remark2") + private String remark2; + + /** + * 扩展字段3 + */ + @TableField(value = "remark3") + private String remark3; + + /** + * 扩展字段4 + */ + @TableField(value = "remark4") + private String remark4; + + /** + * 扩展字段5 + */ + @TableField(value = "remark5") + private String remark5; + + public static final String COL_ID = "id"; + + public static final String COL_ORDERIDFK = "orderIdFk"; + + public static final String COL_BINDRLFK = "bindRlFk"; + + public static final String COL_UUIDFK = "uuidFk"; + + public static final String COL_NAMECODE = "nameCode"; + + public static final String COL_BATCHNO = "batchNo"; + + public static final String COL_PRODUCTDATE = "productDate"; + + public static final String COL_EXPIREDATE = "expireDate"; + + public static final String COL_CONAME = "coName"; + + public static final String COL_CERTCODE = "certCode"; + + public static final String COL_YLQXZCRBARMC = "ylqxzcrbarmc"; + + public static final String COL_MANUFACTURER = "manufacturer"; + + public static final String COL_MEASNAME = "measname"; + + public static final String COL_SPEC = "spec"; + + public static final String COL_PRICE = "price"; + + public static final String COL_SECSALESLISTNO = "secSalesListNo"; + + public static final String COL_FIRSTSALESINVNO = "firstSalesInvNo"; + + public static final String COL_SECSALESINVNO = "secSalesInvNo"; + + public static final String COL_INVOICEDATE = "invoiceDate"; + + public static final String COL_SUPID = "supId"; + + public static final String COL_BINDSUPSTATUS = "bindSupStatus"; + + public static final String COL_COUNT = "count"; + + public static final String COL_RECOUNT = "reCount"; + + public static final String COL_REMARK = "remark"; + + public static final String COL_REMARK1 = "remark1"; + + public static final String COL_REMARK2 = "remark2"; + + public static final String COL_REMARK3 = "remark3"; + + public static final String COL_REMARK4 = "remark4"; + + public static final String COL_REMARK5 = "remark5"; +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/entity/inout/IoOrderDetailCodeEntity.java b/src/main/java/com/glxp/mipsdl/entity/inout/IoOrderDetailCodeEntity.java new file mode 100644 index 0000000..9fd4177 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/entity/inout/IoOrderDetailCodeEntity.java @@ -0,0 +1,246 @@ +package com.glxp.mipsdl.entity.inout; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +import java.math.BigDecimal; + +/** + * 单据扫码详情表 + */ +@Data +@TableName(value = "io_order_detail_code") +public class IoOrderDetailCodeEntity { + + @TableId(value = "id", type = IdType.AUTO) + private Integer id; + + /** + * 订单号外键 + */ + @TableField(value = "orderIdFk") + private String orderIdFk; + + /** + * 耗材字典ID外键 + */ + @TableField(value = "bindRlFk") + private String bindRlFk; + + /** + * DI信息UUID外键 + */ + @TableField(value = "uuidFk") + private String uuidFk; + + /** + * DI + */ + @TableField(value = "nameCode") + private String nameCode; + + /** + * 批次号 + */ + @TableField(value = "batchNo") + private String batchNo; + + /** + * 生产日期 + */ + @TableField(value = "productDate") + private String productDate; + + /** + * 失效日期 + */ + @TableField(value = "expireDate") + private String expireDate; + + /** + * 产品通用名称 + */ + @TableField(value = "coName") + private String coName; + + /** + * 注册证号 + */ + @TableField(value = "certCode") + private String certCode; + + /** + * 医疗器械注册备案证号 + */ + @TableField(value = "ylqxzcrbarmc") + private String ylqxzcrbarmc; + + /** + * 生产企业 + */ + @TableField(value = "manufacturer") + private String manufacturer; + + /** + * 计量单位 + */ + @TableField(value = "measname") + private String measname; + + /** + * 规格型号 + */ + @TableField(value = "spec") + private String spec; + + /** + * 价格 + */ + @TableField(value = "price") + private BigDecimal price; + + /** + * 销售清单号 + */ + @TableField(value = "secSalesListNo") + private String secSalesListNo; + + /** + * 发票第一票 + */ + @TableField(value = "firstSalesInvNo") + private String firstSalesInvNo; + + /** + * 发票第二票 + */ + @TableField(value = "secSalesInvNo") + private String secSalesInvNo; + + /** + * 发票有效期 + */ + @TableField(value = "invoiceDate") + private String invoiceDate; + + /** + * 供应商ID外键 + */ + @TableField(value = "supId") + private String supId; + + /** + * 绑定供应商状态 + */ + @TableField(value = "bindSupStatus") + private String bindSupStatus; + + /** + * 单据数量 + */ + @TableField(value = "`count`") + private Integer count; + + /** + * 单据实际数量 + */ + @TableField(value = "reCount") + private Integer reCount; + + /** + * 备注 + */ + @TableField(value = "remark") + private String remark; + + /** + * 扩展字段1 + */ + @TableField(value = "remark1") + private String remark1; + + /** + * 扩展字段2 + */ + @TableField(value = "remark2") + private String remark2; + + /** + * 扩展字段3 + */ + @TableField(value = "remark3") + private String remark3; + + /** + * 扩展字段4 + */ + @TableField(value = "remark4") + private String remark4; + + /** + * 扩展字段5 + */ + @TableField(value = "remark5") + private String remark5; + + public static final String COL_ID = "id"; + + public static final String COL_ORDERIDFK = "orderIdFk"; + + public static final String COL_BINDRLFK = "bindRlFk"; + + public static final String COL_UUIDFK = "uuidFk"; + + public static final String COL_NAMECODE = "nameCode"; + + public static final String COL_BATCHNO = "batchNo"; + + public static final String COL_PRODUCTDATE = "productDate"; + + public static final String COL_EXPIREDATE = "expireDate"; + + public static final String COL_CONAME = "coName"; + + public static final String COL_CERTCODE = "certCode"; + + public static final String COL_YLQXZCRBARMC = "ylqxzcrbarmc"; + + public static final String COL_MANUFACTURER = "manufacturer"; + + public static final String COL_MEASNAME = "measname"; + + public static final String COL_SPEC = "spec"; + + public static final String COL_PRICE = "price"; + + public static final String COL_SECSALESLISTNO = "secSalesListNo"; + + public static final String COL_FIRSTSALESINVNO = "firstSalesInvNo"; + + public static final String COL_SECSALESINVNO = "secSalesInvNo"; + + public static final String COL_INVOICEDATE = "invoiceDate"; + + public static final String COL_SUPID = "supId"; + + public static final String COL_BINDSUPSTATUS = "bindSupStatus"; + + public static final String COL_COUNT = "count"; + + public static final String COL_RECOUNT = "reCount"; + + public static final String COL_REMARK = "remark"; + + public static final String COL_REMARK1 = "remark1"; + + public static final String COL_REMARK2 = "remark2"; + + public static final String COL_REMARK3 = "remark3"; + + public static final String COL_REMARK4 = "remark4"; + + public static final String COL_REMARK5 = "remark5"; +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/entity/inout/IoOrderDetailResultEntity.java b/src/main/java/com/glxp/mipsdl/entity/inout/IoOrderDetailResultEntity.java new file mode 100644 index 0000000..1f84bde --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/entity/inout/IoOrderDetailResultEntity.java @@ -0,0 +1,246 @@ +package com.glxp.mipsdl.entity.inout; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +import java.math.BigDecimal; + +/** + * 单据扫码明细表 + */ +@Data +@TableName(value = "io_order_detail_result") +public class IoOrderDetailResultEntity { + + @TableId(value = "id", type = IdType.AUTO) + private Integer id; + + /** + * 订单号外键 + */ + @TableField(value = "orderIdFk") + private String orderIdFk; + + /** + * 耗材字典ID外键 + */ + @TableField(value = "bindRlFk") + private String bindRlFk; + + /** + * DI信息UUID外键 + */ + @TableField(value = "uuidFk") + private String uuidFk; + + /** + * DI + */ + @TableField(value = "nameCode") + private String nameCode; + + /** + * 批次号 + */ + @TableField(value = "batchNo") + private String batchNo; + + /** + * 生产日期 + */ + @TableField(value = "productDate") + private String productDate; + + /** + * 失效日期 + */ + @TableField(value = "expireDate") + private String expireDate; + + /** + * 产品通用名称 + */ + @TableField(value = "coName") + private String coName; + + /** + * 注册证号 + */ + @TableField(value = "certCode") + private String certCode; + + /** + * 医疗器械注册备案证号 + */ + @TableField(value = "ylqxzcrbarmc") + private String ylqxzcrbarmc; + + /** + * 生产企业 + */ + @TableField(value = "manufacturer") + private String manufacturer; + + /** + * 计量单位 + */ + @TableField(value = "measname") + private String measname; + + /** + * 规格型号 + */ + @TableField(value = "spec") + private String spec; + + /** + * 价格 + */ + @TableField(value = "price") + private BigDecimal price; + + /** + * 销售清单号 + */ + @TableField(value = "secSalesListNo") + private String secSalesListNo; + + /** + * 发票第一票 + */ + @TableField(value = "firstSalesInvNo") + private String firstSalesInvNo; + + /** + * 发票第二票 + */ + @TableField(value = "secSalesInvNo") + private String secSalesInvNo; + + /** + * 发票有效期 + */ + @TableField(value = "invoiceDate") + private String invoiceDate; + + /** + * 供应商ID外键 + */ + @TableField(value = "supId") + private String supId; + + /** + * 绑定供应商状态 + */ + @TableField(value = "bindSupStatus") + private String bindSupStatus; + + /** + * 单据数量 + */ + @TableField(value = "`count`") + private Integer count; + + /** + * 扫码数量 + */ + @TableField(value = "reCount") + private Integer reCount; + + /** + * 备注 + */ + @TableField(value = "remark") + private String remark; + + /** + * 扩展字段1 + */ + @TableField(value = "remark1") + private String remark1; + + /** + * 扩展字段2 + */ + @TableField(value = "remark2") + private String remark2; + + /** + * 扩展字段3 + */ + @TableField(value = "remark3") + private String remark3; + + /** + * 扩展字段4 + */ + @TableField(value = "remark4") + private String remark4; + + /** + * 扩展字段5 + */ + @TableField(value = "remark5") + private String remark5; + + public static final String COL_ID = "id"; + + public static final String COL_ORDERIDFK = "orderIdFk"; + + public static final String COL_BINDRLFK = "bindRlFk"; + + public static final String COL_UUIDFK = "uuidFk"; + + public static final String COL_NAMECODE = "nameCode"; + + public static final String COL_BATCHNO = "batchNo"; + + public static final String COL_PRODUCTDATE = "productDate"; + + public static final String COL_EXPIREDATE = "expireDate"; + + public static final String COL_CONAME = "coName"; + + public static final String COL_CERTCODE = "certCode"; + + public static final String COL_YLQXZCRBARMC = "ylqxzcrbarmc"; + + public static final String COL_MANUFACTURER = "manufacturer"; + + public static final String COL_MEASNAME = "measname"; + + public static final String COL_SPEC = "spec"; + + public static final String COL_PRICE = "price"; + + public static final String COL_SECSALESLISTNO = "secSalesListNo"; + + public static final String COL_FIRSTSALESINVNO = "firstSalesInvNo"; + + public static final String COL_SECSALESINVNO = "secSalesInvNo"; + + public static final String COL_INVOICEDATE = "invoiceDate"; + + public static final String COL_SUPID = "supId"; + + public static final String COL_BINDSUPSTATUS = "bindSupStatus"; + + public static final String COL_COUNT = "count"; + + public static final String COL_RECOUNT = "reCount"; + + public static final String COL_REMARK = "remark"; + + public static final String COL_REMARK1 = "remark1"; + + public static final String COL_REMARK2 = "remark2"; + + public static final String COL_REMARK3 = "remark3"; + + public static final String COL_REMARK4 = "remark4"; + + public static final String COL_REMARK5 = "remark5"; +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/entity/inout/IoOrderEntity.java b/src/main/java/com/glxp/mipsdl/entity/inout/IoOrderEntity.java new file mode 100644 index 0000000..5ad9f72 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/entity/inout/IoOrderEntity.java @@ -0,0 +1,278 @@ +package com.glxp.mipsdl.entity.inout; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +import java.util.Date; + +/** + * 单据主表 + */ +@Data +@TableName(value = "io_order") +public class IoOrderEntity { + + @TableId(value = "id", type = IdType.AUTO) + private Integer id; + + /** + * 单据号 + */ + @TableField(value = "billNo") + private String billNo; + + /** + * 手持终端订单号 + */ + @TableField(value = "corpOrderId") + private String corpOrderId; + + /** + * 主业务类型 + */ + @TableField(value = "mainAction") + private String mainAction; + + /** + * 业务类型 + */ + @TableField(value = "`action`") + private String action; + + /** + * 往来单位(供应商) + */ + @TableField(value = "fromCorp") + private String fromCorp; + + /** + * 往来部门 + */ + @TableField(value = "fromDeptCode") + private String fromDeptCode; + + /** + * 往来仓库 + */ + @TableField(value = "fromInvCode") + private String fromInvCode; + + /** + * 单据来源(1.UDIMS平台;2.网页新增;3.pda已校验;4.pda未校验;5.pc端扫码精灵) + */ + @TableField(value = "fromType") + private Integer fromType; + + /** + * 1:草稿;2:已提交待处理;3:处理成功待校验;4:处理异常;5:校验成功待审核;6:校验失败;7:审核通过;8:审核拒绝 + */ + @TableField(value = "`status`") + private Integer status; + + /** + * 1.草稿;2:已提交;3:已审核 + */ + @TableField(value = "dealStatus") + private Integer dealStatus; + + /** + * 创建人 + */ + @TableField(value = "`createUser`") + private String createUser; + + /** + * 创建时间 + */ + @TableField(value = "createTime") + private Date createTime; + + /** + * 更新人 + */ + @TableField(value = "updateUser") + private String updateUser; + + /** + * 更新时间 + */ + @TableField(value = "updateTime") + private Date updateTime; + + /** + * 验收人 + */ + @TableField(value = "reviewUser") + private String reviewUser; + + /** + * 验收时间 + */ + @TableField(value = "auditTime") + private Date auditTime; + + /** + * ID + */ + @TableField(value = "customerId") + private String customerId; + + /** + * 当前部门编码 + */ + @TableField(value = "deptCode") + private String deptCode; + + /** + * 当前仓库编码 + */ + @TableField(value = "invCode") + private String invCode; + + /** + * 单据流转 + */ + @TableField(value = "outChangeEnable") + private Boolean outChangeEnable; + + /** + * 单据流转上级单号 + */ + @TableField(value = "originUllageSupNo") + private String originUllageSupNo; + + /** + * 单据流转下级单号 + */ + @TableField(value = "ullageSupNo") + private String ullageSupNo; + + /** + * 平衡补单单号 + */ + @TableField(value = "supplementNo") + private String supplementNo; + + /** + * 第三方系统单号(提交后返回) + */ + @TableField(value = "thirdBillNo") + private String thirdBillNo; + + /** + * 复制单据单号,多个单号之间使用,隔开 + */ + @TableField(value = "replicateNo") + private String replicateNo; + + /** + * 预验收关联的出库单号,只有预验收入库才有 + */ + @TableField(value = "preOutBillNo") + private String preOutBillNo; + + /** + * 关联预验收入库单号(只有出库时需校验预验收库存才有) + */ + @TableField(value = "preInBillNo") + private String preInBillNo; + + /** + * 校验信息 + */ + @TableField(value = "errMsg") + private String errMsg; + + /** + * 单据打印备注 + */ + @TableField(value = "printRemark") + private String printRemark; + + /** + * 单据备注 + */ + @TableField(value = "remark") + private String remark; + + /** + * 单据类型:1.业务单据,2:扫码单据,3:正常单据(只在单据未提交之前有用) + */ + @TableField(value = "orderType") + private Integer orderType; + + /** + * 单据是否已验收完成 + */ + @TableField(value = "entrustEnd") + private Boolean entrustEnd; + + public static final String COL_ID = "id"; + + public static final String COL_BILLNO = "billNo"; + + public static final String COL_CORPORDERID = "corpOrderId"; + + public static final String COL_MAINACTION = "mainAction"; + + public static final String COL_ACTION = "action"; + + public static final String COL_FROMCORP = "fromCorp"; + + public static final String COL_FROMDEPTCODE = "fromDeptCode"; + + public static final String COL_FROMINVCODE = "fromInvCode"; + + public static final String COL_FROMTYPE = "fromType"; + + public static final String COL_STATUS = "status"; + + public static final String COL_DEALSTATUS = "dealStatus"; + + public static final String COL_CREATEUSER = "createUser"; + + public static final String COL_CREATETIME = "createTime"; + + public static final String COL_UPDATEUSER = "updateUser"; + + public static final String COL_UPDATETIME = "updateTime"; + + public static final String COL_REVIEWUSER = "reviewUser"; + + public static final String COL_AUDITTIME = "auditTime"; + + public static final String COL_CUSTOMERID = "customerId"; + + public static final String COL_DEPTCODE = "deptCode"; + + public static final String COL_INVCODE = "invCode"; + + public static final String COL_OUTCHANGEENABLE = "outChangeEnable"; + + public static final String COL_ORIGINULLAGESUPNO = "originUllageSupNo"; + + public static final String COL_ULLAGESUPNO = "ullageSupNo"; + + public static final String COL_SUPPLEMENTNO = "supplementNo"; + + public static final String COL_THIRDBILLNO = "thirdBillNo"; + + public static final String COL_REPLICATENO = "replicateNo"; + + public static final String COL_PREOUTBILLNO = "preOutBillNo"; + + public static final String COL_PREINBILLNO = "preInBillNo"; + + public static final String COL_ERRMSG = "errMsg"; + + public static final String COL_PRINTREMARK = "printRemark"; + + public static final String COL_REMARK = "remark"; + + public static final String COL_ORDERTYPE = "orderType"; + + public static final String COL_ENTRUSTEND = "entrustEnd"; +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/entity/inout/IoOrderUploadLogEntity.java b/src/main/java/com/glxp/mipsdl/entity/inout/IoOrderUploadLogEntity.java new file mode 100644 index 0000000..1f9ef52 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/entity/inout/IoOrderUploadLogEntity.java @@ -0,0 +1,88 @@ +package com.glxp.mipsdl.entity.inout; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +import java.util.Date; + +/** + * 单据上传日志表 + */ +@Data +@TableName(value = "io_order_upload_log") +public class IoOrderUploadLogEntity { + /** + * id + */ + @TableId(value = "id", type = IdType.AUTO) + private Integer id; + + /** + * 单据号 + */ + @TableField(value = "billNo") + private String billNo; + + /** + * 单据日期 + */ + @TableField(value = "billDate") + private Date billDate; + + /** + * 单据类型 + */ + @TableField(value = "billType") + private String billType; + + /** + * 第三方单据号 + */ + @TableField(value = "thrBillNo") + private String thrBillNo; + + /** + * 提交时间 + */ + @TableField(value = "submitTime") + private Date submitTime; + + /** + * 提交状态 0:未提交 1:正在处理 2:已提交 + */ + @TableField(value = "`status`") + private Integer status; + + /** + * 结果信息 + */ + @TableField(value = "`result`") + private String result; + + /** + * 单据来源:1:主动上传到第三方;2.被动接收第三方上传 + */ + @TableField(value = "fromType") + private Integer fromType; + + public static final String COL_ID = "id"; + + public static final String COL_BILLNO = "billNo"; + + public static final String COL_BILLDATE = "billDate"; + + public static final String COL_BILLTYPE = "billType"; + + public static final String COL_THRBILLNO = "thrBillNo"; + + public static final String COL_SUBMITTIME = "submitTime"; + + public static final String COL_STATUS = "status"; + + public static final String COL_RESULT = "result"; + + public static final String COL_FROMTYPE = "fromType"; +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/entity/pzhzd/YyUcloudV31SetEntity.java b/src/main/java/com/glxp/mipsdl/entity/pzhzd/YyUcloudV31SetEntity.java new file mode 100644 index 0000000..6ac5fa1 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/entity/pzhzd/YyUcloudV31SetEntity.java @@ -0,0 +1,18 @@ +package com.glxp.mipsdl.entity.pzhzd; + +import lombok.Data; + +@Data +public class YyUcloudV31SetEntity { + + private String ipUrl; + private String unitCode; + private String coperator; + private String userCode; + private String systemCode; + private String transType; + private String passwd; + private String envType; + + +} diff --git a/src/main/java/com/glxp/mipsdl/entity/system/SysErpLogEntity.java b/src/main/java/com/glxp/mipsdl/entity/system/SysErpLogEntity.java new file mode 100644 index 0000000..9bef4ae --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/entity/system/SysErpLogEntity.java @@ -0,0 +1,71 @@ +package com.glxp.mipsdl.entity.system; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +import java.util.Date; + +/** + * 第三方接口服务日志表 + */ +@Data +@TableName(value = "sys_erp_log") +public class SysErpLogEntity { + + /** + * id + */ + @TableId(value = "id", type = IdType.AUTO) + private Integer id; + + /** + * 请求路径 + */ + @TableField(value = "url") + private String url; + + /** + * 接口名/方法名 + */ + @TableField(value = "`name`") + private String name; + + /** + * 入参 + */ + @TableField(value = "params") + private String params; + + /** + * 结果 + */ + @TableField(value = "`result`") + private String result; + + /** + * 请求时间 + */ + @TableField(value = "createTime") + private Date createTime; + + /** + * 操作类型 interface::接口 third:请求第三方系统 + */ + @TableField(value = "`type`") + private String type; + + /** + * 处理状态 + */ + @TableField(value = "`status`") + private Integer status; + + /** + * 处理时长 + */ + @TableField(value = "time") + private Long time; +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/entity/system/SysHospConfigEntity.java b/src/main/java/com/glxp/mipsdl/entity/system/SysHospConfigEntity.java new file mode 100644 index 0000000..d246ae0 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/entity/system/SysHospConfigEntity.java @@ -0,0 +1,29 @@ +package com.glxp.mipsdl.entity.system; + +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +/** + * 医院编码配置表 + */ +@Data +@TableName(value = "sys_hosp_config") +public class SysHospConfigEntity { + + /** + * 医院编码 + */ + @TableField(value = "code") + private String code; + + /** + * 医院名称 + */ + @TableField(value = "name") + private String name; + + public static final String COL_CODE = "code"; + + public static final String COL_NAME = "name"; +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/entity/system/SysScheduledEntity.java b/src/main/java/com/glxp/mipsdl/entity/system/SysScheduledEntity.java new file mode 100644 index 0000000..6294763 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/entity/system/SysScheduledEntity.java @@ -0,0 +1,43 @@ +package com.glxp.mipsdl.entity.system; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +@Data +@TableName(value = "sys_scheduled") +public class SysScheduledEntity { + + @TableId(value = "id", type = IdType.AUTO) + private Integer id; + + /** + * 任务名称 + */ + @TableField(value = "cronName") + private String cronName; + + /** + * 定时任务 + */ + @TableField(value = "cron") + private String cron; + + @TableField(value = "customerId") + private String customerId; + + @TableField(value = "remark") + private String remark; + + public static final String COL_ID = "id"; + + public static final String COL_CRONNAME = "cronName"; + + public static final String COL_CRON = "cron"; + + public static final String COL_CUSTOMERID = "customerId"; + + public static final String COL_REMARK = "remark"; +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/entity/system/SysThirdsysApiEntity.java b/src/main/java/com/glxp/mipsdl/entity/system/SysThirdsysApiEntity.java new file mode 100644 index 0000000..5eb9655 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/entity/system/SysThirdsysApiEntity.java @@ -0,0 +1,45 @@ +package com.glxp.mipsdl.entity.system; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +@Data +@TableName(value = "sys_thirdsys_api") +public class SysThirdsysApiEntity { + + @TableId(value = "id", type = IdType.AUTO) + private Integer id; + + @TableField(value = "`name`") + private String name; + + @TableField(value = "apiUrl") + private String apiUrl; + + @TableField(value = "guideUrl") + private String guideUrl; + + @TableField(value = "remark") + private String remark; + + /** + * 接口类型:1.上传。2。下载 + */ + @TableField(value = "`type`") + private String type; + + public static final String COL_ID = "id"; + + public static final String COL_NAME = "name"; + + public static final String COL_APIURL = "apiUrl"; + + public static final String COL_GUIDEURL = "guideUrl"; + + public static final String COL_REMARK = "remark"; + + public static final String COL_TYPE = "type"; +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/entity/thrsys/ThrBustypeOriginEntity.java b/src/main/java/com/glxp/mipsdl/entity/thrsys/ThrBustypeOriginEntity.java new file mode 100644 index 0000000..b1b8d7b --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/entity/thrsys/ThrBustypeOriginEntity.java @@ -0,0 +1,105 @@ +package com.glxp.mipsdl.entity.thrsys; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +import java.util.Date; + +/** + * 第三方单据类型表 + */ +@Data +@TableName(value = "thr_bustype_origin") +public class ThrBustypeOriginEntity { + + /** + * id + */ + @TableId(value = "id", type = IdType.AUTO) + private Integer id; + + /** + * 单据类型名称 + */ + @TableField(value = "`name`") + private String name; + + /** + * 单据类型编码 + */ + @TableField(value = "`action`") + private String action; + + /** + * 第三方系统标识 + */ + @TableField(value = "thirdSys") + private String thirdSys; + + /** + * 0:启用;1:禁用 + */ + @TableField(value = "`enable`") + private Boolean enable; + + /** + * 出入库类型 + */ + @TableField(value = "inoutType") + private Integer inoutType; + + /** + * 更新时间 + */ + @TableField(value = "updateTime") + private Date updateTime; + + /** + * 备注 + */ + @TableField(value = "remark") + private String remark; + + /** + * 创建人 + */ + @TableField(value = "`createUser`") + private String createUser; + + /** + * 更新人 + */ + @TableField(value = "updateUser") + private String updateUser; + + /** + * 创建时间 + */ + @TableField(value = "createTime") + private Date createTime; + + public static final String COL_ID = "id"; + + public static final String COL_NAME = "name"; + + public static final String COL_ACTION = "action"; + + public static final String COL_THIRDSYS = "thirdSys"; + + public static final String COL_ENABLE = "enable"; + + public static final String COL_INOUTTYPE = "inoutType"; + + public static final String COL_UPDATETIME = "updateTime"; + + public static final String COL_REMARK = "remark"; + + public static final String COL_CREATEUSER = "createUser"; + + public static final String COL_UPDATEUSER = "updateUser"; + + public static final String COL_CREATETIME = "createTime"; +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/entity/thrsys/ThrCorpEntity.java b/src/main/java/com/glxp/mipsdl/entity/thrsys/ThrCorpEntity.java new file mode 100644 index 0000000..f30cd38 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/entity/thrsys/ThrCorpEntity.java @@ -0,0 +1,99 @@ +package com.glxp.mipsdl.entity.thrsys; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +import java.util.Date; + +@Data +@TableName(value = "thr_corp") +public class ThrCorpEntity { + + @TableId(value = "id", type = IdType.AUTO) + private Integer id; + + @TableField(value = "unitId") + private String unitId; + + @TableField(value = "spell") + private String spell; + + @TableField(value = "addr") + private String addr; + + @TableField(value = "creditNo") + private String creditNo; + + @TableField(value = "contact") + private String contact; + + @TableField(value = "mobile") + private String mobile; + + @TableField(value = "thirdSysFk") + private String thirdSysFk; + + @TableField(value = "`name`") + private String name; + + /** + * 创建人 + */ + @TableField(value = "`createUser`") + private String createUser; + + /** + * 创建时间 + */ + @TableField(value = "createTime") + private Date createTime; + + /** + * 更新人 + */ + @TableField(value = "updateUser") + private String updateUser; + + /** + * 更新时间 + */ + @TableField(value = "updateTime") + private Date updateTime; + + /** + * 备注 + */ + @TableField(value = "remark") + private String remark; + + public static final String COL_ID = "id"; + + public static final String COL_UNITID = "unitId"; + + public static final String COL_SPELL = "spell"; + + public static final String COL_ADDR = "addr"; + + public static final String COL_CREDITNO = "creditNo"; + + public static final String COL_CONTACT = "contact"; + + public static final String COL_MOBILE = "mobile"; + + public static final String COL_THIRDSYSFK = "thirdSysFk"; + + public static final String COL_NAME = "name"; + + public static final String COL_CREATEUSER = "createUser"; + + public static final String COL_CREATETIME = "createTime"; + + public static final String COL_UPDATEUSER = "updateUser"; + + public static final String COL_UPDATETIME = "updateTime"; + + public static final String COL_REMARK = "remark"; +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/entity/thrsys/ThrDeptEntity.java b/src/main/java/com/glxp/mipsdl/entity/thrsys/ThrDeptEntity.java new file mode 100644 index 0000000..cb12b3e --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/entity/thrsys/ThrDeptEntity.java @@ -0,0 +1,74 @@ +package com.glxp.mipsdl.entity.thrsys; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +import java.util.Date; + +@Data +@TableName(value = "thr_dept") +public class ThrDeptEntity { + + @TableId(value = "id", type = IdType.AUTO) + private Integer id; + + @TableField(value = "pId") + private Integer pId; + + @TableField(value = "code") + private String code; + + @TableField(value = "`name`") + private String name; + + @TableField(value = "advanceType") + private String advanceType; + + @TableField(value = "isDefault") + private Boolean isDefault; + + @TableField(value = "`status`") + private Integer status; + + @TableField(value = "updateTime") + private Date updateTime; + + @TableField(value = "remark") + private String remark; + + @TableField(value = "`level`") + private Integer level; + + @TableField(value = "pcode") + private String pcode; + + @TableField(value = "thirdSysFk") + private String thirdSysFk; + + public static final String COL_ID = "id"; + + public static final String COL_PID = "pId"; + + public static final String COL_CODE = "code"; + + public static final String COL_NAME = "name"; + + public static final String COL_ADVANCETYPE = "advanceType"; + + public static final String COL_ISDEFAULT = "isDefault"; + + public static final String COL_STATUS = "status"; + + public static final String COL_UPDATETIME = "updateTime"; + + public static final String COL_REMARK = "remark"; + + public static final String COL_LEVEL = "level"; + + public static final String COL_PCODE = "pcode"; + + public static final String COL_THIRDSYSFK = "thirdSysFk"; +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/entity/thrsys/ThrInvWarehouseEntity.java b/src/main/java/com/glxp/mipsdl/entity/thrsys/ThrInvWarehouseEntity.java new file mode 100644 index 0000000..f4c19c0 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/entity/thrsys/ThrInvWarehouseEntity.java @@ -0,0 +1,42 @@ +package com.glxp.mipsdl.entity.thrsys; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +@Data +@TableName(value = "thr_inv_warehouse") +public class ThrInvWarehouseEntity { + + @TableId(value = "id", type = IdType.AUTO) + private String id; + + @TableField(value = "code") + private String code; + + @TableField(value = "`name`") + private String name; + + @TableField(value = "parentId") + private String parentId; + + @TableField(value = "remark") + private String remark; + + @TableField(value = "thirdSysFk") + private String thirdSysFk; + + public static final String COL_ID = "id"; + + public static final String COL_CODE = "code"; + + public static final String COL_NAME = "name"; + + public static final String COL_PARENTID = "parentId"; + + public static final String COL_REMARK = "remark"; + + public static final String COL_THIRDSYSFK = "thirdSysFk"; +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/entity/thrsys/ThrProductsEntity.java b/src/main/java/com/glxp/mipsdl/entity/thrsys/ThrProductsEntity.java new file mode 100644 index 0000000..f43a0fb --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/entity/thrsys/ThrProductsEntity.java @@ -0,0 +1,261 @@ +package com.glxp.mipsdl.entity.thrsys; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +import java.util.Date; + +@Data +@TableName(value = "thr_products") +public class ThrProductsEntity { + + @TableId(value = "id", type = IdType.AUTO) + private Integer id; + + /** + * 产品编码 + */ + @TableField(value = "code") + private String code; + + /** + * 通用名称 + */ + @TableField(value = "`name`") + private String name; + + /** + * 计量单位 + */ + @TableField(value = "measname") + private String measname; + + @TableField(value = "spec") + private String spec; + + /** + * 注册证号 + */ + @TableField(value = "registerNo") + private String registerNo; + + /** + * 生产厂家 + */ + @TableField(value = "manufactory") + private String manufactory; + + @TableField(value = "thirdSysFk") + private String thirdSysFk; + + /** + * 产品类别 + */ + @TableField(value = "cplb") + private String cplb; + + /** + * 分类编码 + */ + @TableField(value = "flbm") + private String flbm; + + /** + * 器械类别 + */ + @TableField(value = "qxlb") + private String qxlb; + + /** + * 医保编码 + */ + @TableField(value = "ybbm") + private String ybbm; + + /** + * 商品条码 + */ + @TableField(value = "sptm") + private String sptm; + + /** + * 注册人社会信用号 + */ + @TableField(value = "tyshxydm") + private String tyshxydm; + + /** + * 注册证 备案证号 + */ + @TableField(value = "zczbhhzbapzbh") + private String zczbhhzbapzbh; + + /** + * 注册/备案人名称 + */ + @TableField(value = "ylqxzcrbarmc") + private String ylqxzcrbarmc; + + /** + * 注册/备案人英文名称 + */ + @TableField(value = "ylqxzcrbarywmc") + private String ylqxzcrbarywmc; + + /** + * 产品描述 + */ + @TableField(value = "cpms") + private String cpms; + + /** + * 更新时间 + */ + @TableField(value = "updateTime") + private Date updateTime; + + /** + * 供应商名称 + */ + @TableField(value = "supName") + private String supName; + + /** + * 型号 + */ + @TableField(value = "model") + private String model; + + /** + * 规格型号(规格型号二合一字段) + */ + @TableField(value = "`standard`") + private String standard; + + /** + * 其他编码 + */ + @TableField(value = "qtbm") + private String qtbm; + + /** + * 注册证有效期截止时间 + */ + @TableField(value = "zczyxqz") + private String zczyxqz; + + /** + * 备注 备注字段暂未启用,为保留字段 + */ + @TableField(value = "remark") + private String remark; + + /** + * 备注1 + */ + @TableField(value = "remark1") + private String remark1; + + /** + * 备注2 + */ + @TableField(value = "remark2") + private String remark2; + + /** + * 备注3 + */ + @TableField(value = "remark3") + private String remark3; + + /** + * 价格 + */ + @TableField(value = "price") + private String price; + + /** + * 创建人 + */ + @TableField(value = "`createUser`") + private String createUser; + + /** + * 创建时间 + */ + @TableField(value = "createTime") + private Date createTime; + + /** + * 更新人 + */ + @TableField(value = "updateUser") + private String updateUser; + + public static final String COL_ID = "id"; + + public static final String COL_CODE = "code"; + + public static final String COL_NAME = "name"; + + public static final String COL_MEASNAME = "measname"; + + public static final String COL_SPEC = "spec"; + + public static final String COL_REGISTERNO = "registerNo"; + + public static final String COL_MANUFACTORY = "manufactory"; + + public static final String COL_THIRDSYSFK = "thirdSysFk"; + + public static final String COL_CPLB = "cplb"; + + public static final String COL_FLBM = "flbm"; + + public static final String COL_QXLB = "qxlb"; + + public static final String COL_YBBM = "ybbm"; + + public static final String COL_SPTM = "sptm"; + + public static final String COL_TYSHXYDM = "tyshxydm"; + + public static final String COL_ZCZBHHZBAPZBH = "zczbhhzbapzbh"; + + public static final String COL_YLQXZCRBARMC = "ylqxzcrbarmc"; + + public static final String COL_YLQXZCRBARYWMC = "ylqxzcrbarywmc"; + + public static final String COL_CPMS = "cpms"; + + public static final String COL_UPDATETIME = "updateTime"; + + public static final String COL_SUPNAME = "supName"; + + public static final String COL_MODEL = "model"; + + public static final String COL_STANDARD = "standard"; + + public static final String COL_QTBM = "qtbm"; + + public static final String COL_ZCZYXQZ = "zczyxqz"; + + public static final String COL_REMARK = "remark"; + + public static final String COL_REMARK1 = "remark1"; + + public static final String COL_REMARK2 = "remark2"; + + public static final String COL_REMARK3 = "remark3"; + + public static final String COL_PRICE = "price"; + + public static final String COL_CREATEUSER = "createUser"; + + public static final String COL_CREATETIME = "createTime"; + + public static final String COL_UPDATEUSER = "updateUser"; +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/entity/thrsys/ThrSystemBusApiEntity.java b/src/main/java/com/glxp/mipsdl/entity/thrsys/ThrSystemBusApiEntity.java new file mode 100644 index 0000000..01a70e5 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/entity/thrsys/ThrSystemBusApiEntity.java @@ -0,0 +1,91 @@ +package com.glxp.mipsdl.entity.thrsys; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +@Data +@TableName(value = "thr_system_bus_api") +public class ThrSystemBusApiEntity { + + @TableId(value = "id", type = IdType.AUTO) + private Integer id; + + @TableField(value = "code") + private String code; + + @TableField(value = "`name`") + private String name; + + /** + * 第三方系统单据类型名称 + */ + @TableField(value = "thirdBuyName") + private String thirdBuyName; + + /** + * 第三方系统单据类型代码 + */ + @TableField(value = "thirdBuyCode") + private String thirdBuyCode; + + @TableField(value = "thirdSys") + private String thirdSys; + + @TableField(value = "url") + private String url; + + @TableField(value = "`type`") + private Integer type; + + @TableField(value = "remark") + private String remark; + + /** + * 扩展字段,暂未启用 + */ + @TableField(value = "filed") + private String filed; + + @TableField(value = "filed1") + private String filed1; + + @TableField(value = "filed2") + private String filed2; + + @TableField(value = "filed3") + private String filed3; + + @TableField(value = "filed4") + private String filed4; + + public static final String COL_ID = "id"; + + public static final String COL_CODE = "code"; + + public static final String COL_NAME = "name"; + + public static final String COL_THIRDBUYNAME = "thirdBuyName"; + + public static final String COL_THIRDBUYCODE = "thirdBuyCode"; + + public static final String COL_THIRDSYS = "thirdSys"; + + public static final String COL_URL = "url"; + + public static final String COL_TYPE = "type"; + + public static final String COL_REMARK = "remark"; + + public static final String COL_FILED = "filed"; + + public static final String COL_FILED1 = "filed1"; + + public static final String COL_FILED2 = "filed2"; + + public static final String COL_FILED3 = "filed3"; + + public static final String COL_FILED4 = "filed4"; +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/entity/thrsys/ThrSystemDetailEntity.java b/src/main/java/com/glxp/mipsdl/entity/thrsys/ThrSystemDetailEntity.java new file mode 100644 index 0000000..b7e5a5f --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/entity/thrsys/ThrSystemDetailEntity.java @@ -0,0 +1,68 @@ +package com.glxp.mipsdl.entity.thrsys; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +@Data +@TableName(value = "thr_system_detail") +public class ThrSystemDetailEntity { + + @TableId(value = "id", type = IdType.AUTO) + private Integer id; + + @TableField(value = "`name`") + private String name; + + @TableField(value = "`key`") + private String key; + + @TableField(value = "`value`") + private String value; + + @TableField(value = "enabled") + private Boolean enabled; + + @TableField(value = "guideUrl") + private String guideUrl; + + @TableField(value = "remark") + private String remark; + + @TableField(value = "thirdSysFk") + private String thirdSysFk; + + /** + * 是否启用接口缓存 + */ + @TableField(value = "itrCache") + private Boolean itrCache; + + /** + * 数据来源类型0:接口实时获取;1.文件导入;2.第三方上传缓存,4.接口本地缓存 + */ + @TableField(value = "fromType") + private Integer fromType; + + public static final String COL_ID = "id"; + + public static final String COL_NAME = "name"; + + public static final String COL_KEY = "key"; + + public static final String COL_VALUE = "value"; + + public static final String COL_ENABLED = "enabled"; + + public static final String COL_GUIDEURL = "guideUrl"; + + public static final String COL_REMARK = "remark"; + + public static final String COL_THIRDSYSFK = "thirdSysFk"; + + public static final String COL_ITRCACHE = "itrCache"; + + public static final String COL_FROMTYPE = "fromType"; +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/entity/thrsys/ThrSystemEntity.java b/src/main/java/com/glxp/mipsdl/entity/thrsys/ThrSystemEntity.java new file mode 100644 index 0000000..9e00959 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/entity/thrsys/ThrSystemEntity.java @@ -0,0 +1,97 @@ +package com.glxp.mipsdl.entity.thrsys; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +@Data +@TableName(value = "thr_system") +public class ThrSystemEntity { + + @TableId(value = "id", type = IdType.AUTO) + private Integer id; + + /** + * 第三系统Id + */ + @TableField(value = "thirdId") + private String thirdId; + + /** + * 第三方系统名称 + */ + @TableField(value = "thirdName") + private String thirdName; + + /** + * 第三方系统接口授权码 + */ + @TableField(value = "apikey") + private String apikey; + + /** + * 第三方系统接口秘钥 + */ + @TableField(value = "secretkey") + private String secretkey; + + /** + * 是否设为主系统 + */ + @TableField(value = "mainSys") + private Boolean mainSys; + + /** + * 是否启用 + */ + @TableField(value = "enabled") + private Boolean enabled; + + /** + * 第三方服务IP地址 + */ + @TableField(value = "thridUrl") + private String thridUrl; + + /** + * 第三方系统IP地址 + */ + @TableField(value = "thirdSysUrl") + private String thirdSysUrl; + + /** + * 接口说明文档地址 + */ + @TableField(value = "guideUrl") + private String guideUrl; + + /** + * 备注 + */ + @TableField(value = "remark") + private String remark; + + public static final String COL_ID = "id"; + + public static final String COL_THIRDID = "thirdId"; + + public static final String COL_THIRDNAME = "thirdName"; + + public static final String COL_APIKEY = "apikey"; + + public static final String COL_SECRETKEY = "secretkey"; + + public static final String COL_MAINSYS = "mainSys"; + + public static final String COL_ENABLED = "enabled"; + + public static final String COL_THRIDURL = "thridUrl"; + + public static final String COL_THIRDSYSURL = "thirdSysUrl"; + + public static final String COL_GUIDEURL = "guideUrl"; + + public static final String COL_REMARK = "remark"; +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/enums/ResultEnum.java b/src/main/java/com/glxp/mipsdl/enums/ResultEnum.java new file mode 100644 index 0000000..a3e0be3 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/enums/ResultEnum.java @@ -0,0 +1,30 @@ +package com.glxp.mipsdl.enums; + +import lombok.Getter; + +/** + * 返回结果的枚举类 + */ +@Getter +public enum ResultEnum { + + SUCCESS(0, "success"), + NOT_NETWORK(1, "系统繁忙,请稍后再试。"), + LOGIN_VERIFY_FALL(2, "登录失效"), + PARAM_VERIFY_FALL(3, "参数验证错误"), + AUTH_FAILED(4, "权限验证失败"), + DATA_NOT(5, "没有相关数据"), + DATA_CHANGE(6, "数据没有任何更改"), + DATA_REPEAT(7, "数据已存在"), + DATA_ERROR(8, "参数错误"), + ; + + private Integer code; + + private String message; + + ResultEnum(Integer code, String message) { + this.code = code; + this.message = message; + } +} diff --git a/src/main/java/com/glxp/mipsdl/http/HttpClient.java b/src/main/java/com/glxp/mipsdl/http/HttpClient.java new file mode 100644 index 0000000..df47f9d --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/http/HttpClient.java @@ -0,0 +1,133 @@ +package com.glxp.mipsdl.http; + +import cn.hutool.core.util.StrUtil; +import com.alibaba.fastjson2.JSONObject; +import com.alibaba.fastjson2.JSONWriter; +import com.glxp.mipsdl.config.HospConfig; +import com.glxp.mipsdl.config.ThirdSysConfig; +import com.glxp.mipsdl.constant.ConstantType; +import com.glxp.mipsdl.entity.thrsys.ThrSystemEntity; +import com.glxp.mipsdl.service.system.SysErpLogService; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; +import java.util.Map; + +@Slf4j +@Service +public class HttpClient { + + @Resource + private OkHttpCli okHttpCli; + @Resource + private SysErpLogService erpLogService; + @Resource + private ThirdSysConfig thirdSysConfig; + @Resource + private HospConfig hospConfig; + + + /** + * 获取公共请求头 + * + * @return + */ + String[] getHeaderArray() { + List headArray = new ArrayList<>(); + headArray.add("Content-Type"); + headArray.add("application/json"); + ThrSystemEntity thrSystemEntity = thirdSysConfig.getThirdSysConfig(); + if (StrUtil.isNotBlank(thrSystemEntity.getApikey())) { + headArray.add("api_key"); + headArray.add(thrSystemEntity.getApikey()); + } + if (StrUtil.isNotBlank(thrSystemEntity.getSecretkey())) { + headArray.add("secret_key"); + headArray.add(thrSystemEntity.getSecretkey()); + } + return headArray.toArray(new String[0]); + } + + /** + * 请求第三方系统接口post请求 + * + * @param url + * @param object + * @return + */ + public String postJson(String url, Object object) { + //请求时间 + Date date = new Date(); + //转json字符串时,将空属性转换为空字符串 + String json = JSONObject.toJSONString(object, JSONWriter.Feature.WriteNullStringAsEmpty); + log.info(url + "\n" + json); + + String response = ""; + Integer status; + try { + response = okHttpCli.doPostJson(url, json, getHeaderArray()); + status = ConstantType.LOG_STATUS_SUCCESS; + } catch (Exception e) { + response = "网络错误,或远程服务器无法异常,无法连接!"; + status = ConstantType.LOG_STATUS_ERROR; + log.error("请求第三方系统接口异常,错误信息:{}", e); + } + long time = System.currentTimeMillis() - date.getTime(); + erpLogService.addThirdErpLog(date, url, "postJson", json, response, time, status); + log.error("接口响应信息:" + response); + return response; + } + + public String get(String url, Map params) { + //请求时间 + Date date = new Date(); + String response = ""; + Integer status; + try { + response = okHttpCli.doGet(url, params, getHeaderArray()); + status = ConstantType.LOG_STATUS_SUCCESS; + } catch (Exception e) { + response = "网络错误,或远程服务器无法异常,无法连接!"; + status = ConstantType.LOG_STATUS_ERROR; + } + long time = System.currentTimeMillis() - date.getTime(); + erpLogService.addThirdErpLog(date, url, "get", JSONObject.toJSONString(params, JSONWriter.Feature.WriteNullStringAsEmpty), response, time, status); + log.error(response); + return response; + } + + /** + * 请求UDI管理系统post请求 + * + * @param url + * @param object + * @return + */ + public String postUDIWMSJson(String url, Object object) { + //请求时间 + Date date = new Date(); + //转json字符串时,将空属性转换为空字符串 + String json = JSONObject.toJSONString(object, JSONWriter.Feature.WriteNullStringAsEmpty); + log.info(url + "\n" + json); + + String response = ""; + Integer status; + try { + response = okHttpCli.doPostJson(url, json, hospConfig.getHeaderArray()); + status = ConstantType.LOG_STATUS_SUCCESS; + } catch (Exception e) { + response = "无法连通UDI管理系统接口"; + status = ConstantType.LOG_STATUS_ERROR; + log.error("请求UDI管理系统系统接口异常,错误信息:{}", e); + } + long time = System.currentTimeMillis() - date.getTime(); + erpLogService.addThirdErpLog(date, url, "postUDIWMSJson", json, response, time, status); + log.error("接口响应信息:" + response); + return response; + } + +} diff --git a/src/main/java/com/glxp/mipsdl/http/OkHttpCli.java b/src/main/java/com/glxp/mipsdl/http/OkHttpCli.java new file mode 100644 index 0000000..7299f15 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/http/OkHttpCli.java @@ -0,0 +1,183 @@ +package com.glxp.mipsdl.http; + +import cn.hutool.core.exceptions.ExceptionUtil; +import lombok.extern.slf4j.Slf4j; +import okhttp3.*; +import org.springframework.stereotype.Component; + +import javax.annotation.Resource; +import java.util.Map; + + +/** + * @author Answer.AI.L + * @date 2019-04-09 + */ +@Slf4j +@Component +public class OkHttpCli { + + private static final MediaType JSON = MediaType.parse("application/json; charset=utf-8"); + private static final MediaType XML = MediaType.parse("application/xml; charset=utf-8"); + + @Resource + private OkHttpClient okHttpClient; + + /** + * get 请求 + * + * @param url 请求url地址 + * @return string + */ + public String doGet(String url) { + return doGet(url, null, null); + } + + + /** + * get 请求 + * + * @param url 请求url地址 + * @param params 请求参数 map + * @return string + */ + public String doGet(String url, Map params) { + return doGet(url, params, null); + } + + /** + * get 请求 + * + * @param url 请求url地址 + * @param headers 请求头字段 {k1, v1 k2, v2, ...} + * @return string + */ + public String doGet(String url, String[] headers) { + return doGet(url, null, headers); + } + + + /** + * get 请求 + * + * @param url 请求url地址 + * @param params 请求参数 map + * @param headers 请求头字段 {k1, v1 k2, v2, ...} + * @return string + */ + public String doGet(String url, Map params, String[] headers) { + StringBuilder sb = new StringBuilder(url); + if (params != null && params.keySet().size() > 0) { + boolean firstFlag = true; + for (String key : params.keySet()) { + if (firstFlag) { + sb.append("?").append(key).append("=").append(params.get(key)); + firstFlag = false; + } else { + sb.append("&").append(key).append("=").append(params.get(key)); + } + } + } + + Request.Builder builder = new Request.Builder(); + if (headers != null && headers.length > 0) { + if (headers.length % 2 == 0) { + for (int i = 0; i < headers.length; i = i + 2) { + builder.addHeader(headers[i], headers[i + 1]); + } + } else { + log.warn("headers's length[{}] is error.", headers.length); + } + + } + + Request request = builder.url(sb.toString()).build(); + log.info("do get request and url[{}]", sb.toString()); + return execute(request); + } + + /** + * post 请求 + * + * @param url 请求url地址 + * @param params 请求参数 map + * @return string + */ + public String doPost(String url, Map params) { + FormBody.Builder builder = new FormBody.Builder(); + + if (params != null && params.keySet().size() > 0) { + for (String key : params.keySet()) { + builder.add(key, params.get(key)); + } + } + Request request = new Request.Builder().url(url).post(builder.build()).build(); + log.info("do post request and url[{}]", url); + + return execute(request); + } + + + /** + * post 请求, 请求数据为 json 的字符串 + * + * @param url 请求url地址 + * @param json 请求数据, json 字符串 + * @return string + */ + public String doPostJson(String url, String json) { + log.info("do post request and url[{}]", url); + return executePost(url, json, JSON); + } + + public String doPostJson(String url, String json, String... headers) { + log.info("do post request and url[{}]", url); + return executePost(url, json, JSON, headers); + } + + /** + * post 请求, 请求数据为 xml 的字符串 + * + * @param url 请求url地址 + * @param xml 请求数据, xml 字符串 + * @return string + */ + public String doPostXml(String url, String xml) { + log.info("do post request and url[{}]", url); + return executePost(url, xml, XML); + } + + + private String executePost(String url, String data, MediaType contentType) { + RequestBody requestBody = RequestBody.create(contentType, data); + Request request = new Request.Builder().url(url).post(requestBody).build(); + + return execute(request); + } + + private String executePost(String url, String data, MediaType contentType, String... headParms) { + RequestBody requestBody = RequestBody.create(contentType, data); + + Request request = new Request.Builder().headers(Headers.of(headParms)).url(url).post(requestBody).build(); + + return execute(request); + } + + private String execute(Request request) { + Response response = null; + try { + response = okHttpClient.newCall(request).execute(); + if (response.isSuccessful()) { + return response.body().string(); + } + } catch (Exception e) { + log.error(ExceptionUtil.stacktraceToString(e)); + } finally { + if (response != null) { + response.close(); + } + } + return response.code() + " " + response.message(); + } + +} diff --git a/src/main/java/com/glxp/mipsdl/http/UCloudHttpClient.java b/src/main/java/com/glxp/mipsdl/http/UCloudHttpClient.java new file mode 100644 index 0000000..c584d71 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/http/UCloudHttpClient.java @@ -0,0 +1,462 @@ +package com.glxp.mipsdl.http; + +import com.alibaba.fastjson2.JSON; +import com.alibaba.fastjson2.JSONObject; +import com.alibaba.fastjson2.JSONWriter; +import com.alibaba.fastjson2.TypeReference; +import com.glxp.mipsdl.constant.ConstantType; +import com.glxp.mipsdl.dao.pzhzd.YyUcloudV31SetDao; +import com.glxp.mipsdl.entity.pzhzd.YyUcloudV31SetEntity; +import com.glxp.mipsdl.req.ucloud.*; +import com.glxp.mipsdl.res.ucloud.*; +import com.glxp.mipsdl.service.system.SysErpLogService; +import com.glxp.mipsdl.util.http.UHttpUtils; +import lombok.extern.slf4j.Slf4j; +import org.springframework.http.HttpEntity; +import org.springframework.http.HttpHeaders; +import org.springframework.stereotype.Service; +import org.springframework.web.client.RestTemplate; + +import javax.annotation.Resource; +import java.util.Date; +import java.util.List; + +/** + * 请求片仔癀用友U8系统专用http工具类 + */ +@Slf4j +@Service +public class UCloudHttpClient { + + @Resource + private YyUcloudV31SetDao yyUcloudV31SetDao; + @Resource + private SysErpLogService erpLogService; + + /** + * 用友U8的地址 + */ + private String u8Url; + + /** + * 获取片仔癀用友U8接口请求头 + * + * @return + */ + public HttpHeaders getHeaders() { + YyUcloudV31SetEntity setEntity = yyUcloudV31SetDao.findSetUp(null); + this.u8Url = setEntity.getIpUrl(); + HttpHeaders headers = new HttpHeaders(); + headers.add("Content-Type", "application/json; charset=UTF-8"); + if (setEntity != null) { + headers.add("system", setEntity.getSystemCode()); + headers.add("usercode", setEntity.getUserCode()); + headers.add("password", setEntity.getPasswd()); + headers.add("trantype", setEntity.getTransType()); + } + return headers; + } + + /** + * 采购入库单查询 + * + * @param uPurchaseinRequest + * @return + */ + public UBaseResponse purchaseinQuery(UPurchaseinRequest uPurchaseinRequest) { + //请求开始时间 + Date date = new Date(); + + RestTemplate restTemplate = new RestTemplate(); + String params = JSONObject.toJSONString(uPurchaseinRequest, JSONWriter.Feature.WriteNullStringAsEmpty); + HttpEntity httpEntity = new HttpEntity<>(params, getHeaders()); + String url = u8Url + "/u8cloud/api/ic/purchasein/query"; + log.info(url + "\n" + params); + String responseStr = restTemplate.postForObject(url, httpEntity, String.class); + responseStr = UHttpUtils.formatResponse(responseStr); + UBaseResponse> response; + + //响应状态 + Integer status; + try { + response = JSONObject.parseObject(responseStr, new TypeReference>>() { + }); + status = ConstantType.LOG_STATUS_SUCCESS; + erpLogService.addThirdErpLog(date, url, "purchaseinQuery", params, responseStr, System.currentTimeMillis() - date.getTime(), status); + return response; + } catch (Exception e) { + log.error("解析片仔癀采购入库单查询接口结果异常,返回结果:{}", responseStr); + log.error("异常信息:{}", e); + status = ConstantType.LOG_STATUS_ERROR; + erpLogService.addThirdErpLog(date, url, "purchaseinQuery", params, responseStr, System.currentTimeMillis() - date.getTime(), status); + } + return UHttpUtils.returnError(); + } + + /** + * 销售出库单查询 + * + * @param uSaleoutQueryRequest + * @return + */ + public UBaseResponse saleoutQuery(USaleoutQueryRequest uSaleoutQueryRequest) { + //请求开始时间 + Date date = new Date(); + + RestTemplate restTemplate = new RestTemplate(); + String params = JSONObject.toJSONString(uSaleoutQueryRequest, JSONWriter.Feature.WriteNullStringAsEmpty); + HttpEntity httpEntity = new HttpEntity<>(params, getHeaders()); + String url = u8Url + "/u8cloud/api/ic/saleout/query"; + log.info(url + "\n" + params); + String responseStr = restTemplate.postForObject(url, httpEntity, String.class); + responseStr = UHttpUtils.formatResponse(responseStr); + UBaseResponse> response; + + //响应状态 + Integer status; + try { + response = JSONObject.parseObject(responseStr, new TypeReference>>() { + }); + status = ConstantType.LOG_STATUS_SUCCESS; + erpLogService.addThirdErpLog(date, url, "saleoutQuery", params, responseStr, System.currentTimeMillis() - date.getTime(), status); + return response; + } catch (Exception e) { + log.error("解析片仔癀销售出库单查询接口结果异常,返回结果:{}", responseStr); + log.error("异常信息:{}", e); + status = ConstantType.LOG_STATUS_ERROR; + erpLogService.addThirdErpLog(date, url, "saleoutQuery", params, responseStr, System.currentTimeMillis() - date.getTime(), status); + } + return UHttpUtils.returnError(); + } + + /** + * 采购入库单修改 + * + * @param modifyPruchaseinRequest + * @return + */ + public UBaseResponse purchaseinModify(ModifyPruchaseinRequest modifyPruchaseinRequest) { + //请求开始时间 + Date date = new Date(); + + RestTemplate restTemplate = new RestTemplate(); + String params = JSONObject.toJSONString(modifyPruchaseinRequest, JSONWriter.Feature.WriteNullStringAsEmpty); + + HttpEntity httpEntity = new HttpEntity<>(params, getHeaders()); + String url = u8Url + "/u8cloud/api/ic/purchasein/update"; + log.info(url + "\n" + params); + String responseStr = restTemplate.postForObject(url, httpEntity, String.class); + UBaseResponse response = null; + + //响应状态 + Integer status; + try { + String body = JSONObject.toJSONString(responseStr); + Object parse1 = JSON.parse(body); + String s = parse1.toString(); + JSONObject jsonObject = JSON.parseObject(s); + if (jsonObject.getString("status").equals("success")) { + response = new UBaseResponse(); + response.setStatus("success"); + } else + responseStr = UHttpUtils.formatResponse(responseStr); + response = JSONObject.parseObject(responseStr, new TypeReference() { + }); + + status = ConstantType.LOG_STATUS_SUCCESS; + erpLogService.addThirdErpLog(date, url, "purchaseinModify", params, responseStr, System.currentTimeMillis() - date.getTime(), status); + + } catch (Exception e) { + log.error("解析片仔癀采购入库单修改接口结果异常,返回结果:{}", responseStr); + log.error("异常信息:{}", e); + status = ConstantType.LOG_STATUS_ERROR; + erpLogService.addThirdErpLog(date, url, "purchaseinModify", params, responseStr, System.currentTimeMillis() - date.getTime(), status); + } + return response; + } + + + /** + * 销售出库单修改 + * + * @param modifyPruchaseinRequest + * @return + */ + public UBaseResponse saleModify(ModifyPruchaseinRequest modifyPruchaseinRequest) { + //请求开始时间 + Date date = new Date(); + + RestTemplate restTemplate = new RestTemplate(); + String params = JSONObject.toJSONString(modifyPruchaseinRequest, JSONWriter.Feature.WriteNullStringAsEmpty); + HttpEntity httpEntity = new HttpEntity<>(params, getHeaders()); + String url = u8Url + "/u8cloud/api/ic/saleout/update"; + log.info(url + "\n" + params); + + String responseStr = restTemplate.postForObject(url, httpEntity, String.class); + UBaseResponse response = null; + + //响应状态 + Integer status; + try { + String body = JSONObject.toJSONString(responseStr); + Object parse1 = JSON.parse(body); + String s = parse1.toString(); + JSONObject jsonObject = JSON.parseObject(s); + if (jsonObject.getString("status").equals("success")) { + response = new UBaseResponse(); + response.setStatus("success"); + } else + responseStr = UHttpUtils.formatResponse(responseStr); + response = JSONObject.parseObject(responseStr, new TypeReference() { + }); + + status = ConstantType.LOG_STATUS_SUCCESS; + erpLogService.addThirdErpLog(date, url, "saleModify", params, responseStr, System.currentTimeMillis() - date.getTime(), status); + } catch (Exception e) { + log.error("解析片仔癀销售出库单修改接口结果异常,返回结果:{}", responseStr); + log.error("异常信息:{}", e); + status = ConstantType.LOG_STATUS_ERROR; + erpLogService.addThirdErpLog(date, url, "saleModify", params, responseStr, System.currentTimeMillis() - date.getTime(), status); + } + return response; + } + + /** + * 采购入库单签字 + * + * @param purhaseinSignRequest + * @return + */ + public UBaseResponse purchaseinSign(UPurhaseinSignRequest purhaseinSignRequest) { + //请求开始时间 + Date date = new Date(); + + RestTemplate restTemplate = new RestTemplate(); + String params = JSONObject.toJSONString(purhaseinSignRequest, JSONWriter.Feature.WriteNullStringAsEmpty); + HttpEntity httpEntity = new HttpEntity<>(params, getHeaders()); + String url = u8Url + "/u8cloud/api/ic/purchasein/sign"; + log.info(url + "\n" + params); + + String responseStr = restTemplate.postForObject(url, httpEntity, String.class); + responseStr = UHttpUtils.formatResponse(responseStr); + UBaseResponse response = null; + + //响应状态 + Integer status; + try { + JSONObject jsonObject = JSON.parseObject(responseStr); + if (jsonObject.getString("status").equals("success")) { + response = new UBaseResponse(); + response.setStatus("success"); + } else { + response = JSONObject.parseObject(responseStr, new TypeReference() { + }); + } + + status = ConstantType.LOG_STATUS_SUCCESS; + erpLogService.addThirdErpLog(date, url, "purchaseinSign", params, responseStr, System.currentTimeMillis() - date.getTime(), status); + } catch (Exception e) { + log.error("解析片仔癀采购入库单签字接口结果异常,返回结果:{}", responseStr); + log.error("异常信息:{}", e); + status = ConstantType.LOG_STATUS_ERROR; + erpLogService.addThirdErpLog(date, url, "purchaseinSign", params, responseStr, System.currentTimeMillis() - date.getTime(), status); + } + log.info(responseStr); + return response; + } + + /** + * 销售出库单签字 + * + * @param saleoutSignRequest + * @return + */ + public UBaseResponse saleOutSign(USaleoutSignRequest saleoutSignRequest) { + //请求开始时间 + Date date = new Date(); + + RestTemplate restTemplate = new RestTemplate(); + String params = JSONObject.toJSONString(saleoutSignRequest, JSONWriter.Feature.WriteNullStringAsEmpty); + HttpEntity httpEntity = new HttpEntity<>(params, getHeaders()); + String url = u8Url + "/u8cloud/api/ic/saleout/sign"; + log.info(url + "\n" + params); + String responseStr = restTemplate.postForObject(url, httpEntity, String.class); + + responseStr = UHttpUtils.formatResponse(responseStr.trim()); + UBaseResponse response = null; + + //响应状态 + Integer status; + try { + JSONObject jsonObject = JSON.parseObject(responseStr); + if (jsonObject.getString("status").equals("success")) { + response = new UBaseResponse(); + response.setStatus("success"); + } else { + response = JSONObject.parseObject(responseStr, UBaseResponse.class); + } + + status = ConstantType.LOG_STATUS_SUCCESS; + erpLogService.addThirdErpLog(date, url, "saleOutSign", params, responseStr, System.currentTimeMillis() - date.getTime(), status); + } catch (Exception e) { + log.error("解析片销售出库单签字查询接口结果异常,返回结果:{}", responseStr); + log.error("异常信息:{}", e); + status = ConstantType.LOG_STATUS_ERROR; + erpLogService.addThirdErpLog(date, url, "saleOutSign", params, responseStr, System.currentTimeMillis() - date.getTime(), status); + } + return response; + } + + /** + * 现存量查询 + * + * @param onhandQueryRequest + * @return + */ + public UBaseResponse onhandQuery(UOnhandQueryRequest onhandQueryRequest) { + //请求开始时间 + Date date = new Date(); + + RestTemplate restTemplate = new RestTemplate(); + String params = JSONObject.toJSONString(onhandQueryRequest, JSONWriter.Feature.WriteNullStringAsEmpty); + HttpEntity httpEntity = new HttpEntity<>(params, getHeaders()); + String url = u8Url + "/u8cloud/api/ic/onhand/query"; + log.info("请求参数" + url + "\n" + params); + String responseStr = restTemplate.postForObject(url, httpEntity, String.class); + responseStr = UHttpUtils.formatResponse(responseStr); + log.info("请求结果" + responseStr); + UBaseResponse> response; + + //响应状态 + Integer status; + try { + response = JSONObject.parseObject(responseStr, new TypeReference>>() { + }); + + status = ConstantType.LOG_STATUS_SUCCESS; + erpLogService.addThirdErpLog(date, url, "onhandQuery", params, responseStr, System.currentTimeMillis() - date.getTime(), status); + return response; + } catch (Exception e) { + log.error("解析片仔癀现存量查询接口结果异常,返回结果:{}", responseStr); + log.error("异常信息:{}", e); + status = ConstantType.LOG_STATUS_ERROR; + erpLogService.addThirdErpLog(date, url, "onhandQuery", params, responseStr, System.currentTimeMillis() - date.getTime(), status); + } + return UHttpUtils.returnError(); + } + + /** + * 现存量查询 + * + * @param onhandQueryRequest + * @return + */ + public UBaseResponse onhandQueryPost(UOnhandPostQueryRequest onhandQueryRequest) { + //请求开始时间 + Date date = new Date(); + + RestTemplate restTemplate = new RestTemplate(); + String params = JSONObject.toJSONString(onhandQueryRequest, JSONWriter.Feature.WriteNullStringAsEmpty); + HttpEntity httpEntity = new HttpEntity<>(params, getHeaders()); + String url = u8Url + "/u8cloud/api/ic/onhand/query"; + log.info(url + "\n" + params); + String responseStr = restTemplate.postForObject(url, httpEntity, String.class); + responseStr = UHttpUtils.formatResponse(responseStr); + UBaseResponse> response; + + //响应状态 + Integer status; + try { + response = JSONObject.parseObject(responseStr, new TypeReference>>() { + }); + + status = ConstantType.LOG_STATUS_SUCCESS; + erpLogService.addThirdErpLog(date, url, "onhandQueryPost", params, responseStr, System.currentTimeMillis() - date.getTime(), status); + return response; + } catch (Exception e) { + log.error("解析片仔癀现存量查询接口结果异常,返回结果:{}", responseStr); + log.error("异常信息:{}", e); + status = ConstantType.LOG_STATUS_ERROR; + erpLogService.addThirdErpLog(date, url, "onhandQueryPost", params, responseStr, System.currentTimeMillis() - date.getTime(), status); + } + return UHttpUtils.returnError(); + } + + /** + * 客商管理档案查询 + * + * @param custmandocRequest + * @return + */ + public UBaseResponse custmandocQuery(UCustmandocRequest custmandocRequest) { + //请求开始时间 + Date date = new Date(); + + RestTemplate restTemplate = new RestTemplate(); + String params = JSONObject.toJSONString(custmandocRequest, JSONWriter.Feature.WriteNullStringAsEmpty); + HttpEntity httpEntity = new HttpEntity<>(params, getHeaders()); + String url = u8Url + "/u8cloud/api/uapbd/custmandoc/query"; + log.info(url + "\n" + params); + String responseStr = restTemplate.postForObject(url, httpEntity, String.class); + + responseStr = UHttpUtils.formatResponse(responseStr); + UBaseResponse> response; + + //响应状态 + Integer status; + try { + response = JSONObject.parseObject(responseStr, new TypeReference>>() { + }); + + status = ConstantType.LOG_STATUS_SUCCESS; + erpLogService.addThirdErpLog(date, url, "custmandocQuery", params, responseStr, System.currentTimeMillis() - date.getTime(), status); + return response; + } catch (Exception e) { + log.error("解析片仔癀客商管理档案查询接口结果异常,返回结果:{}", responseStr); + log.error("异常信息:{}", e); + status = ConstantType.LOG_STATUS_ERROR; + erpLogService.addThirdErpLog(date, url, "custmandocQuery", params, responseStr, System.currentTimeMillis() - date.getTime(), status); + } + return UHttpUtils.returnError(); + } + + /** + * 存货管理档案查询 + * + * @param uInvmandocRequest + * @return + */ + public UBaseResponse invmandocQuery(UInvmandocRequest uInvmandocRequest) { + //请求开始时间 + Date date = new Date(); + + RestTemplate restTemplate = new RestTemplate(); + String params = JSONObject.toJSONString(uInvmandocRequest, JSONWriter.Feature.WriteNullStringAsEmpty); + + HttpEntity httpEntity = new HttpEntity<>(params, getHeaders()); + String url = u8Url + "/u8cloud/api/uapbd/invmandoc/query"; + log.info(url + "\n" + params); + String responseStr = restTemplate.postForObject(url, httpEntity, String.class); + responseStr = UHttpUtils.formatResponse(responseStr); + UBaseResponse> response; + + //响应状态 + Integer status; + try { + response = JSONObject.parseObject(responseStr, new TypeReference>>() { + }); + + status = ConstantType.LOG_STATUS_SUCCESS; + erpLogService.addThirdErpLog(date, url, "invmandocQuery", params, responseStr, System.currentTimeMillis() - date.getTime(), status); + return response; + } catch (Exception e) { + log.error("解析片仔癀存货管理档案查询接口结果异常,返回结果:{}", responseStr); + log.error("异常信息:{}", e); + status = ConstantType.LOG_STATUS_ERROR; + erpLogService.addThirdErpLog(date, url, "invmandocQuery", params, responseStr, System.currentTimeMillis() - date.getTime(), status); + } + return UHttpUtils.returnError(); + } + + +} diff --git a/src/main/java/com/glxp/mipsdl/req/base/ListPageRequest.java b/src/main/java/com/glxp/mipsdl/req/base/ListPageRequest.java new file mode 100644 index 0000000..2dfa465 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/base/ListPageRequest.java @@ -0,0 +1,21 @@ +package com.glxp.mipsdl.req.base; + +import lombok.Data; + +/** + * 接口分页参数 + */ +@Data +public class ListPageRequest { + + /** + * 页码 + */ + private Integer page; + + /** + * 条数 + */ + private Integer limit; + +} diff --git a/src/main/java/com/glxp/mipsdl/req/base/UdiwmsAddProductsRequest.java b/src/main/java/com/glxp/mipsdl/req/base/UdiwmsAddProductsRequest.java new file mode 100644 index 0000000..da1babb --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/base/UdiwmsAddProductsRequest.java @@ -0,0 +1,129 @@ +package com.glxp.mipsdl.req.base; + +/** + * 新增产品信息接口参数 + */ +public class UdiwmsAddProductsRequest { + + /** + * 产品编码 + */ + private String code; + + /** + * 产品名称 + */ + private String name; + + /** + * 计量单位 + */ + private String measname; + + /** + * 规格型号 + */ + private String standard; + + /** + * 注册/备案号 + */ + private String registerNo; + + /** + * 生产厂家 + */ + private String manufactory; + + /** + * 配送企业 + */ + private String supName; + + /** + * 产品类别 + */ + private String cplb; + + /** + * 分类编码 + */ + private String flbm; + + /** + * 器械类别 + */ + private String qxlb; + + /** + * 医保编码 + */ + private String ybbm; + + /** + * 商品条码 + */ + private String sptm; + + /** + * 注册人社会信用号 + */ + private String tyshxydm; + + /** + * 注册人/备案人名称 + */ + private String ylqxzcrbarmc; + + /** + * 注册人/备案人英文名称 + */ + private String ylqxzcrbarywmc; + + /**产品描述 + /**产品描述 + * + */ + private String cpms; + + /** + * 商品名称 + */ + private String spmc; + + /** + * 其他编码 + */ + private String qtbm; + + /** + * 注册证有效期截止时间 + */ + private String zczyxqz; + + /** + * 产品价格 + */ + private String price; + + /** + * 备注 + */ + private String remark; + + /** + * 备注1 + */ + private String remark1; + + /** + * 备注2 + */ + private String remark2; + + /** + * 备注3 + */ + private String remark3; + +} diff --git a/src/main/java/com/glxp/mipsdl/req/base/UdiwmsAddUnitRequest.java b/src/main/java/com/glxp/mipsdl/req/base/UdiwmsAddUnitRequest.java new file mode 100644 index 0000000..78865e7 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/base/UdiwmsAddUnitRequest.java @@ -0,0 +1,41 @@ +package com.glxp.mipsdl.req.base; + +import lombok.Data; + +/** + * 新增往来单位信息接口参数 + */ +@Data +public class UdiwmsAddUnitRequest { + + /** + * 往来单位ID + */ + private String unitId; + + /** + * 往来单位名称 + */ + private String name; + + /** + * 地址 + */ + private String addr; + + /** + * 社会信用号 + */ + private String creditNo; + + /** + * 联系人 + */ + private String contact; + + /** + * 联系电话 + */ + private String mobile; + +} diff --git a/src/main/java/com/glxp/mipsdl/req/base/UdiwmsBusTypeRequest.java b/src/main/java/com/glxp/mipsdl/req/base/UdiwmsBusTypeRequest.java new file mode 100644 index 0000000..3ac0f5f --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/base/UdiwmsBusTypeRequest.java @@ -0,0 +1,21 @@ +package com.glxp.mipsdl.req.base; + +import lombok.Data; + +/** + * 单据类型参数 + */ +@Data +public class UdiwmsBusTypeRequest extends ListPageRequest{ + + /** + * 单据类型编码 + */ + private String code; + + /** + * 单据类型名称 + */ + private String name; + +} diff --git a/src/main/java/com/glxp/mipsdl/req/base/UdiwmsInvProductsRequest.java b/src/main/java/com/glxp/mipsdl/req/base/UdiwmsInvProductsRequest.java new file mode 100644 index 0000000..808e091 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/base/UdiwmsInvProductsRequest.java @@ -0,0 +1,73 @@ +package com.glxp.mipsdl.req.base; + +import lombok.Data; + +import java.util.List; + +/** + * 库存产品接口请求参数 + */ +@Data +public class UdiwmsInvProductsRequest extends ListPageRequest { + + /** + * 批次号 + */ + private String batchNo; + + /** + * 货位号,支持模糊查询 + */ + private String warehouseCode; + + /** + * 货位名称,支持模糊查询 + */ + private String warehouseName; + + /** + * 仓库号,支持模糊查询 + */ + private String inventoryCode; + + /** + * 仓库名称,支持模糊查询 + */ + private String inventoryName; + + /** + * 仓库编码集合,暂不启用 + */ + private List inventoryCodes; + + /** + * 产品编号,支持模糊查询 + */ + private String productId; + + /** + * 产品名称 + */ + private String productName; + + /** + * 供应商名称(配送企业),支持模糊查询 + */ + private String supName; + + /** + * 生产厂家 + */ + private String manufactory; + + /** + * 规格型号,支持模糊查询 + */ + private String standard; + + /** + * 注册/备案证号,支持模糊查询 + */ + private String registerNo; + +} diff --git a/src/main/java/com/glxp/mipsdl/req/base/UdiwmsOrderDetailRequest.java b/src/main/java/com/glxp/mipsdl/req/base/UdiwmsOrderDetailRequest.java new file mode 100644 index 0000000..7c0cd03 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/base/UdiwmsOrderDetailRequest.java @@ -0,0 +1,171 @@ +package com.glxp.mipsdl.req.base; + +import lombok.Data; + +import java.math.BigDecimal; +import java.util.List; + +/** + * 单据详情参数 + */ +@Data +public class UdiwmsOrderDetailRequest { + + /** + * 产品编码 + */ + private String productId; + + /** + * 产品名称 + */ + private String productName; + + /** + * 单价 + */ + private BigDecimal price; + + /** + * 批次号 + */ + private String batchNo; + + /** + * 失效日期 + */ + private String expireDate; + + /** + * 生产日期 + */ + private String productDate; + + /** + * 规格型号 + */ + private String standard; + + /** + * 单据号 + */ + private String billNo; + + /** + * 销售发票号(第二票) + */ + private String secSalesInvNo; + + /** + * 发票日期 + */ + private String invoiceDate; + + /** + * 第二票销售清单号 + */ + private String secSalesListNo; + + /** + * 销售发票号(第一票) + */ + private String firstSalesInvNo; + + /** + * 注册/备案证号 + */ + private String registerNo; + + /** + * 生产厂家 + */ + private String manufactory; + + /** + * 计量单位 + */ + private String measname; + + /** + * 数量 + */ + private Integer count; + + /** + * 备注 + */ + private String remark; + + /** + * 备注1/规格型号ID + */ + private String remark1; + + /** + * 备注2/型号 + */ + private String remark2; + + /** + * 备注3/规格 + */ + private String remark3; + + /** + * 是否允许无批次号 + */ + private boolean allowNoBatch; + + /** + * 序列号 + */ + private String serialNo; + + private List codeList; + + /** + * 码明细参数 + */ + public static class CodeDetailEntity { + + /** + * UDI码 + */ + private String code; + + /** + * DI + */ + private String nameCode; + + /** + * 数量 + */ + private Integer count; + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getNameCode() { + return nameCode; + } + + public void setNameCode(String nameCode) { + this.nameCode = nameCode; + } + + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } + } + +} diff --git a/src/main/java/com/glxp/mipsdl/req/base/UdiwmsOrderQueryRequest.java b/src/main/java/com/glxp/mipsdl/req/base/UdiwmsOrderQueryRequest.java new file mode 100644 index 0000000..94a2a6f --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/base/UdiwmsOrderQueryRequest.java @@ -0,0 +1,42 @@ +package com.glxp.mipsdl.req.base; + +import lombok.Data; + +/** + * 单据(订单)信息查询接口参数 + */ +@Data +public class UdiwmsOrderQueryRequest extends ListPageRequest { + + /** + * 单据号 + */ + private String billNo; + + /** + * 往来单位 + */ + private String corpName; + + /** + * 单据类型 + */ + private String billType; + + /** + * 最后更新时间 + */ + private String lastUpdateTime; + + //片仔癀用友专属参数 + private String action; + + private String billAction; + + private String startDate; + + private String endDate; + + private String billFlag; + +} diff --git a/src/main/java/com/glxp/mipsdl/req/base/UdiwmsOrderRequest.java b/src/main/java/com/glxp/mipsdl/req/base/UdiwmsOrderRequest.java new file mode 100644 index 0000000..cf51fa8 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/base/UdiwmsOrderRequest.java @@ -0,0 +1,65 @@ +package com.glxp.mipsdl.req.base; + +import lombok.Data; + +import java.util.List; + +@Data +public class UdiwmsOrderRequest { + + /** + * 单据号 + */ + private String billNo; + + /** + * 单据日期 + */ + private String billDate; + + /** + * 往来单位ID + */ + private String corpId; + + /** + * 单据状态,0.未签字,1.已签字 + */ + private String billFlag; + + /** + * 出入库类型:1:入库,2:出库 + */ + private Integer inoutType; + + /** + * 单据类型/业务类型 + */ + private String billType; + + /** + * 往来单位 + */ + private String corpName; + + /** + * 仓库编码 + */ + private String locInvCode; + + /** + * 仓库名称 + */ + private String locInvName; + + /** + * 备注 + */ + private String remark; + + /** + * 单据详情数组 + */ + private List item; + +} diff --git a/src/main/java/com/glxp/mipsdl/req/base/UdiwmsPostBillRequest.java b/src/main/java/com/glxp/mipsdl/req/base/UdiwmsPostBillRequest.java new file mode 100644 index 0000000..36aa1a5 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/base/UdiwmsPostBillRequest.java @@ -0,0 +1,15 @@ +package com.glxp.mipsdl.req.base; + +import com.glxp.mipsdl.vo.ErpOrderEntity; +import lombok.Data; + +import java.util.List; +import java.util.Map; + +@Data +public class UdiwmsPostBillRequest { + private String billNo; + private String billAction; + private String modifyType; + private Map> postMap; +} diff --git a/src/main/java/com/glxp/mipsdl/req/base/UdiwmsPreInOrderRequest.java b/src/main/java/com/glxp/mipsdl/req/base/UdiwmsPreInOrderRequest.java new file mode 100644 index 0000000..2a7d15f --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/base/UdiwmsPreInOrderRequest.java @@ -0,0 +1,41 @@ +package com.glxp.mipsdl.req.base; + +import lombok.Data; + +import java.util.List; + +@Data +public class UdiwmsPreInOrderRequest { + + + private String billNo; + private String billdate; + private String corpId; + private String corpName; + private String locInvCode; + private String locInvName; + private String actor; + private String thirdSys; + private String remark; + private List items; + + @Data + public static class ItemDTO { + private String code; + private String productId; + private String productName; + private String standard; + private String expireDate; + private String productDate; + private String batchNo; + private Integer count; + private String measname; + private String registerNo; + private Double price; + private String secSalesInvNo; + private String invoiceDate; + private String secSalesListNo; + private String firstSalesInvNo; + private String remark; + } +} diff --git a/src/main/java/com/glxp/mipsdl/req/base/UdiwmsProductRequest.java b/src/main/java/com/glxp/mipsdl/req/base/UdiwmsProductRequest.java new file mode 100644 index 0000000..7865ef0 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/base/UdiwmsProductRequest.java @@ -0,0 +1,66 @@ +package com.glxp.mipsdl.req.base; + +import lombok.Data; + +/** + * 产品信息查询接口参数 + */ +@Data +public class UdiwmsProductRequest extends ListPageRequest { + + /** + * 产品编码 + */ + private String code; + + /** + * 产品名称 + */ + private String name; + + /** + * 注册/备案号 + */ + private String registerNo; + + /** + * 生产厂家 + */ + private String manufactory; + + /** + * 医保编码 + */ + private String ybbm; + + /** + * 规格型号 + */ + private String standard; + + /** + * 最后更新时间 + */ + private String lastUpdateTime; + + /** + * 备注 + */ + private String remark; + + /** + * 备注1 + */ + private String remark1; + + /** + * 备注2 + */ + private String remark2; + + /** + * 备注3 + */ + private String remark3; + +} diff --git a/src/main/java/com/glxp/mipsdl/req/base/UdiwmsQueryUdiInvProductsRequest.java b/src/main/java/com/glxp/mipsdl/req/base/UdiwmsQueryUdiInvProductsRequest.java new file mode 100644 index 0000000..00750de --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/base/UdiwmsQueryUdiInvProductsRequest.java @@ -0,0 +1,36 @@ +package com.glxp.mipsdl.req.base; + +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Data; + +/** + * 产品库存信息查询接口参数,此接口参数用于提供给第三方系统查询UDI系统产品库存信息 + */ +@Data +public class UdiwmsQueryUdiInvProductsRequest extends ListPageRequest { + + /** + * DI产品标识 + */ + @JsonProperty("diCode") + private String diCode; + + /** + * 产品名称 + */ + @JsonProperty("productName") + private String productName; + + /** + * 批次号 + */ + @JsonProperty("batchNo") + private String batchNo; + + /** + * 配送商名称 + */ + @JsonProperty("supName") + private String supName; + +} diff --git a/src/main/java/com/glxp/mipsdl/req/base/UdiwmsUnitRequest.java b/src/main/java/com/glxp/mipsdl/req/base/UdiwmsUnitRequest.java new file mode 100644 index 0000000..3377647 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/base/UdiwmsUnitRequest.java @@ -0,0 +1,31 @@ +package com.glxp.mipsdl.req.base; + +import lombok.Data; + +/** + * 往来单位查询参数 + */ +@Data +public class UdiwmsUnitRequest extends ListPageRequest { + + /** + * 关键字查询,匹配 往来单位编码,往来单位名称,往来单位简称,支持模糊查询 + */ + private String key; + + /** + * 往来单位编码 + */ + private String unitId; + + /** + * 往来单位名称 + */ + private String name; + + /** + * 最后更新时间 + */ + private String lastUpdateTime; + +} diff --git a/src/main/java/com/glxp/mipsdl/req/base/UdiwmsWarehouseRequest.java b/src/main/java/com/glxp/mipsdl/req/base/UdiwmsWarehouseRequest.java new file mode 100644 index 0000000..3830c93 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/base/UdiwmsWarehouseRequest.java @@ -0,0 +1,21 @@ +package com.glxp.mipsdl.req.base; + +import lombok.Data; + +/** + * 仓库(科室)信息查询接口参数 + */ +@Data +public class UdiwmsWarehouseRequest extends ListPageRequest { + + /** + * 仓库号,支持模糊查询 + */ + private String inventoryCode; + + /** + * 货位号,支持模糊查询 + */ + private String warehouseCode; + +} diff --git a/src/main/java/com/glxp/mipsdl/req/dsxyy/DsBusTypeRequest.java b/src/main/java/com/glxp/mipsdl/req/dsxyy/DsBusTypeRequest.java new file mode 100644 index 0000000..21c402f --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/dsxyy/DsBusTypeRequest.java @@ -0,0 +1,11 @@ +package com.glxp.mipsdl.req.dsxyy; + +import com.glxp.mipsdl.req.base.UdiwmsBusTypeRequest; +import lombok.Data; + +/** + * 东山县医院单据类型接口查询参数 + */ +@Data +public class DsBusTypeRequest extends UdiwmsBusTypeRequest { +} diff --git a/src/main/java/com/glxp/mipsdl/req/dsxyy/DsOrderRequest.java b/src/main/java/com/glxp/mipsdl/req/dsxyy/DsOrderRequest.java new file mode 100644 index 0000000..69f2063 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/dsxyy/DsOrderRequest.java @@ -0,0 +1,30 @@ +package com.glxp.mipsdl.req.dsxyy; + +import com.glxp.mipsdl.req.base.UdiwmsOrderDetailRequest; +import com.glxp.mipsdl.req.base.UdiwmsOrderRequest; +import lombok.Data; + +import java.util.List; + +/** + * 东山县医院提交单据接口参数 + */ +@Data +public class DsOrderRequest extends UdiwmsOrderRequest { + + /** + * 仓库编码 + */ + private String locStorageCode; + + /** + * 仓库名称 + */ + private String locStorageName; + + /** + * 单据详情数组 + */ + private List items; + +} diff --git a/src/main/java/com/glxp/mipsdl/req/dsxyy/DsProductRequest.java b/src/main/java/com/glxp/mipsdl/req/dsxyy/DsProductRequest.java new file mode 100644 index 0000000..a55943d --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/dsxyy/DsProductRequest.java @@ -0,0 +1,11 @@ +package com.glxp.mipsdl.req.dsxyy; + +import com.glxp.mipsdl.req.base.UdiwmsProductRequest; +import lombok.Data; + +/** + * 东山县医院获取产品列表接口参数 + */ +@Data +public class DsProductRequest extends UdiwmsProductRequest { +} diff --git a/src/main/java/com/glxp/mipsdl/req/dsxyy/DsUnitRequest.java b/src/main/java/com/glxp/mipsdl/req/dsxyy/DsUnitRequest.java new file mode 100644 index 0000000..96bc655 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/dsxyy/DsUnitRequest.java @@ -0,0 +1,12 @@ +package com.glxp.mipsdl.req.dsxyy; + +import com.glxp.mipsdl.req.base.UdiwmsUnitRequest; +import lombok.Data; + +/** + * 东山县医院获取往来单位列表接口参数 + */ +@Data +public class DsUnitRequest extends UdiwmsUnitRequest { + +} diff --git a/src/main/java/com/glxp/mipsdl/req/phxyy/PhBusTypeRequest.java b/src/main/java/com/glxp/mipsdl/req/phxyy/PhBusTypeRequest.java new file mode 100644 index 0000000..3fb0791 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/phxyy/PhBusTypeRequest.java @@ -0,0 +1,8 @@ +package com.glxp.mipsdl.req.phxyy; + +import com.glxp.mipsdl.req.base.UdiwmsBusTypeRequest; +import lombok.Data; + +@Data +public class PhBusTypeRequest extends UdiwmsBusTypeRequest { +} diff --git a/src/main/java/com/glxp/mipsdl/req/phxyy/PhOrderRequest.java b/src/main/java/com/glxp/mipsdl/req/phxyy/PhOrderRequest.java new file mode 100644 index 0000000..bf4a2fb --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/phxyy/PhOrderRequest.java @@ -0,0 +1,22 @@ +package com.glxp.mipsdl.req.phxyy; + +import com.glxp.mipsdl.req.base.UdiwmsOrderRequest; +import lombok.Data; + +/** + * 平和县医院提交单据参数 + */ +@Data +public class PhOrderRequest extends UdiwmsOrderRequest { + + /** + * 仓库编码 + */ + private String locStorageCode; + + /** + * 仓库名称 + */ + private String locStorageName; + +} diff --git a/src/main/java/com/glxp/mipsdl/req/phxyy/PhProductRequest.java b/src/main/java/com/glxp/mipsdl/req/phxyy/PhProductRequest.java new file mode 100644 index 0000000..2af4975 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/phxyy/PhProductRequest.java @@ -0,0 +1,11 @@ +package com.glxp.mipsdl.req.phxyy; + +import com.glxp.mipsdl.req.base.UdiwmsProductRequest; +import lombok.Data; + +/** + * 平和县医院产品列表接口请求参数 + */ +@Data +public class PhProductRequest extends UdiwmsProductRequest { +} diff --git a/src/main/java/com/glxp/mipsdl/req/phxyy/PhUnitRequest.java b/src/main/java/com/glxp/mipsdl/req/phxyy/PhUnitRequest.java new file mode 100644 index 0000000..d4a9f09 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/phxyy/PhUnitRequest.java @@ -0,0 +1,11 @@ +package com.glxp.mipsdl.req.phxyy; + +import com.glxp.mipsdl.req.base.UdiwmsUnitRequest; +import lombok.Data; + +/** + * 平和县医院往来单位信息接口请求参数 + */ +@Data +public class PhUnitRequest extends UdiwmsUnitRequest { +} diff --git a/src/main/java/com/glxp/mipsdl/req/post/PostFileThrOrderRequest.java b/src/main/java/com/glxp/mipsdl/req/post/PostFileThrOrderRequest.java new file mode 100644 index 0000000..8e15e3b --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/post/PostFileThrOrderRequest.java @@ -0,0 +1,15 @@ +package com.glxp.mipsdl.req.post; + +import lombok.Data; + +import java.util.List; + +@Data +public class PostFileThrOrderRequest { + + private String genKey; + private String thirdSys; + private String uploadType; + private List datas; + +} diff --git a/src/main/java/com/glxp/mipsdl/req/post/PostThrCorpRequest.java b/src/main/java/com/glxp/mipsdl/req/post/PostThrCorpRequest.java new file mode 100644 index 0000000..1d27493 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/post/PostThrCorpRequest.java @@ -0,0 +1,13 @@ +package com.glxp.mipsdl.req.post; + +import com.glxp.mipsdl.res.udiwms.UdiwmsUnitResponse; +import lombok.Data; + +import java.util.List; + +@Data +public class PostThrCorpRequest { + private String thirdSys; + private List corps; + private String uploadType; +} diff --git a/src/main/java/com/glxp/mipsdl/req/post/PostThrInvProductsRequest.java b/src/main/java/com/glxp/mipsdl/req/post/PostThrInvProductsRequest.java new file mode 100644 index 0000000..aeb199e --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/post/PostThrInvProductsRequest.java @@ -0,0 +1,13 @@ +package com.glxp.mipsdl.req.post; + +import com.glxp.mipsdl.res.udiwms.UdiwmsInvProductResponse; +import lombok.Data; + +import java.util.List; + +@Data +public class PostThrInvProductsRequest { + + private String thirdSys; + private List datas; +} diff --git a/src/main/java/com/glxp/mipsdl/req/post/PostThrOrderRequest.java b/src/main/java/com/glxp/mipsdl/req/post/PostThrOrderRequest.java new file mode 100644 index 0000000..80fd944 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/post/PostThrOrderRequest.java @@ -0,0 +1,17 @@ +package com.glxp.mipsdl.req.post; + +import com.glxp.mipsdl.res.udiwms.UdiwmsOrderResponse; +import lombok.Data; + +import java.util.List; + +@Data +public class PostThrOrderRequest { + + private String thirdSys; + private List datas; + + private String genKey; + private String uploadType; + +} diff --git a/src/main/java/com/glxp/mipsdl/req/post/PostThrProductsRequest.java b/src/main/java/com/glxp/mipsdl/req/post/PostThrProductsRequest.java new file mode 100644 index 0000000..6d1eec9 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/post/PostThrProductsRequest.java @@ -0,0 +1,13 @@ +package com.glxp.mipsdl.req.post; + +import com.glxp.mipsdl.res.udiwms.UdiwmsProductInfoResponse; +import lombok.Data; + +import java.util.List; + +@Data +public class PostThrProductsRequest { + private String uploadType; + private String thirdSys; + List datas; +} diff --git a/src/main/java/com/glxp/mipsdl/req/post/ThrOrderImportDetailEntity.java b/src/main/java/com/glxp/mipsdl/req/post/ThrOrderImportDetailEntity.java new file mode 100644 index 0000000..fdf6f13 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/post/ThrOrderImportDetailEntity.java @@ -0,0 +1,32 @@ +package com.glxp.mipsdl.req.post; + +import lombok.Data; + +import java.util.Date; + +@Data +public class ThrOrderImportDetailEntity { + + private Integer id; + private String billNo; + private String billdate; + private String corpId; + private String corpName; + private String billType; + private String billFlag; + private String productId; + private String productName; + private String spec; + private String batchNo; + private String expireDate; + private String productDate; + private Integer count; + private Integer reCount; + private Integer status; + private Date updateTime; + private String remark; + private String genKeyFk; + private String thirdSysFk; + private String originType; + +} diff --git a/src/main/java/com/glxp/mipsdl/req/pzh/USignRequest.java b/src/main/java/com/glxp/mipsdl/req/pzh/USignRequest.java new file mode 100644 index 0000000..64257d4 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/pzh/USignRequest.java @@ -0,0 +1,17 @@ +package com.glxp.mipsdl.req.pzh; + +import lombok.Data; + +import javax.validation.constraints.NotNull; + +/** + * 片仔癀用友,单据签名接口参数 + */ +@Data +public class USignRequest { + + @NotNull(message = "单据号不能为空") + private String billcode; + + private String billAction; +} diff --git a/src/main/java/com/glxp/mipsdl/req/ucloud/ModifyPruchaseinRequest.java b/src/main/java/com/glxp/mipsdl/req/ucloud/ModifyPruchaseinRequest.java new file mode 100644 index 0000000..2b5080c --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/ucloud/ModifyPruchaseinRequest.java @@ -0,0 +1,196 @@ +package com.glxp.mipsdl.req.ucloud; + +import com.alibaba.fastjson2.annotation.JSONField; +import lombok.Data; + +import java.util.List; + +@Data +public class ModifyPruchaseinRequest { + public String getBillAction() { + return billAction; + } + + public void setBillAction(String billAction) { + this.billAction = billAction; + } + + private String billAction; + @JSONField(name = "GeneralBillVO") + private List GeneralBillVO; + + public List getGeneralBillVO() { + return GeneralBillVO; + } + + public void setGeneralBillVO(List GeneralBillVO) { + this.GeneralBillVO = GeneralBillVO; + } + + public static class GeneralBillVOBean { + /** + * ChildrenVO : [{"cinventoryid":"1203040506001","crowno":"10","ninnum":"10","nprice":"10"}] + * ParentVO : {"cbiztype":"C010","coperatorid":"18959632283","cwarehouseid":"0602","pk_calbody":"1110","pk_corp":"1110","vbillcode":"CR2103230001","vnote":"11111"} + */ + @JSONField(name = "ParentVO") + private ParentVOBean ParentVO; + @JSONField(name = "ChildrenVO") + private List ChildrenVO; + + public ParentVOBean getParentVO() { + return ParentVO; + } + + public void setParentVO(ParentVOBean ParentVO) { + this.ParentVO = ParentVO; + } + + public List getChildrenVO() { + return ChildrenVO; + } + + public void setChildrenVO(List ChildrenVO) { + this.ChildrenVO = ChildrenVO; + } + + public static class ParentVOBean { + /** + * cbiztype : C010 + * coperatorid : 18959632283 + * cwarehouseid : 0602 + * pk_calbody : 1110 + * pk_corp : 1110 + * vbillcode : CR2103230001 + * vnote : 11111 + */ + + private String cbiztype; + private String coperatorid; + private String cwarehouseid; + private String pk_calbody; + private String pk_corp; + private String vbillcode; + private String vnote; + private String ccustomerid; + + public String getCbiztype() { + return cbiztype; + } + + public void setCbiztype(String cbiztype) { + this.cbiztype = cbiztype; + } + + public String getCoperatorid() { + return coperatorid; + } + + public void setCoperatorid(String coperatorid) { + this.coperatorid = coperatorid; + } + + public String getCwarehouseid() { + return cwarehouseid; + } + + public void setCwarehouseid(String cwarehouseid) { + this.cwarehouseid = cwarehouseid; + } + + public String getPk_calbody() { + return pk_calbody; + } + + public void setPk_calbody(String pk_calbody) { + this.pk_calbody = pk_calbody; + } + + public String getPk_corp() { + return pk_corp; + } + + public void setPk_corp(String pk_corp) { + this.pk_corp = pk_corp; + } + + public String getVbillcode() { + return vbillcode; + } + + public void setVbillcode(String vbillcode) { + this.vbillcode = vbillcode; + } + + public String getVnote() { + return vnote; + } + + public void setVnote(String vnote) { + this.vnote = vnote; + } + + public String getCcustomerid() { + return ccustomerid; + } + + public void setCcustomerid(String ccustomerid) { + this.ccustomerid = ccustomerid; + } + } + + public static class ChildrenVOBean { + /** + * cinventoryid : 1203040506001 + * crowno : 10 + * ninnum : 10 + * nprice : 10 + */ + + private String cinventoryid; + private String crowno; + private String ninnum; + private String nprice; + private String noutnum; + + public String getCinventoryid() { + return cinventoryid; + } + + public void setCinventoryid(String cinventoryid) { + this.cinventoryid = cinventoryid; + } + + public String getCrowno() { + return crowno; + } + + public void setCrowno(String crowno) { + this.crowno = crowno; + } + + public String getNinnum() { + return ninnum; + } + + public void setNinnum(String ninnum) { + this.ninnum = ninnum; + } + + public String getNprice() { + return nprice; + } + + public void setNprice(String nprice) { + this.nprice = nprice; + } + + public String getNoutnum() { + return noutnum; + } + + public void setNoutnum(String noutnum) { + this.noutnum = noutnum; + } + } + } +} diff --git a/src/main/java/com/glxp/mipsdl/req/ucloud/ModifySaleRequest.java b/src/main/java/com/glxp/mipsdl/req/ucloud/ModifySaleRequest.java new file mode 100644 index 0000000..7c4306b --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/ucloud/ModifySaleRequest.java @@ -0,0 +1,187 @@ +package com.glxp.mipsdl.req.ucloud; + + +import com.alibaba.fastjson2.annotation.JSONField; + +import java.util.List; + +public class ModifySaleRequest { + public String getBillAction() { + return billAction; + } + + public void setBillAction(String billAction) { + this.billAction = billAction; + } + + private String billAction; + @JSONField(name = "GeneralBillVO") + private List GeneralBillVO; + + public List getGeneralBillVO() { + return GeneralBillVO; + } + + public void setGeneralBillVO(List GeneralBillVO) { + this.GeneralBillVO = GeneralBillVO; + } + + public static class GeneralBillVOBean { + /** + * ChildrenVO : [{"cinventoryid":"1203040506001","crowno":"10","ninnum":"10","nprice":"10"}] + * ParentVO : {"cbiztype":"C010","coperatorid":"18959632283","cwarehouseid":"0602","pk_calbody":"1110","pk_corp":"1110","vbillcode":"CR2103230001","vnote":"11111"} + */ + @JSONField(name = "ParentVO") + private ModifySaleRequest.GeneralBillVOBean.ParentVOBean ParentVO; + @JSONField(name = "ChildrenVO") + private List ChildrenVO; + + public ParentVOBean getParentVO() { + return ParentVO; + } + + public void setParentVO(ParentVOBean ParentVO) { + this.ParentVO = ParentVO; + } + + public List getChildrenVO() { + return ChildrenVO; + } + + public void setChildrenVO(List ChildrenVO) { + this.ChildrenVO = ChildrenVO; + } + + public static class ParentVOBean { + /** + * cbiztype : C010 + * coperatorid : 18959632283 + * cwarehouseid : 0602 + * pk_calbody : 1110 + * pk_corp : 1110 + * vbillcode : CR2103230001 + * vnote : 11111 + */ + + private String cbiztype; + private String coperatorid; + private String cwarehouseid; + private String pk_calbody; + private String pk_corp; + private String vbillcode; + private String vnote; + private String ccustomerid; + + public String getCbiztype() { + return cbiztype; + } + + public void setCbiztype(String cbiztype) { + this.cbiztype = cbiztype; + } + + public String getCoperatorid() { + return coperatorid; + } + + public void setCoperatorid(String coperatorid) { + this.coperatorid = coperatorid; + } + + public String getCwarehouseid() { + return cwarehouseid; + } + + public void setCwarehouseid(String cwarehouseid) { + this.cwarehouseid = cwarehouseid; + } + + public String getPk_calbody() { + return pk_calbody; + } + + public void setPk_calbody(String pk_calbody) { + this.pk_calbody = pk_calbody; + } + + public String getPk_corp() { + return pk_corp; + } + + public void setPk_corp(String pk_corp) { + this.pk_corp = pk_corp; + } + + public String getVbillcode() { + return vbillcode; + } + + public void setVbillcode(String vbillcode) { + this.vbillcode = vbillcode; + } + + public String getVnote() { + return vnote; + } + + public void setVnote(String vnote) { + this.vnote = vnote; + } + + public String getCcustomerid() { + return ccustomerid; + } + + public void setCcustomerid(String ccustomerid) { + this.ccustomerid = ccustomerid; + } + } + + public static class ChildrenVOBean { + /** + * cinventoryid : 1203040506001 + * crowno : 10 + * ninnum : 10 + * nprice : 10 + */ + + private String cinventoryid; + private String noutnum; + private String nprice; + private String crowno; + + public String getCrowno() { + return crowno; + } + + public void setCrowno(String crowno) { + this.crowno = crowno; + } + + public String getCinventoryid() { + return cinventoryid; + } + + public void setCinventoryid(String cinventoryid) { + this.cinventoryid = cinventoryid; + } + + + public String getNprice() { + return nprice; + } + + public void setNprice(String nprice) { + this.nprice = nprice; + } + + public String getNoutnum() { + return noutnum; + } + + public void setNoutnum(String noutnum) { + this.noutnum = noutnum; + } + } + } +} diff --git a/src/main/java/com/glxp/mipsdl/req/ucloud/UCustmandocRequest.java b/src/main/java/com/glxp/mipsdl/req/ucloud/UCustmandocRequest.java new file mode 100644 index 0000000..28231cb --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/ucloud/UCustmandocRequest.java @@ -0,0 +1,28 @@ +package com.glxp.mipsdl.req.ucloud; + +import lombok.Data; +import lombok.NonNull; + +@Data +public class UCustmandocRequest { + + + private String pk_areacl; //所属地区 + private String unitcode; + private String endTs; // 结束时间 + private String taxpayer; //纳税人登记号 + @NonNull + private String page_now; + private String startTs; //开始时间 + private String custcode; // 客商编码 + private String custname; //客商名称 + private String custshortname; //客商简称 + @NonNull + private String page_size; + + public UCustmandocRequest(Integer page, Integer limit) { + this.page_now = String.valueOf(page); + this.page_size = String.valueOf(limit); + } + +} diff --git a/src/main/java/com/glxp/mipsdl/req/ucloud/UInvmandocRequest.java b/src/main/java/com/glxp/mipsdl/req/ucloud/UInvmandocRequest.java new file mode 100644 index 0000000..76a4aa8 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/ucloud/UInvmandocRequest.java @@ -0,0 +1,48 @@ +package com.glxp.mipsdl.req.ucloud; + +import lombok.Data; + +@Data +public class UInvmandocRequest { + + + /** + * invbarcode : + * issecondarybarcode : + * unitcode : 1110 + * invclcode : + * invname : + * startTs : + * invmnecode : + * dr : + * invcode : + * invshortname : + * isprimarybarcode : + * endTs : + * forinvname : + * page_now : 1 + * page_size : 10 + */ + + private String invbarcode; //存货条形码 + private String issecondarybarcode; //是否次条码管理 + private String unitcode; // 公司编码 + private String invclcode; //存货分类编码 + private String invname; //存货名称 + private String startTs; //开始时间 + private String invmnecode; //存货助记码 + private String dr; //删除标志 + private String invcode; //存货编码 + private String invshortname; //存货简称 + private String isprimarybarcode; //是否主条码管理 + private String endTs; //结束时间 + private String forinvname; //外文名称 + private String page_now; + private String page_size; + + + public UInvmandocRequest(Integer page, Integer limit) { + this.page_now = String.valueOf(page); + this.page_size = String.valueOf(limit); + } +} diff --git a/src/main/java/com/glxp/mipsdl/req/ucloud/UOnhandPostQueryRequest.java b/src/main/java/com/glxp/mipsdl/req/ucloud/UOnhandPostQueryRequest.java new file mode 100644 index 0000000..f5764fb --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/ucloud/UOnhandPostQueryRequest.java @@ -0,0 +1,33 @@ +package com.glxp.mipsdl.req.ucloud; + +import lombok.Data; + +import java.util.List; +@Data +public class UOnhandPostQueryRequest { + + private String hsl; // 换算率 + private String isGroupByFreeItem; //按自由项展开 + private String isGroupByInv; //按存货展开 + private String castunit; //辅单位 + private String corp; //公司 + private String isGroupByCastunit; // 按辅计量展开 + private String batchcode; //批次号 + private List inventory; + private String isGroupByCalbody; // 按库存组织展开 + private String warehouse; //仓库 + private String space; //货位 + private String isGroupByHsl; //按换算率展开 + private String isGroupBySpace; //按货位展开 + private String isGroupByVendor; // 按供应商展开 + private String vendor; // 供应商 + private String isGroupByWarehouse; //按仓库展开 + private String pagesize; + private String isGroupByBatchcode; // 按批次号展开 + private String numcondition; //只查询数量大于0传>,只查询数量小于0传<,只查询数量等于0传=,只查询数量不等于0传<>,其他符号不识别,u8c3.1版本 + private String pagenow; + private String calbody; // 库存组织 + private String page_size; + private String page_now; + +} diff --git a/src/main/java/com/glxp/mipsdl/req/ucloud/UOnhandQueryRequest.java b/src/main/java/com/glxp/mipsdl/req/ucloud/UOnhandQueryRequest.java new file mode 100644 index 0000000..0a46770 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/ucloud/UOnhandQueryRequest.java @@ -0,0 +1,36 @@ +package com.glxp.mipsdl.req.ucloud; + +import lombok.Data; + +import javax.validation.constraints.NotNull; +import java.util.List; + +@Data +public class UOnhandQueryRequest { + + private String hsl; // 换算率 + private String isGroupByFreeItem; //按自由项展开 + private String isGroupByInv; //按存货展开 + private String castunit; //辅单位 + private String corp; //公司 + private String isGroupByCastunit; // 按辅计量展开 + private String batchcode; //批次号 + @NotNull(message = "存货编码不能为空") + private String inventory; //存货 + private List inventorys; + private String isGroupByCalbody; // 按库存组织展开 + private String warehouse; //仓库 + private String space; //货位 + private String isGroupByHsl; //按换算率展开 + private String isGroupBySpace; //按货位展开 + private String isGroupByVendor; // 按供应商展开 + private String vendor; // 供应商 + private String isGroupByWarehouse; //按仓库展开 + private String pagesize; + private String isGroupByBatchcode; // 按批次号展开 + private String numcondition; //只查询数量大于0传>,只查询数量小于0传<,只查询数量等于0传=,只查询数量不等于0传<>,其他符号不识别,u8c3.1版本 + private String pagenow; + private String calbody; // 库存组织 + private String page_size; + private String page_now; +} diff --git a/src/main/java/com/glxp/mipsdl/req/ucloud/UPurchaseModifyRequest.java b/src/main/java/com/glxp/mipsdl/req/ucloud/UPurchaseModifyRequest.java new file mode 100644 index 0000000..902acc5 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/ucloud/UPurchaseModifyRequest.java @@ -0,0 +1,10 @@ +package com.glxp.mipsdl.req.ucloud; + +import lombok.Data; + +import java.util.List; + +@Data +public class UPurchaseModifyRequest { + private List GeneralBillVO; +} diff --git a/src/main/java/com/glxp/mipsdl/req/ucloud/UPurchaseinRequest.java b/src/main/java/com/glxp/mipsdl/req/ucloud/UPurchaseinRequest.java new file mode 100644 index 0000000..81f7400 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/ucloud/UPurchaseinRequest.java @@ -0,0 +1,37 @@ +package com.glxp.mipsdl.req.ucloud; + +import lombok.Data; + +@Data +public class UPurchaseinRequest { + + /** + * corp : 1110 + * maker : + * date_end : 2021-02-25 + * fbillflag : + * inventory : + * warehouse : + * date_begin : 2020-01-01 + * billcode : + * page_now : + * calbody : + * page_size : + */ + + private String corp; //公司 + private String date_begin; //起始日期 + private String date_end; //结束日期 + private String billcode; //单据号 + private String fbillflag; // 单据状态 + private String maker; //制单人 + private String inventory; //存货 + private String warehouse; //仓库 + private String calbody; //库存组织 + private String page_size; + private String page_now; + + + + +} diff --git a/src/main/java/com/glxp/mipsdl/req/ucloud/UPurhaseinSignRequest.java b/src/main/java/com/glxp/mipsdl/req/ucloud/UPurhaseinSignRequest.java new file mode 100644 index 0000000..d40bb71 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/ucloud/UPurhaseinSignRequest.java @@ -0,0 +1,151 @@ +package com.glxp.mipsdl.req.ucloud; + +public class UPurhaseinSignRequest { + + + /** + * signInfo : {"date_sign":"1","coperator":"1","date_unsign":"1"} + * queryInfo : {"corp":"1","date_begin":"1","billcode":"1","maker":"1","date_end":"1","inventory":"1","warehouse":"1","calbody":"1"} + */ + + private SignInfoBean signInfo; + private QueryInfoBean queryInfo; + + public SignInfoBean getSignInfo() { + return signInfo; + } + + public void setSignInfo(SignInfoBean signInfo) { + this.signInfo = signInfo; + } + + public QueryInfoBean getQueryInfo() { + return queryInfo; + } + + public void setQueryInfo(QueryInfoBean queryInfo) { + this.queryInfo = queryInfo; + } + + public static class SignInfoBean { + /** + * date_sign : 1 + * coperator : 1 + * date_unsign : 1 + */ + + private String date_sign; + private String coperator; + private String date_unsign; + + public String getDate_sign() { + return date_sign; + } + + public void setDate_sign(String date_sign) { + this.date_sign = date_sign; + } + + public String getCoperator() { + return coperator; + } + + public void setCoperator(String coperator) { + this.coperator = coperator; + } + + public String getDate_unsign() { + return date_unsign; + } + + public void setDate_unsign(String date_unsign) { + this.date_unsign = date_unsign; + } + } + + public static class QueryInfoBean { + /** + * corp : 1 + * date_begin : 1 + * billcode : 1 + * maker : 1 + * date_end : 1 + * inventory : 1 + * warehouse : 1 + * calbody : 1 + */ + + private String corp; + private String date_begin; + private String billcode; + private String maker; + private String date_end; + private String inventory; + private String warehouse; + private String calbody; + + public String getCorp() { + return corp; + } + + public void setCorp(String corp) { + this.corp = corp; + } + + public String getDate_begin() { + return date_begin; + } + + public void setDate_begin(String date_begin) { + this.date_begin = date_begin; + } + + public String getBillcode() { + return billcode; + } + + public void setBillcode(String billcode) { + this.billcode = billcode; + } + + public String getMaker() { + return maker; + } + + public void setMaker(String maker) { + this.maker = maker; + } + + public String getDate_end() { + return date_end; + } + + public void setDate_end(String date_end) { + this.date_end = date_end; + } + + public String getInventory() { + return inventory; + } + + public void setInventory(String inventory) { + this.inventory = inventory; + } + + public String getWarehouse() { + return warehouse; + } + + public void setWarehouse(String warehouse) { + this.warehouse = warehouse; + } + + public String getCalbody() { + return calbody; + } + + public void setCalbody(String calbody) { + this.calbody = calbody; + } + } +} diff --git a/src/main/java/com/glxp/mipsdl/req/ucloud/USaleoutQueryRequest.java b/src/main/java/com/glxp/mipsdl/req/ucloud/USaleoutQueryRequest.java new file mode 100644 index 0000000..29fff3a --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/ucloud/USaleoutQueryRequest.java @@ -0,0 +1,35 @@ +package com.glxp.mipsdl.req.ucloud; + +import lombok.Data; + +@Data +public class USaleoutQueryRequest { + + + /** + * corp : 1110 + * date_begin : 2021-02-01 + * billcode : + * maker : + * page_now : 1 + * date_end : 2021-02-22 + * fbillflag : + * inventory : + * warehouse : + * calbody : + * page_size : 10 + */ + + private String corp; //公司 + private String date_begin; // 起始日期 + private String billcode; // 单据号 + private String maker; // 制单人 + private String page_now; + private String date_end; // 结束日期 + private String fbillflag; //单据状态 + private String inventory; // 存货 + private String warehouse; // 仓库 + private String calbody; //库存组织 + private String page_size; + +} diff --git a/src/main/java/com/glxp/mipsdl/req/ucloud/USaleoutSignRequest.java b/src/main/java/com/glxp/mipsdl/req/ucloud/USaleoutSignRequest.java new file mode 100644 index 0000000..8631f62 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/ucloud/USaleoutSignRequest.java @@ -0,0 +1,151 @@ +package com.glxp.mipsdl.req.ucloud; + +public class USaleoutSignRequest { + + + /** + * signInfo : {"date_sign":"1","coperator":"1","date_unsign":"1"} + * queryInfo : {"corp":"1","date_begin":"1","billcode":"1","maker":"1","date_end":"1","inventory":"1","warehouse":"1","calbody":"1"} + */ + + private SignInfoBean signInfo; + private QueryInfoBean queryInfo; + + public SignInfoBean getSignInfo() { + return signInfo; + } + + public void setSignInfo(SignInfoBean signInfo) { + this.signInfo = signInfo; + } + + public QueryInfoBean getQueryInfo() { + return queryInfo; + } + + public void setQueryInfo(QueryInfoBean queryInfo) { + this.queryInfo = queryInfo; + } + + public static class SignInfoBean { + /** + * date_sign : 1 + * coperator : 1 + * date_unsign : 1 + */ + + private String date_sign; + private String coperator; + private String date_unsign; + + public String getDate_sign() { + return date_sign; + } + + public void setDate_sign(String date_sign) { + this.date_sign = date_sign; + } + + public String getCoperator() { + return coperator; + } + + public void setCoperator(String coperator) { + this.coperator = coperator; + } + + public String getDate_unsign() { + return date_unsign; + } + + public void setDate_unsign(String date_unsign) { + this.date_unsign = date_unsign; + } + } + + public static class QueryInfoBean { + /** + * corp : 1 + * date_begin : 1 + * billcode : 1 + * maker : 1 + * date_end : 1 + * inventory : 1 + * warehouse : 1 + * calbody : 1 + */ + + private String corp; + private String date_begin; + private String billcode; + private String maker; + private String date_end; + private String inventory; + private String warehouse; + private String calbody; + + public String getCorp() { + return corp; + } + + public void setCorp(String corp) { + this.corp = corp; + } + + public String getDate_begin() { + return date_begin; + } + + public void setDate_begin(String date_begin) { + this.date_begin = date_begin; + } + + public String getBillcode() { + return billcode; + } + + public void setBillcode(String billcode) { + this.billcode = billcode; + } + + public String getMaker() { + return maker; + } + + public void setMaker(String maker) { + this.maker = maker; + } + + public String getDate_end() { + return date_end; + } + + public void setDate_end(String date_end) { + this.date_end = date_end; + } + + public String getInventory() { + return inventory; + } + + public void setInventory(String inventory) { + this.inventory = inventory; + } + + public String getWarehouse() { + return warehouse; + } + + public void setWarehouse(String warehouse) { + this.warehouse = warehouse; + } + + public String getCalbody() { + return calbody; + } + + public void setCalbody(String calbody) { + this.calbody = calbody; + } + } +} diff --git a/src/main/java/com/glxp/mipsdl/req/ucloud/USignRequest.java b/src/main/java/com/glxp/mipsdl/req/ucloud/USignRequest.java new file mode 100644 index 0000000..6f50e16 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/ucloud/USignRequest.java @@ -0,0 +1,12 @@ +package com.glxp.mipsdl.req.ucloud; + +import lombok.Data; + +import javax.validation.constraints.NotNull; + +@Data +public class USignRequest { + @NotNull(message = "单据号不能为空") + private String billcode; + private String billAction; +} diff --git a/src/main/java/com/glxp/mipsdl/req/yxzyy/YxBusTypeRequest.java b/src/main/java/com/glxp/mipsdl/req/yxzyy/YxBusTypeRequest.java new file mode 100644 index 0000000..786bf49 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/yxzyy/YxBusTypeRequest.java @@ -0,0 +1,11 @@ +package com.glxp.mipsdl.req.yxzyy; + +import com.glxp.mipsdl.req.base.UdiwmsBusTypeRequest; +import lombok.Data; + +/** + * 云霄中医院单据类型接口查询参数 + */ +@Data +public class YxBusTypeRequest extends UdiwmsBusTypeRequest { +} diff --git a/src/main/java/com/glxp/mipsdl/req/yxzyy/YxProductRequest.java b/src/main/java/com/glxp/mipsdl/req/yxzyy/YxProductRequest.java new file mode 100644 index 0000000..260f07d --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/yxzyy/YxProductRequest.java @@ -0,0 +1,11 @@ +package com.glxp.mipsdl.req.yxzyy; + +import com.glxp.mipsdl.req.base.UdiwmsProductRequest; +import lombok.Data; + +/** + * 云霄中医院获取产品列表接口参数 + */ +@Data +public class YxProductRequest extends UdiwmsProductRequest { +} diff --git a/src/main/java/com/glxp/mipsdl/req/yxzyy/YxUnitRequest.java b/src/main/java/com/glxp/mipsdl/req/yxzyy/YxUnitRequest.java new file mode 100644 index 0000000..2cfdac8 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/yxzyy/YxUnitRequest.java @@ -0,0 +1,12 @@ +package com.glxp.mipsdl.req.yxzyy; + +import com.glxp.mipsdl.req.base.UdiwmsUnitRequest; +import lombok.Data; + +/** + * 云霄中医院获取往来单位列表接口参数 + */ +@Data +public class YxUnitRequest extends UdiwmsUnitRequest { + +} diff --git a/src/main/java/com/glxp/mipsdl/req/yxzyy/YxzyyOrderRequest.java b/src/main/java/com/glxp/mipsdl/req/yxzyy/YxzyyOrderRequest.java new file mode 100644 index 0000000..44d8567 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/yxzyy/YxzyyOrderRequest.java @@ -0,0 +1,21 @@ +package com.glxp.mipsdl.req.yxzyy; + +import com.glxp.mipsdl.req.base.UdiwmsOrderDetailRequest; +import com.glxp.mipsdl.req.base.UdiwmsOrderRequest; +import lombok.Data; + +import java.util.List; + +/** + * 云霄中医院上传单据接口参数 + */ +@Data +public class YxzyyOrderRequest extends UdiwmsOrderRequest { + + private String locStorageCode; //当前仓库 + + private String locStorageName; //当前仓库名称 + + private List items; //单据详情数组 + +} diff --git a/src/main/java/com/glxp/mipsdl/req/zaxyy/ZaZyRequest.java b/src/main/java/com/glxp/mipsdl/req/zaxyy/ZaZyRequest.java new file mode 100644 index 0000000..670f7c0 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/zaxyy/ZaZyRequest.java @@ -0,0 +1,21 @@ +package com.glxp.mipsdl.req.zaxyy; + +import lombok.Data; + +/** + * 诏安智业V1接口参数封装 + */ +@Data +public class ZaZyRequest { + + /** + * 请求头参数 + */ + private String msgHeader; + + /** + * 请求体 + */ + private String msgBody; + +} diff --git a/src/main/java/com/glxp/mipsdl/req/zaxyy/ZaxzyyOrderRequest.java b/src/main/java/com/glxp/mipsdl/req/zaxyy/ZaxzyyOrderRequest.java new file mode 100644 index 0000000..a5fbb3a --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/req/zaxyy/ZaxzyyOrderRequest.java @@ -0,0 +1,27 @@ +package com.glxp.mipsdl.req.zaxyy; + +import com.glxp.mipsdl.req.base.UdiwmsOrderRequest; +import lombok.Data; + +/** + * 诏安智业上传单据接口参数 + */ +@Data +public class ZaxzyyOrderRequest extends UdiwmsOrderRequest { + + /** + * 第三方系统标识 + */ + private String thirdSys; + + /** + * 仓库编码 + */ + private String locStorageCode; + + /** + * 仓库名称 + */ + private String locStorageName; + +} diff --git a/src/main/java/com/glxp/mipsdl/res/BaseLimitRequest.java b/src/main/java/com/glxp/mipsdl/res/BaseLimitRequest.java new file mode 100644 index 0000000..ed84a4a --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/res/BaseLimitRequest.java @@ -0,0 +1,56 @@ +package com.glxp.mipsdl.res; + +/** + * 分页的请求 + */ +public class BaseLimitRequest extends BaseRequest { + + /** + * 页码 + */ + private Integer page; + + /** + * 数量 + */ + private Integer limit; + + /** + * 偏移量 + */ + private Integer offset; + + public Integer getPage() { + return page; + } + + public void setPage(Integer page) { + this.page = page; + } + + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public Integer getOffset() { + return offset; + } + + /** + * 设置偏移量 + */ + public void setOffset() { + if (null == this.getPage() || this.getPage() <= 0) { + this.setPage(1); + } + if (null == this.getLimit() || this.getLimit() <= 0) { + this.setLimit(10); + } + this.offset = (this.getPage() - 1) * this.getLimit(); + } + +} diff --git a/src/main/java/com/glxp/mipsdl/res/BaseRequest.java b/src/main/java/com/glxp/mipsdl/res/BaseRequest.java new file mode 100644 index 0000000..f915fa5 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/res/BaseRequest.java @@ -0,0 +1,37 @@ +package com.glxp.mipsdl.res; + +import java.util.UUID; + +public class BaseRequest { + + /** + * 唯一请求号 + */ + private String reqNo; + + /** + * 请求的时间戳 + */ + private Long timeStamp; + + public BaseRequest() { + this.reqNo = UUID.randomUUID().toString(); + this.timeStamp = System.currentTimeMillis(); + } + + public String getReqNo() { + return reqNo; + } + + public void setReqNo(String reqNo) { + this.reqNo = reqNo; + } + + public Long getTimeStamp() { + return timeStamp; + } + + public void setTimeStamp(Long timeStamp) { + this.timeStamp = timeStamp; + } +} diff --git a/src/main/java/com/glxp/mipsdl/res/BaseResponse.java b/src/main/java/com/glxp/mipsdl/res/BaseResponse.java new file mode 100644 index 0000000..42f6cda --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/res/BaseResponse.java @@ -0,0 +1,17 @@ +package com.glxp.mipsdl.res; + +import lombok.Data; + +/** + * 返回结果类 + * @param + */ +@Data +public class BaseResponse { + + private Integer code; + + private String message; + + private T data; +} diff --git a/src/main/java/com/glxp/mipsdl/res/PageSimpleResponse.java b/src/main/java/com/glxp/mipsdl/res/PageSimpleResponse.java new file mode 100644 index 0000000..1115eec --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/res/PageSimpleResponse.java @@ -0,0 +1,22 @@ +package com.glxp.mipsdl.res; + +import lombok.Data; + +import java.util.List; + +/** + * 简单的分页返回对象 + */ +@Data +public class PageSimpleResponse { + + /** + * 总数 + */ + private Long total; + + /** + * 列表 + */ + private List list; +} diff --git a/src/main/java/com/glxp/mipsdl/res/ucloud/DataResponse.java b/src/main/java/com/glxp/mipsdl/res/ucloud/DataResponse.java new file mode 100644 index 0000000..3b98eb9 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/res/ucloud/DataResponse.java @@ -0,0 +1,12 @@ +package com.glxp.mipsdl.res.ucloud; + +import lombok.Data; + +@Data +public class DataResponse { + + private int allcount; + private int retcount; + private T datas; + +} diff --git a/src/main/java/com/glxp/mipsdl/res/ucloud/UBaseResponse.java b/src/main/java/com/glxp/mipsdl/res/ucloud/UBaseResponse.java new file mode 100644 index 0000000..af3a03d --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/res/ucloud/UBaseResponse.java @@ -0,0 +1,15 @@ +package com.glxp.mipsdl.res.ucloud; + +import lombok.Data; + +@Data +public class UBaseResponse { + + + private String status; + private String errorcode; + private String errormsg; + private DataResponse data; + private String taskNumber; + +} diff --git a/src/main/java/com/glxp/mipsdl/res/ucloud/UCustmandocResponse.java b/src/main/java/com/glxp/mipsdl/res/ucloud/UCustmandocResponse.java new file mode 100644 index 0000000..44949c3 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/res/ucloud/UCustmandocResponse.java @@ -0,0 +1,794 @@ +package com.glxp.mipsdl.res.ucloud; + +import java.util.List; + +//客商管理档案查询 +public class UCustmandocResponse { + + + /** + * parentvo : {"pk_corp":"1013","corp_code":"1110","corp_name":"福建片仔癀诊断技术有限公司(测试)","pk_cubasdoc":"1013F8100000000003FQ","custcode":"02020016","custname":"福建省诏安县医院","custshortname":"福建省诏安县医院","mnecode":"ZAXYY","freecustflag":false,"drpnodeflag":false,"isconnflag":false,"custprop":"0","pk_areacl":"1013F81000000000039Z","areacl_code":"01","areacl_name":"福建省","taxpayerid":"123506244897495930","conaddr":"诏安县南诏镇江厝前路65号","phone1":"13306951660","linkman1":"沈主任","creator":"0001F8100000000004N4","createtime":"2019-02-25 17:07:49","modifier":"0001F8100000000004OA","modifytime":"2020-04-16 09:03:35"} + * childrenvo : [{"acclimitcontrol":false,"cmnecode":"ZAXYY","cooperateflag":false,"cooperatingdayfrom":"2019-01-01","cooperatingdayto":"2023-12-12","createtime":"2019-02-25 17:07:49","creator":"0001F8100000000004N4","creditcontrol":false,"credlimitflag":"1","custflag":"0","custstate":"0","def6":"48974959335060211A1001","developdate":"2017-04-25","diffcurrflag":false,"discountrate":100,"dr":"0","freeofacclmtcheck":false,"freeofcremnycheck":false,"frozenflag":false,"iounit":false,"isagent":false,"ispromtesettlement":true,"linkman":"沈主任","mobilephone":"13306951660","modifier":"0001F8100000000004OA","modifytime":"2020-04-16 09:03:35","pk_calbody":"1013F8100000000002DN","bodycode":"1110","bodyname":"福建片仔癀诊断技术有限公司","pk_corp":"1013","corp_code":"1110","corp_name":"福建片仔癀诊断技术有限公司(测试)","pk_cubasdoc":"1013F8100000000003FQ","pk_cumandoc":"1013F8100000000003FS","pk_currtype1":"00010000000000000001","currtypecode":"CNY","currtypename":"人民币","pk_cusmandoc2":"1013F8100000000003FS","pk_cusmandoc3":"1013F8100000000003FS","pk_payterm":"1013F81000000000033H","termid":"005","termname":"销售合作协议(回款期180天)","pk_respdept1":"1013F8100000000002DG","deptcode":"11","deptname":"销售部","pk_resppsn1":"1013F8100000000002FO","psncode":"00078","psnname":"杨荣元","pk_salestru":"0001F810000000000EB9","vsalestrucode":"1110","vsalestruname":"福建片仔癀诊断技术有限公司","stockpriceratio":"100"},{"cmnecode":"ZAXYY","cooperateflag":false,"cooperatingdayfrom":"2019-01-01","cooperatingdayto":"2023-12-12","createtime":"2019-02-25 17:07:49","creator":"0001F8100000000004N4","credlimitflag":"-1","custflag":"4","custstate":"0","def6":"48974959335060211A1001","diffcurrflag":false,"discountrate":100,"dr":"0","frozenflag":false,"iounit":false,"linkman":"沈主任","mobilephone":"13306951660","modifier":"0001F8100000000004OA","modifytime":"2020-04-16 09:03:36","pk_calbody":"1013F8100000000002DN","bodycode":"1110","bodyname":"福建片仔癀诊断技术有限公司","pk_corp":"1013","corp_code":"1110","corp_name":"福建片仔癀诊断技术有限公司(测试)","pk_cubasdoc":"1013F8100000000003FQ","pk_cumandoc":"1013F8100000000003FT","pk_cusmandoc2":"1013F8100000000003FT","pk_cusmandoc3":"1013F8100000000003FT","pk_salestru":"0001F810000000000EB9","vsalestrucode":"1110","vsalestruname":"福建片仔癀诊断技术有限公司"}] + */ + + private ParentvoBean parentvo; + private List childrenvo; + + public ParentvoBean getParentvo() { + return parentvo; + } + + public void setParentvo(ParentvoBean parentvo) { + this.parentvo = parentvo; + } + + public List getChildrenvo() { + return childrenvo; + } + + public void setChildrenvo(List childrenvo) { + this.childrenvo = childrenvo; + } + + public static class ParentvoBean { + /** + * pk_corp : 1013 + * corp_code : 1110 + * corp_name : 福建片仔癀诊断技术有限公司(测试) + * pk_cubasdoc : 1013F8100000000003FQ + * custcode : 02020016 + * custname : 福建省诏安县医院 + * custshortname : 福建省诏安县医院 + * mnecode : ZAXYY + * freecustflag : false + * drpnodeflag : false + * isconnflag : false + * custprop : 0 + * pk_areacl : 1013F81000000000039Z + * areacl_code : 01 + * areacl_name : 福建省 + * taxpayerid : 123506244897495930 + * conaddr : 诏安县南诏镇江厝前路65号 + * phone1 : 13306951660 + * linkman1 : 沈主任 + * creator : 0001F8100000000004N4 + * createtime : 2019-02-25 17:07:49 + * modifier : 0001F8100000000004OA + * modifytime : 2020-04-16 09:03:35 + */ + + private String pk_corp; + private String corp_code; + private String corp_name; + private String pk_cubasdoc; + private String custcode; + private String custname; + private String custshortname; + private String mnecode; + private boolean freecustflag; + private boolean drpnodeflag; + private boolean isconnflag; + private String custprop; + private String pk_areacl; + private String areacl_code; + private String areacl_name; + private String taxpayerid; + private String conaddr; + private String phone1; + private String linkman1; + private String creator; + private String createtime; + private String modifier; + private String modifytime; + + public String getPk_corp() { + return pk_corp; + } + + public void setPk_corp(String pk_corp) { + this.pk_corp = pk_corp; + } + + public String getCorp_code() { + return corp_code; + } + + public void setCorp_code(String corp_code) { + this.corp_code = corp_code; + } + + public String getCorp_name() { + return corp_name; + } + + public void setCorp_name(String corp_name) { + this.corp_name = corp_name; + } + + public String getPk_cubasdoc() { + return pk_cubasdoc; + } + + public void setPk_cubasdoc(String pk_cubasdoc) { + this.pk_cubasdoc = pk_cubasdoc; + } + + public String getCustcode() { + return custcode; + } + + public void setCustcode(String custcode) { + this.custcode = custcode; + } + + public String getCustname() { + return custname; + } + + public void setCustname(String custname) { + this.custname = custname; + } + + public String getCustshortname() { + return custshortname; + } + + public void setCustshortname(String custshortname) { + this.custshortname = custshortname; + } + + public String getMnecode() { + return mnecode; + } + + public void setMnecode(String mnecode) { + this.mnecode = mnecode; + } + + public boolean isFreecustflag() { + return freecustflag; + } + + public void setFreecustflag(boolean freecustflag) { + this.freecustflag = freecustflag; + } + + public boolean isDrpnodeflag() { + return drpnodeflag; + } + + public void setDrpnodeflag(boolean drpnodeflag) { + this.drpnodeflag = drpnodeflag; + } + + public boolean isIsconnflag() { + return isconnflag; + } + + public void setIsconnflag(boolean isconnflag) { + this.isconnflag = isconnflag; + } + + public String getCustprop() { + return custprop; + } + + public void setCustprop(String custprop) { + this.custprop = custprop; + } + + public String getPk_areacl() { + return pk_areacl; + } + + public void setPk_areacl(String pk_areacl) { + this.pk_areacl = pk_areacl; + } + + public String getAreacl_code() { + return areacl_code; + } + + public void setAreacl_code(String areacl_code) { + this.areacl_code = areacl_code; + } + + public String getAreacl_name() { + return areacl_name; + } + + public void setAreacl_name(String areacl_name) { + this.areacl_name = areacl_name; + } + + public String getTaxpayerid() { + return taxpayerid; + } + + public void setTaxpayerid(String taxpayerid) { + this.taxpayerid = taxpayerid; + } + + public String getConaddr() { + return conaddr; + } + + public void setConaddr(String conaddr) { + this.conaddr = conaddr; + } + + public String getPhone1() { + return phone1; + } + + public void setPhone1(String phone1) { + this.phone1 = phone1; + } + + public String getLinkman1() { + return linkman1; + } + + public void setLinkman1(String linkman1) { + this.linkman1 = linkman1; + } + + public String getCreator() { + return creator; + } + + public void setCreator(String creator) { + this.creator = creator; + } + + public String getCreatetime() { + return createtime; + } + + public void setCreatetime(String createtime) { + this.createtime = createtime; + } + + public String getModifier() { + return modifier; + } + + public void setModifier(String modifier) { + this.modifier = modifier; + } + + public String getModifytime() { + return modifytime; + } + + public void setModifytime(String modifytime) { + this.modifytime = modifytime; + } + } + + public static class ChildrenvoBean { + /** + * acclimitcontrol : false + * cmnecode : ZAXYY + * cooperateflag : false + * cooperatingdayfrom : 2019-01-01 + * cooperatingdayto : 2023-12-12 + * createtime : 2019-02-25 17:07:49 + * creator : 0001F8100000000004N4 + * creditcontrol : false + * credlimitflag : 1 + * custflag : 0 + * custstate : 0 + * def6 : 48974959335060211A1001 + * developdate : 2017-04-25 + * diffcurrflag : false + * discountrate : 100 + * dr : 0 + * freeofacclmtcheck : false + * freeofcremnycheck : false + * frozenflag : false + * iounit : false + * isagent : false + * ispromtesettlement : true + * linkman : 沈主任 + * mobilephone : 13306951660 + * modifier : 0001F8100000000004OA + * modifytime : 2020-04-16 09:03:35 + * pk_calbody : 1013F8100000000002DN + * bodycode : 1110 + * bodyname : 福建片仔癀诊断技术有限公司 + * pk_corp : 1013 + * corp_code : 1110 + * corp_name : 福建片仔癀诊断技术有限公司(测试) + * pk_cubasdoc : 1013F8100000000003FQ + * pk_cumandoc : 1013F8100000000003FS + * pk_currtype1 : 00010000000000000001 + * currtypecode : CNY + * currtypename : 人民币 + * pk_cusmandoc2 : 1013F8100000000003FS + * pk_cusmandoc3 : 1013F8100000000003FS + * pk_payterm : 1013F81000000000033H + * termid : 005 + * termname : 销售合作协议(回款期180天) + * pk_respdept1 : 1013F8100000000002DG + * deptcode : 11 + * deptname : 销售部 + * pk_resppsn1 : 1013F8100000000002FO + * psncode : 00078 + * psnname : 杨荣元 + * pk_salestru : 0001F810000000000EB9 + * vsalestrucode : 1110 + * vsalestruname : 福建片仔癀诊断技术有限公司 + * stockpriceratio : 100 + */ + + private boolean acclimitcontrol; + private String cmnecode; + private boolean cooperateflag; + private String cooperatingdayfrom; + private String cooperatingdayto; + private String createtime; + private String creator; + private boolean creditcontrol; + private String credlimitflag; + private String custflag; + private String custstate; + private String def6; + private String developdate; + private boolean diffcurrflag; + private int discountrate; + private String dr; + private boolean freeofacclmtcheck; + private boolean freeofcremnycheck; + private boolean frozenflag; + private boolean iounit; + private boolean isagent; + private boolean ispromtesettlement; + private String linkman; + private String mobilephone; + private String modifier; + private String modifytime; + private String pk_calbody; + private String bodycode; + private String bodyname; + private String pk_corp; + private String corp_code; + private String corp_name; + private String pk_cubasdoc; + private String pk_cumandoc; + private String pk_currtype1; + private String currtypecode; + private String currtypename; + private String pk_cusmandoc2; + private String pk_cusmandoc3; + private String pk_payterm; + private String termid; + private String termname; + private String pk_respdept1; + private String deptcode; + private String deptname; + private String pk_resppsn1; + private String psncode; + private String psnname; + private String pk_salestru; + private String vsalestrucode; + private String vsalestruname; + private String stockpriceratio; + + public boolean isAcclimitcontrol() { + return acclimitcontrol; + } + + public void setAcclimitcontrol(boolean acclimitcontrol) { + this.acclimitcontrol = acclimitcontrol; + } + + public String getCmnecode() { + return cmnecode; + } + + public void setCmnecode(String cmnecode) { + this.cmnecode = cmnecode; + } + + public boolean isCooperateflag() { + return cooperateflag; + } + + public void setCooperateflag(boolean cooperateflag) { + this.cooperateflag = cooperateflag; + } + + public String getCooperatingdayfrom() { + return cooperatingdayfrom; + } + + public void setCooperatingdayfrom(String cooperatingdayfrom) { + this.cooperatingdayfrom = cooperatingdayfrom; + } + + public String getCooperatingdayto() { + return cooperatingdayto; + } + + public void setCooperatingdayto(String cooperatingdayto) { + this.cooperatingdayto = cooperatingdayto; + } + + public String getCreatetime() { + return createtime; + } + + public void setCreatetime(String createtime) { + this.createtime = createtime; + } + + public String getCreator() { + return creator; + } + + public void setCreator(String creator) { + this.creator = creator; + } + + public boolean isCreditcontrol() { + return creditcontrol; + } + + public void setCreditcontrol(boolean creditcontrol) { + this.creditcontrol = creditcontrol; + } + + public String getCredlimitflag() { + return credlimitflag; + } + + public void setCredlimitflag(String credlimitflag) { + this.credlimitflag = credlimitflag; + } + + public String getCustflag() { + return custflag; + } + + public void setCustflag(String custflag) { + this.custflag = custflag; + } + + public String getCuststate() { + return custstate; + } + + public void setCuststate(String custstate) { + this.custstate = custstate; + } + + public String getDef6() { + return def6; + } + + public void setDef6(String def6) { + this.def6 = def6; + } + + public String getDevelopdate() { + return developdate; + } + + public void setDevelopdate(String developdate) { + this.developdate = developdate; + } + + public boolean isDiffcurrflag() { + return diffcurrflag; + } + + public void setDiffcurrflag(boolean diffcurrflag) { + this.diffcurrflag = diffcurrflag; + } + + public int getDiscountrate() { + return discountrate; + } + + public void setDiscountrate(int discountrate) { + this.discountrate = discountrate; + } + + public String getDr() { + return dr; + } + + public void setDr(String dr) { + this.dr = dr; + } + + public boolean isFreeofacclmtcheck() { + return freeofacclmtcheck; + } + + public void setFreeofacclmtcheck(boolean freeofacclmtcheck) { + this.freeofacclmtcheck = freeofacclmtcheck; + } + + public boolean isFreeofcremnycheck() { + return freeofcremnycheck; + } + + public void setFreeofcremnycheck(boolean freeofcremnycheck) { + this.freeofcremnycheck = freeofcremnycheck; + } + + public boolean isFrozenflag() { + return frozenflag; + } + + public void setFrozenflag(boolean frozenflag) { + this.frozenflag = frozenflag; + } + + public boolean isIounit() { + return iounit; + } + + public void setIounit(boolean iounit) { + this.iounit = iounit; + } + + public boolean isIsagent() { + return isagent; + } + + public void setIsagent(boolean isagent) { + this.isagent = isagent; + } + + public boolean isIspromtesettlement() { + return ispromtesettlement; + } + + public void setIspromtesettlement(boolean ispromtesettlement) { + this.ispromtesettlement = ispromtesettlement; + } + + public String getLinkman() { + return linkman; + } + + public void setLinkman(String linkman) { + this.linkman = linkman; + } + + public String getMobilephone() { + return mobilephone; + } + + public void setMobilephone(String mobilephone) { + this.mobilephone = mobilephone; + } + + public String getModifier() { + return modifier; + } + + public void setModifier(String modifier) { + this.modifier = modifier; + } + + public String getModifytime() { + return modifytime; + } + + public void setModifytime(String modifytime) { + this.modifytime = modifytime; + } + + public String getPk_calbody() { + return pk_calbody; + } + + public void setPk_calbody(String pk_calbody) { + this.pk_calbody = pk_calbody; + } + + public String getBodycode() { + return bodycode; + } + + public void setBodycode(String bodycode) { + this.bodycode = bodycode; + } + + public String getBodyname() { + return bodyname; + } + + public void setBodyname(String bodyname) { + this.bodyname = bodyname; + } + + public String getPk_corp() { + return pk_corp; + } + + public void setPk_corp(String pk_corp) { + this.pk_corp = pk_corp; + } + + public String getCorp_code() { + return corp_code; + } + + public void setCorp_code(String corp_code) { + this.corp_code = corp_code; + } + + public String getCorp_name() { + return corp_name; + } + + public void setCorp_name(String corp_name) { + this.corp_name = corp_name; + } + + public String getPk_cubasdoc() { + return pk_cubasdoc; + } + + public void setPk_cubasdoc(String pk_cubasdoc) { + this.pk_cubasdoc = pk_cubasdoc; + } + + public String getPk_cumandoc() { + return pk_cumandoc; + } + + public void setPk_cumandoc(String pk_cumandoc) { + this.pk_cumandoc = pk_cumandoc; + } + + public String getPk_currtype1() { + return pk_currtype1; + } + + public void setPk_currtype1(String pk_currtype1) { + this.pk_currtype1 = pk_currtype1; + } + + public String getCurrtypecode() { + return currtypecode; + } + + public void setCurrtypecode(String currtypecode) { + this.currtypecode = currtypecode; + } + + public String getCurrtypename() { + return currtypename; + } + + public void setCurrtypename(String currtypename) { + this.currtypename = currtypename; + } + + public String getPk_cusmandoc2() { + return pk_cusmandoc2; + } + + public void setPk_cusmandoc2(String pk_cusmandoc2) { + this.pk_cusmandoc2 = pk_cusmandoc2; + } + + public String getPk_cusmandoc3() { + return pk_cusmandoc3; + } + + public void setPk_cusmandoc3(String pk_cusmandoc3) { + this.pk_cusmandoc3 = pk_cusmandoc3; + } + + public String getPk_payterm() { + return pk_payterm; + } + + public void setPk_payterm(String pk_payterm) { + this.pk_payterm = pk_payterm; + } + + public String getTermid() { + return termid; + } + + public void setTermid(String termid) { + this.termid = termid; + } + + public String getTermname() { + return termname; + } + + public void setTermname(String termname) { + this.termname = termname; + } + + public String getPk_respdept1() { + return pk_respdept1; + } + + public void setPk_respdept1(String pk_respdept1) { + this.pk_respdept1 = pk_respdept1; + } + + public String getDeptcode() { + return deptcode; + } + + public void setDeptcode(String deptcode) { + this.deptcode = deptcode; + } + + public String getDeptname() { + return deptname; + } + + public void setDeptname(String deptname) { + this.deptname = deptname; + } + + public String getPk_resppsn1() { + return pk_resppsn1; + } + + public void setPk_resppsn1(String pk_resppsn1) { + this.pk_resppsn1 = pk_resppsn1; + } + + public String getPsncode() { + return psncode; + } + + public void setPsncode(String psncode) { + this.psncode = psncode; + } + + public String getPsnname() { + return psnname; + } + + public void setPsnname(String psnname) { + this.psnname = psnname; + } + + public String getPk_salestru() { + return pk_salestru; + } + + public void setPk_salestru(String pk_salestru) { + this.pk_salestru = pk_salestru; + } + + public String getVsalestrucode() { + return vsalestrucode; + } + + public void setVsalestrucode(String vsalestrucode) { + this.vsalestrucode = vsalestrucode; + } + + public String getVsalestruname() { + return vsalestruname; + } + + public void setVsalestruname(String vsalestruname) { + this.vsalestruname = vsalestruname; + } + + public String getStockpriceratio() { + return stockpriceratio; + } + + public void setStockpriceratio(String stockpriceratio) { + this.stockpriceratio = stockpriceratio; + } + } +} diff --git a/src/main/java/com/glxp/mipsdl/res/ucloud/UInvmandocQueryResponse.java b/src/main/java/com/glxp/mipsdl/res/ucloud/UInvmandocQueryResponse.java new file mode 100644 index 0000000..3543a2b --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/res/ucloud/UInvmandocQueryResponse.java @@ -0,0 +1,1029 @@ +package com.glxp.mipsdl.res.ucloud; + +import java.util.List; + +public class UInvmandocQueryResponse { + + + /** + * parentvo : {"invbasVo":{"pk_corp":"1013","unitcode":"1110","unitname":"福建片仔癀诊断技术有限公司(测试)","invcode":"01010001","invname":"Urease","pk_invcl":"1013F8100000000005GZ","pk_measdoc":"0001F81000000000050D","meascode":"KU","measname":"KU","pk_taxitems":"0001F810000000000P5X","taxitemscode":"4005","taxitemsname":"商业(13%)","unitvolume":0,"unitweight":0,"laborflag":false,"discountflag":false,"setpartsflag":false,"asset":false,"iselectrans":false,"isretail":false,"assistunit":false,"autobalancemeas":false,"ismngstockbygrswt":false,"isstorebyconvert":false,"creator":"13055528660","creatorname":"徐美泉","createtime":"2019-02-26 10:23:00","modifier":"15359287578","modifiername":"杨友翔","modifytime":"2019-03-07 16:15:24","pk_invbasdoc":"1013F8100000000005PK","ts":"2019-03-07 16:15:24","dr":"0"},"invmanVo":{"dr":"0","expaybacktax":0,"invlifeperiod":"0","isappendant":true,"isautoatpcheck":true,"iscancalculatedinvcost":true,"iscanpurchased":true,"iscansaleinvoice":true,"iscansold":true,"isconfigable":false,"isctlprodplanprice":false,"isfatherofbom":false,"isinvretfreeofchk":true,"isinvretinstobychk":false,"isinvreturned":true,"isnoconallowed":true,"isprimarybarcode":false,"isrecurrentcheck":false,"issalable":false,"issecondarybarcode":false,"isselfapprsupplier":true,"isspecialty":false,"issupplierstock":false,"isused":true,"isvirtual":false,"keepwasterate":0,"lowestprice":0,"mantaxitem":"0001F810000000000P5X","taxcode":"4005","taxname":"商业(13%)","maxprice":0,"modifier":"15359287578","modifiername":"杨友翔","modifytime":"2019-04-09 16:49:55","negallowed":false,"outpriority":"2","outtrackin":false,"pk_corp":"1013","unitcode":"1110","unitname":"福建片仔癀诊断技术有限公司(测试)","pk_invbasdoc":"1013F8100000000005PK","pk_invmandoc":"1013F8100000000005PL","purchasestge":"0","purwasterate":0,"qualitydaynum":"36","qualitymanflag":true,"qualityperiodunit":"1","sealflag":false,"sellproxyflag":false,"serialmanaflag":false,"ts":"2019-05-20 09:49:06","wholemanaflag":true,"abctype":"A","accflag":false,"costprice":1,"createtime":"2019-02-26 10:23:00","creator":"13055528660","creatorname":"徐美泉"}} + * bodymeas : [] + * invrepl : [] + * bd_invbindle : [] + */ + + private ParentvoBean parentvo; + private List bodymeas; + private List invrepl; + private List bd_invbindle; + + public ParentvoBean getParentvo() { + return parentvo; + } + + public void setParentvo(ParentvoBean parentvo) { + this.parentvo = parentvo; + } + + public List getBodymeas() { + return bodymeas; + } + + public void setBodymeas(List bodymeas) { + this.bodymeas = bodymeas; + } + + public List getInvrepl() { + return invrepl; + } + + public void setInvrepl(List invrepl) { + this.invrepl = invrepl; + } + + public List getBd_invbindle() { + return bd_invbindle; + } + + public void setBd_invbindle(List bd_invbindle) { + this.bd_invbindle = bd_invbindle; + } + + public static class ParentvoBean { + /** + * invbasVo : {"pk_corp":"1013","unitcode":"1110","unitname":"福建片仔癀诊断技术有限公司(测试)","invcode":"01010001","invname":"Urease","pk_invcl":"1013F8100000000005GZ","pk_measdoc":"0001F81000000000050D","meascode":"KU","measname":"KU","pk_taxitems":"0001F810000000000P5X","taxitemscode":"4005","taxitemsname":"商业(13%)","unitvolume":0,"unitweight":0,"laborflag":false,"discountflag":false,"setpartsflag":false,"asset":false,"iselectrans":false,"isretail":false,"assistunit":false,"autobalancemeas":false,"ismngstockbygrswt":false,"isstorebyconvert":false,"creator":"13055528660","creatorname":"徐美泉","createtime":"2019-02-26 10:23:00","modifier":"15359287578","modifiername":"杨友翔","modifytime":"2019-03-07 16:15:24","pk_invbasdoc":"1013F8100000000005PK","ts":"2019-03-07 16:15:24","dr":"0"} + * invmanVo : {"dr":"0","expaybacktax":0,"invlifeperiod":"0","isappendant":true,"isautoatpcheck":true,"iscancalculatedinvcost":true,"iscanpurchased":true,"iscansaleinvoice":true,"iscansold":true,"isconfigable":false,"isctlprodplanprice":false,"isfatherofbom":false,"isinvretfreeofchk":true,"isinvretinstobychk":false,"isinvreturned":true,"isnoconallowed":true,"isprimarybarcode":false,"isrecurrentcheck":false,"issalable":false,"issecondarybarcode":false,"isselfapprsupplier":true,"isspecialty":false,"issupplierstock":false,"isused":true,"isvirtual":false,"keepwasterate":0,"lowestprice":0,"mantaxitem":"0001F810000000000P5X","taxcode":"4005","taxname":"商业(13%)","maxprice":0,"modifier":"15359287578","modifiername":"杨友翔","modifytime":"2019-04-09 16:49:55","negallowed":false,"outpriority":"2","outtrackin":false,"pk_corp":"1013","unitcode":"1110","unitname":"福建片仔癀诊断技术有限公司(测试)","pk_invbasdoc":"1013F8100000000005PK","pk_invmandoc":"1013F8100000000005PL","purchasestge":"0","purwasterate":0,"qualitydaynum":"36","qualitymanflag":true,"qualityperiodunit":"1","sealflag":false,"sellproxyflag":false,"serialmanaflag":false,"ts":"2019-05-20 09:49:06","wholemanaflag":true,"abctype":"A","accflag":false,"costprice":1,"createtime":"2019-02-26 10:23:00","creator":"13055528660","creatorname":"徐美泉"} + */ + + private InvbasVoBean invbasVo; + private InvmanVoBean invmanVo; + + public InvbasVoBean getInvbasVo() { + return invbasVo; + } + + public void setInvbasVo(InvbasVoBean invbasVo) { + this.invbasVo = invbasVo; + } + + public InvmanVoBean getInvmanVo() { + return invmanVo; + } + + public void setInvmanVo(InvmanVoBean invmanVo) { + this.invmanVo = invmanVo; + } + + public static class InvbasVoBean { + /** + * pk_corp : 1013 + * unitcode : 1110 + * unitname : 福建片仔癀诊断技术有限公司(测试) + * invcode : 01010001 + * invname : Urease + * pk_invcl : 1013F8100000000005GZ + * pk_measdoc : 0001F81000000000050D + * meascode : KU + * measname : KU + * pk_taxitems : 0001F810000000000P5X + * taxitemscode : 4005 + * taxitemsname : 商业(13%) + * unitvolume : 0 + * unitweight : 0 + * laborflag : false + * discountflag : false + * setpartsflag : false + * asset : false + * iselectrans : false + * isretail : false + * assistunit : false + * autobalancemeas : false + * ismngstockbygrswt : false + * isstorebyconvert : false + * creator : 13055528660 + * creatorname : 徐美泉 + * createtime : 2019-02-26 10:23:00 + * modifier : 15359287578 + * modifiername : 杨友翔 + * modifytime : 2019-03-07 16:15:24 + * pk_invbasdoc : 1013F8100000000005PK + * ts : 2019-03-07 16:15:24 + * dr : 0 + */ + + private String pk_corp; + private String unitcode; + private String unitname; + private String invcode; + private String invname; + private String pk_invcl; + private String pk_measdoc; + private String meascode; + private String measname; + private String pk_taxitems; + private String taxitemscode; + private String taxitemsname; + private int unitvolume; + private int unitweight; + private boolean laborflag; + private boolean discountflag; + private boolean setpartsflag; + private boolean asset; + private boolean iselectrans; + private boolean isretail; + private boolean assistunit; + private boolean autobalancemeas; + private boolean ismngstockbygrswt; + private boolean isstorebyconvert; + private String creator; + private String creatorname; + private String createtime; + private String modifier; + private String modifiername; + private String modifytime; + private String pk_invbasdoc; + private String ts; + private String dr; + private String invtype; + + public String getInvspec() { + return invspec; + } + + public void setInvspec(String invspec) { + this.invspec = invspec; + } + + private String invspec; + + + + public String getPk_corp() { + return pk_corp; + } + + public void setPk_corp(String pk_corp) { + this.pk_corp = pk_corp; + } + + public String getUnitcode() { + return unitcode; + } + + public void setUnitcode(String unitcode) { + this.unitcode = unitcode; + } + + public String getUnitname() { + return unitname; + } + + public void setUnitname(String unitname) { + this.unitname = unitname; + } + + public String getInvcode() { + return invcode; + } + + public void setInvcode(String invcode) { + this.invcode = invcode; + } + + public String getInvname() { + return invname; + } + + public void setInvname(String invname) { + this.invname = invname; + } + + public String getPk_invcl() { + return pk_invcl; + } + + public void setPk_invcl(String pk_invcl) { + this.pk_invcl = pk_invcl; + } + + public String getPk_measdoc() { + return pk_measdoc; + } + + public void setPk_measdoc(String pk_measdoc) { + this.pk_measdoc = pk_measdoc; + } + + public String getMeascode() { + return meascode; + } + + public void setMeascode(String meascode) { + this.meascode = meascode; + } + + public String getMeasname() { + return measname; + } + + public void setMeasname(String measname) { + this.measname = measname; + } + + public String getPk_taxitems() { + return pk_taxitems; + } + + public void setPk_taxitems(String pk_taxitems) { + this.pk_taxitems = pk_taxitems; + } + + public String getTaxitemscode() { + return taxitemscode; + } + + public void setTaxitemscode(String taxitemscode) { + this.taxitemscode = taxitemscode; + } + + public String getTaxitemsname() { + return taxitemsname; + } + + public void setTaxitemsname(String taxitemsname) { + this.taxitemsname = taxitemsname; + } + + public int getUnitvolume() { + return unitvolume; + } + + public void setUnitvolume(int unitvolume) { + this.unitvolume = unitvolume; + } + + public int getUnitweight() { + return unitweight; + } + + public void setUnitweight(int unitweight) { + this.unitweight = unitweight; + } + + public boolean isLaborflag() { + return laborflag; + } + + public void setLaborflag(boolean laborflag) { + this.laborflag = laborflag; + } + + public boolean isDiscountflag() { + return discountflag; + } + + public void setDiscountflag(boolean discountflag) { + this.discountflag = discountflag; + } + + public boolean isSetpartsflag() { + return setpartsflag; + } + + public void setSetpartsflag(boolean setpartsflag) { + this.setpartsflag = setpartsflag; + } + + public boolean isAsset() { + return asset; + } + + public void setAsset(boolean asset) { + this.asset = asset; + } + + public boolean isIselectrans() { + return iselectrans; + } + + public void setIselectrans(boolean iselectrans) { + this.iselectrans = iselectrans; + } + + public boolean isIsretail() { + return isretail; + } + + public void setIsretail(boolean isretail) { + this.isretail = isretail; + } + + public boolean isAssistunit() { + return assistunit; + } + + public void setAssistunit(boolean assistunit) { + this.assistunit = assistunit; + } + + public boolean isAutobalancemeas() { + return autobalancemeas; + } + + public void setAutobalancemeas(boolean autobalancemeas) { + this.autobalancemeas = autobalancemeas; + } + + public boolean isIsmngstockbygrswt() { + return ismngstockbygrswt; + } + + public void setIsmngstockbygrswt(boolean ismngstockbygrswt) { + this.ismngstockbygrswt = ismngstockbygrswt; + } + + public boolean isIsstorebyconvert() { + return isstorebyconvert; + } + + public void setIsstorebyconvert(boolean isstorebyconvert) { + this.isstorebyconvert = isstorebyconvert; + } + + public String getCreator() { + return creator; + } + + public void setCreator(String creator) { + this.creator = creator; + } + + public String getCreatorname() { + return creatorname; + } + + public void setCreatorname(String creatorname) { + this.creatorname = creatorname; + } + + public String getCreatetime() { + return createtime; + } + + public void setCreatetime(String createtime) { + this.createtime = createtime; + } + + public String getModifier() { + return modifier; + } + + public void setModifier(String modifier) { + this.modifier = modifier; + } + + public String getModifiername() { + return modifiername; + } + + public void setModifiername(String modifiername) { + this.modifiername = modifiername; + } + + public String getModifytime() { + return modifytime; + } + + public void setModifytime(String modifytime) { + this.modifytime = modifytime; + } + + public String getPk_invbasdoc() { + return pk_invbasdoc; + } + + public void setPk_invbasdoc(String pk_invbasdoc) { + this.pk_invbasdoc = pk_invbasdoc; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getDr() { + return dr; + } + + public void setDr(String dr) { + this.dr = dr; + } + + public String getInvtype() { + return invtype; + } + + public void setInvtype(String invtype) { + this.invtype = invtype; + } + + } + + public static class InvmanVoBean { + /** + * dr : 0 + * expaybacktax : 0 + * invlifeperiod : 0 + * isappendant : true + * isautoatpcheck : true + * iscancalculatedinvcost : true + * iscanpurchased : true + * iscansaleinvoice : true + * iscansold : true + * isconfigable : false + * isctlprodplanprice : false + * isfatherofbom : false + * isinvretfreeofchk : true + * isinvretinstobychk : false + * isinvreturned : true + * isnoconallowed : true + * isprimarybarcode : false + * isrecurrentcheck : false + * issalable : false + * issecondarybarcode : false + * isselfapprsupplier : true + * isspecialty : false + * issupplierstock : false + * isused : true + * isvirtual : false + * keepwasterate : 0 + * lowestprice : 0 + * mantaxitem : 0001F810000000000P5X + * taxcode : 4005 + * taxname : 商业(13%) + * maxprice : 0 + * modifier : 15359287578 + * modifiername : 杨友翔 + * modifytime : 2019-04-09 16:49:55 + * negallowed : false + * outpriority : 2 + * outtrackin : false + * pk_corp : 1013 + * unitcode : 1110 + * unitname : 福建片仔癀诊断技术有限公司(测试) + * pk_invbasdoc : 1013F8100000000005PK + * pk_invmandoc : 1013F8100000000005PL + * purchasestge : 0 + * purwasterate : 0 + * qualitydaynum : 36 + * qualitymanflag : true + * qualityperiodunit : 1 + * sealflag : false + * sellproxyflag : false + * serialmanaflag : false + * ts : 2019-05-20 09:49:06 + * wholemanaflag : true + * abctype : A + * accflag : false + * costprice : 1 + * createtime : 2019-02-26 10:23:00 + * creator : 13055528660 + * creatorname : 徐美泉 + */ + + private String dr; + private int expaybacktax; + private String invlifeperiod; + private boolean isappendant; + private boolean isautoatpcheck; + private boolean iscancalculatedinvcost; + private boolean iscanpurchased; + private boolean iscansaleinvoice; + private boolean iscansold; + private boolean isconfigable; + private boolean isctlprodplanprice; + private boolean isfatherofbom; + private boolean isinvretfreeofchk; + private boolean isinvretinstobychk; + private boolean isinvreturned; + private boolean isnoconallowed; + private boolean isprimarybarcode; + private boolean isrecurrentcheck; + private boolean issalable; + private boolean issecondarybarcode; + private boolean isselfapprsupplier; + private boolean isspecialty; + private boolean issupplierstock; + private boolean isused; + private boolean isvirtual; + private int keepwasterate; + private int lowestprice; + private String mantaxitem; + private String taxcode; + private String taxname; + private int maxprice; + private String modifier; + private String modifiername; + private String modifytime; + private boolean negallowed; + private String outpriority; + private boolean outtrackin; + private String pk_corp; + private String unitcode; + private String unitname; + private String pk_invbasdoc; + private String pk_invmandoc; + private String purchasestge; + private int purwasterate; + private String qualitydaynum; + private boolean qualitymanflag; + private String qualityperiodunit; + private boolean sealflag; + private boolean sellproxyflag; + private boolean serialmanaflag; + private String ts; + private boolean wholemanaflag; + private String abctype; + private boolean accflag; + private int costprice; + private String createtime; + private String creator; + private String creatorname; + private String prodarea; + public String getDr() { + return dr; + } + + public void setDr(String dr) { + this.dr = dr; + } + + public int getExpaybacktax() { + return expaybacktax; + } + + public void setExpaybacktax(int expaybacktax) { + this.expaybacktax = expaybacktax; + } + + public String getInvlifeperiod() { + return invlifeperiod; + } + + public void setInvlifeperiod(String invlifeperiod) { + this.invlifeperiod = invlifeperiod; + } + + public boolean isIsappendant() { + return isappendant; + } + + public void setIsappendant(boolean isappendant) { + this.isappendant = isappendant; + } + + public boolean isIsautoatpcheck() { + return isautoatpcheck; + } + + public void setIsautoatpcheck(boolean isautoatpcheck) { + this.isautoatpcheck = isautoatpcheck; + } + + public boolean isIscancalculatedinvcost() { + return iscancalculatedinvcost; + } + + public void setIscancalculatedinvcost(boolean iscancalculatedinvcost) { + this.iscancalculatedinvcost = iscancalculatedinvcost; + } + + public boolean isIscanpurchased() { + return iscanpurchased; + } + + public void setIscanpurchased(boolean iscanpurchased) { + this.iscanpurchased = iscanpurchased; + } + + public boolean isIscansaleinvoice() { + return iscansaleinvoice; + } + + public void setIscansaleinvoice(boolean iscansaleinvoice) { + this.iscansaleinvoice = iscansaleinvoice; + } + + public boolean isIscansold() { + return iscansold; + } + + public void setIscansold(boolean iscansold) { + this.iscansold = iscansold; + } + + public boolean isIsconfigable() { + return isconfigable; + } + + public void setIsconfigable(boolean isconfigable) { + this.isconfigable = isconfigable; + } + + public boolean isIsctlprodplanprice() { + return isctlprodplanprice; + } + + public void setIsctlprodplanprice(boolean isctlprodplanprice) { + this.isctlprodplanprice = isctlprodplanprice; + } + + public boolean isIsfatherofbom() { + return isfatherofbom; + } + + public void setIsfatherofbom(boolean isfatherofbom) { + this.isfatherofbom = isfatherofbom; + } + + public boolean isIsinvretfreeofchk() { + return isinvretfreeofchk; + } + + public void setIsinvretfreeofchk(boolean isinvretfreeofchk) { + this.isinvretfreeofchk = isinvretfreeofchk; + } + + public boolean isIsinvretinstobychk() { + return isinvretinstobychk; + } + + public void setIsinvretinstobychk(boolean isinvretinstobychk) { + this.isinvretinstobychk = isinvretinstobychk; + } + + public boolean isIsinvreturned() { + return isinvreturned; + } + + public void setIsinvreturned(boolean isinvreturned) { + this.isinvreturned = isinvreturned; + } + + public boolean isIsnoconallowed() { + return isnoconallowed; + } + + public void setIsnoconallowed(boolean isnoconallowed) { + this.isnoconallowed = isnoconallowed; + } + + public boolean isIsprimarybarcode() { + return isprimarybarcode; + } + + public void setIsprimarybarcode(boolean isprimarybarcode) { + this.isprimarybarcode = isprimarybarcode; + } + + public boolean isIsrecurrentcheck() { + return isrecurrentcheck; + } + + public void setIsrecurrentcheck(boolean isrecurrentcheck) { + this.isrecurrentcheck = isrecurrentcheck; + } + + public boolean isIssalable() { + return issalable; + } + + public void setIssalable(boolean issalable) { + this.issalable = issalable; + } + + public boolean isIssecondarybarcode() { + return issecondarybarcode; + } + + public void setIssecondarybarcode(boolean issecondarybarcode) { + this.issecondarybarcode = issecondarybarcode; + } + + public boolean isIsselfapprsupplier() { + return isselfapprsupplier; + } + + public void setIsselfapprsupplier(boolean isselfapprsupplier) { + this.isselfapprsupplier = isselfapprsupplier; + } + + public boolean isIsspecialty() { + return isspecialty; + } + + public void setIsspecialty(boolean isspecialty) { + this.isspecialty = isspecialty; + } + + public boolean isIssupplierstock() { + return issupplierstock; + } + + public void setIssupplierstock(boolean issupplierstock) { + this.issupplierstock = issupplierstock; + } + + public boolean isIsused() { + return isused; + } + + public void setIsused(boolean isused) { + this.isused = isused; + } + + public boolean isIsvirtual() { + return isvirtual; + } + + public void setIsvirtual(boolean isvirtual) { + this.isvirtual = isvirtual; + } + + public int getKeepwasterate() { + return keepwasterate; + } + + public void setKeepwasterate(int keepwasterate) { + this.keepwasterate = keepwasterate; + } + + public int getLowestprice() { + return lowestprice; + } + + public void setLowestprice(int lowestprice) { + this.lowestprice = lowestprice; + } + + public String getMantaxitem() { + return mantaxitem; + } + + public void setMantaxitem(String mantaxitem) { + this.mantaxitem = mantaxitem; + } + + public String getTaxcode() { + return taxcode; + } + + public void setTaxcode(String taxcode) { + this.taxcode = taxcode; + } + + public String getTaxname() { + return taxname; + } + + public void setTaxname(String taxname) { + this.taxname = taxname; + } + + public int getMaxprice() { + return maxprice; + } + + public void setMaxprice(int maxprice) { + this.maxprice = maxprice; + } + + public String getModifier() { + return modifier; + } + + public void setModifier(String modifier) { + this.modifier = modifier; + } + + public String getModifiername() { + return modifiername; + } + + public void setModifiername(String modifiername) { + this.modifiername = modifiername; + } + + public String getModifytime() { + return modifytime; + } + + public void setModifytime(String modifytime) { + this.modifytime = modifytime; + } + + public boolean isNegallowed() { + return negallowed; + } + + public void setNegallowed(boolean negallowed) { + this.negallowed = negallowed; + } + + public String getOutpriority() { + return outpriority; + } + + public void setOutpriority(String outpriority) { + this.outpriority = outpriority; + } + + public boolean isOuttrackin() { + return outtrackin; + } + + public void setOuttrackin(boolean outtrackin) { + this.outtrackin = outtrackin; + } + + public String getPk_corp() { + return pk_corp; + } + + public void setPk_corp(String pk_corp) { + this.pk_corp = pk_corp; + } + + public String getUnitcode() { + return unitcode; + } + + public void setUnitcode(String unitcode) { + this.unitcode = unitcode; + } + + public String getUnitname() { + return unitname; + } + + public void setUnitname(String unitname) { + this.unitname = unitname; + } + + public String getPk_invbasdoc() { + return pk_invbasdoc; + } + + public void setPk_invbasdoc(String pk_invbasdoc) { + this.pk_invbasdoc = pk_invbasdoc; + } + + public String getPk_invmandoc() { + return pk_invmandoc; + } + + public void setPk_invmandoc(String pk_invmandoc) { + this.pk_invmandoc = pk_invmandoc; + } + + public String getPurchasestge() { + return purchasestge; + } + + public void setPurchasestge(String purchasestge) { + this.purchasestge = purchasestge; + } + + public int getPurwasterate() { + return purwasterate; + } + + public void setPurwasterate(int purwasterate) { + this.purwasterate = purwasterate; + } + + public String getQualitydaynum() { + return qualitydaynum; + } + + public void setQualitydaynum(String qualitydaynum) { + this.qualitydaynum = qualitydaynum; + } + + public boolean isQualitymanflag() { + return qualitymanflag; + } + + public void setQualitymanflag(boolean qualitymanflag) { + this.qualitymanflag = qualitymanflag; + } + + public String getQualityperiodunit() { + return qualityperiodunit; + } + + public void setQualityperiodunit(String qualityperiodunit) { + this.qualityperiodunit = qualityperiodunit; + } + + public boolean isSealflag() { + return sealflag; + } + + public void setSealflag(boolean sealflag) { + this.sealflag = sealflag; + } + + public boolean isSellproxyflag() { + return sellproxyflag; + } + + public void setSellproxyflag(boolean sellproxyflag) { + this.sellproxyflag = sellproxyflag; + } + + public boolean isSerialmanaflag() { + return serialmanaflag; + } + + public void setSerialmanaflag(boolean serialmanaflag) { + this.serialmanaflag = serialmanaflag; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public boolean isWholemanaflag() { + return wholemanaflag; + } + + public void setWholemanaflag(boolean wholemanaflag) { + this.wholemanaflag = wholemanaflag; + } + + public String getAbctype() { + return abctype; + } + + public void setAbctype(String abctype) { + this.abctype = abctype; + } + + public boolean isAccflag() { + return accflag; + } + + public void setAccflag(boolean accflag) { + this.accflag = accflag; + } + + public int getCostprice() { + return costprice; + } + + public void setCostprice(int costprice) { + this.costprice = costprice; + } + + public String getCreatetime() { + return createtime; + } + + public void setCreatetime(String createtime) { + this.createtime = createtime; + } + + public String getCreator() { + return creator; + } + + public void setCreator(String creator) { + this.creator = creator; + } + + public String getCreatorname() { + return creatorname; + } + + public void setCreatorname(String creatorname) { + this.creatorname = creatorname; + } + + public String getProdarea() { + return prodarea; + } + + public void setProdarea(String prodarea) { + this.prodarea = prodarea; + } + } + } +} diff --git a/src/main/java/com/glxp/mipsdl/res/ucloud/UOnhandQueryResponse.java b/src/main/java/com/glxp/mipsdl/res/ucloud/UOnhandQueryResponse.java new file mode 100644 index 0000000..518cebd --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/res/ucloud/UOnhandQueryResponse.java @@ -0,0 +1,164 @@ +package com.glxp.mipsdl.res.ucloud; + +public class UOnhandQueryResponse { + + + /** + * pk_corp : 1013 + * corp_code : 1110 + * corp_name : 福建片仔癀诊断技术有限公司(测试) + * ccalbodyid : 1013F8100000000002DN + * ccalbody_code : 1110 + * ccalbody_name : 福建片仔癀诊断技术有限公司 + * cinventoryid : 1013F8100000000007LU + * cinventory_code : 1100023 + * cinventory_name : KJ0001 试剂瓶 贝克曼 + * invspec : 80/30/10ml + * nnum : 777 + * nastnum : 0 + */ + private String pk_corp; + private String corp_code; + private String corp_name; + private String ccalbodyid; + private String ccalbody_code; + private String ccalbody_name; + private String cinventoryid; + private String cinventory_code; + private String cinventory_name; + private String invspec; + private int nnum; + private int nastnum; + private String vbatchcode; + private String cwarehouse_name; + private String cwarehouse_code; + private String invtype; + + public String getVbatchcode() { + return vbatchcode; + } + + public void setVbatchcode(String vbatchcode) { + this.vbatchcode = vbatchcode; + } + + public String getCwarehouse_name() { + return cwarehouse_name; + } + + public void setCwarehouse_name(String cwarehouse_name) { + this.cwarehouse_name = cwarehouse_name; + } + + public String getPk_corp() { + return pk_corp; + } + + public void setPk_corp(String pk_corp) { + this.pk_corp = pk_corp; + } + + public String getCorp_code() { + return corp_code; + } + + public void setCorp_code(String corp_code) { + this.corp_code = corp_code; + } + + public String getCorp_name() { + return corp_name; + } + + public void setCorp_name(String corp_name) { + this.corp_name = corp_name; + } + + public String getCcalbodyid() { + return ccalbodyid; + } + + public void setCcalbodyid(String ccalbodyid) { + this.ccalbodyid = ccalbodyid; + } + + public String getCcalbody_code() { + return ccalbody_code; + } + + public void setCcalbody_code(String ccalbody_code) { + this.ccalbody_code = ccalbody_code; + } + + public String getCcalbody_name() { + return ccalbody_name; + } + + public void setCcalbody_name(String ccalbody_name) { + this.ccalbody_name = ccalbody_name; + } + + public String getCinventoryid() { + return cinventoryid; + } + + public void setCinventoryid(String cinventoryid) { + this.cinventoryid = cinventoryid; + } + + public String getCinventory_code() { + return cinventory_code; + } + + public void setCinventory_code(String cinventory_code) { + this.cinventory_code = cinventory_code; + } + + public String getCinventory_name() { + return cinventory_name; + } + + public void setCinventory_name(String cinventory_name) { + this.cinventory_name = cinventory_name; + } + + public String getInvspec() { + return invspec; + } + + public void setInvspec(String invspec) { + this.invspec = invspec; + } + + public int getNnum() { + return nnum; + } + + public void setNnum(int nnum) { + this.nnum = nnum; + } + + public int getNastnum() { + return nastnum; + } + + public void setNastnum(int nastnum) { + this.nastnum = nastnum; + } + + public String getInvtype() { + return invtype; + } + + public void setInvtype(String invtype) { + this.invtype = invtype; + } + + public String getCwarehouse_code() { + return cwarehouse_code; + } + + public void setCwarehouse_code(String cwarehouse_code) { + this.cwarehouse_code = cwarehouse_code; + } +} diff --git a/src/main/java/com/glxp/mipsdl/res/ucloud/UPurchaseinQueryResponse.java b/src/main/java/com/glxp/mipsdl/res/ucloud/UPurchaseinQueryResponse.java new file mode 100644 index 0000000..b5159a6 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/res/ucloud/UPurchaseinQueryResponse.java @@ -0,0 +1,1133 @@ +package com.glxp.mipsdl.res.ucloud; + +import java.util.List; + +public class UPurchaseinQueryResponse { + + + /** + * parentvo : {"bassetcard":false,"bdirecttranflag":false,"cbilltypecode":"45","cgeneralhid":"1013F81000000001W9L6","clastmodiid":"0001F8100000000063KL","lastmodi_code":"15260195777","lastmodi_name":"黄其敏","cregister":"0001F8100000000004OD","register_code":"15305066246","register_name":"林艺敏","daccountdate":"2021-03-01","fbillflag":"3","pk_purcorp":"1013","purcorp_code":"1110","purcorp_name":"福建片仔癀诊断技术有限公司","taccounttime":"2021-03-01 11:48:30","tlastmoditime":"2021-03-01 10:11:46","tmaketime":"2021-03-01 10:11:46","ts":"2021-03-01 11:48:30","cbizid":"1013F8100000000002ER","employee_code":"0044","employee_name":"洪璇","cbiztype":"1013F81000000000022L","biztype_code":"C010","biztype_name":"采购","cdptid":"1013F8100000000002CP","dept_code":"02","dept_name":"采购部","coperatorid":"0001F8100000000063KL","operator_code":"15260195777","operator_name":"黄其敏","cproviderid":"1013F8100000000004KB","provider_code":"09004","provider_name":"江苏康捷医疗器械有限公司","cwarehouseid":"1013F8100000000002E1","warehouseid_code":"0602","warehouseid_name":"产成品合格仓","pk_calbody":"1013F8100000000002DN","calbody_code":"1110","calbody_name":"福建片仔癀诊断技术有限公司","pk_corp":"1013","corp_code":"1110","corp_name":"福建片仔癀诊断技术有限公司","vnote":"1364","vbillcode":"CR2103010001","dbilldate":"2021-03-01","freplenishflag":false} + * childrenvo : [{"bbarcodeclose":false,"bonroadflag":false,"breturnprofit":false,"bsafeprice":false,"bsourcelargess":false,"bsupplyflag":false,"btoinzgflag":false,"btoouttoiaflag":false,"btou8rm":false,"bzgflag":true,"cbodybilltypecode":"45","cbodywarehouseid":"1013F8100000000002E1","bodywarehouse_code":"0602","bodywarehouse_name":"产成品合格仓","cfirstbillbid":"1013F81000000001W9IM","cfirstbillhid":"1013F81000000001W9IL","cfirsttype":"21","cgeneralbid":"1013F81000000001W9L9","cgeneralhid":"1013F81000000001W9L6","crowno":"10","csourcebillbid":"1013F81000000001W9J1","csourcebillhid":"1013F81000000001W9J0","csourcetype":"23","dbizdate":"2021-03-01","dvalidate":"2023-01-01","dzgdate":"2021-03-01","fassertcardflag":false,"fchecked":"0","flargess":false,"idesatype":"0","isok":true,"cinventoryid":"1013F81000000001VTFJ","inventory_code":"1203021783","inventory_name":"一次性使用人体静脉血样采集容器(肝素钠)","invspec":"5ml","invtype":"苏械注准20152221307","cvendorid":"1013F8100000000004KB","vendor_code":"09004","vendor_name":"江苏康捷医疗器械有限公司","nbarcodenum":0,"ninnum":600,"nmny":183.19,"nprice":0.31,"npricesettlebill":"0","nshouldinnum":600,"pk_bodycalbody":"1013F8100000000002DN","bodycalbody_code":"1110","bodycalbody_name":"福建片仔癀诊断技术有限公司","pk_corp":"1013","corp_code":"1110","corp_name":"福建片仔癀诊断技术有限公司","pk_invoicecorp":"1013","invoicecorp_code":"1110","invoicecorp_name":"福建片仔癀诊断技术有限公司","pk_reqcorp":"1013","reqcorp_code":"1110","reqcorp_name":"福建片仔癀诊断技术有限公司","ts":"2021-03-02 17:10:02","vbatchcode":"20210104","vfirstbillcode":"CD2103010001","vsourcebillcode":"DH2103010001","vsourcerowno":"10"}] + */ + + private ParentvoBean parentvo; + private List childrenvo; + + public ParentvoBean getParentvo() { + return parentvo; + } + + public void setParentvo(ParentvoBean parentvo) { + this.parentvo = parentvo; + } + + public List getChildrenvo() { + return childrenvo; + } + + public void setChildrenvo(List childrenvo) { + this.childrenvo = childrenvo; + } + + public static class ParentvoBean { + /** + * bassetcard : false + * bdirecttranflag : false + * cbilltypecode : 45 + * cgeneralhid : 1013F81000000001W9L6 + * clastmodiid : 0001F8100000000063KL + * lastmodi_code : 15260195777 + * lastmodi_name : 黄其敏 + * cregister : 0001F8100000000004OD + * register_code : 15305066246 + * register_name : 林艺敏 + * daccountdate : 2021-03-01 + * fbillflag : 3 + * pk_purcorp : 1013 + * purcorp_code : 1110 + * purcorp_name : 福建片仔癀诊断技术有限公司 + * taccounttime : 2021-03-01 11:48:30 + * tlastmoditime : 2021-03-01 10:11:46 + * tmaketime : 2021-03-01 10:11:46 + * ts : 2021-03-01 11:48:30 + * cbizid : 1013F8100000000002ER + * employee_code : 0044 + * employee_name : 洪璇 + * cbiztype : 1013F81000000000022L + * biztype_code : C010 + * biztype_name : 采购 + * cdptid : 1013F8100000000002CP + * dept_code : 02 + * dept_name : 采购部 + * coperatorid : 0001F8100000000063KL + * operator_code : 15260195777 + * operator_name : 黄其敏 + * cproviderid : 1013F8100000000004KB + * provider_code : 09004 + * provider_name : 江苏康捷医疗器械有限公司 + * cwarehouseid : 1013F8100000000002E1 + * warehouseid_code : 0602 + * warehouseid_name : 产成品合格仓 + * pk_calbody : 1013F8100000000002DN + * calbody_code : 1110 + * calbody_name : 福建片仔癀诊断技术有限公司 + * pk_corp : 1013 + * corp_code : 1110 + * corp_name : 福建片仔癀诊断技术有限公司 + * vnote : 1364 + * vbillcode : CR2103010001 + * dbilldate : 2021-03-01 + * freplenishflag : false + */ + + private boolean bassetcard; + private boolean bdirecttranflag; + private String cbilltypecode; + private String cgeneralhid; + private String clastmodiid; + private String lastmodi_code; + private String lastmodi_name; + private String cregister; + private String register_code; + private String register_name; + private String daccountdate; + private String fbillflag; + private String pk_purcorp; + private String purcorp_code; + private String purcorp_name; + private String taccounttime; + private String tlastmoditime; + private String tmaketime; + private String ts; + private String cbizid; + private String employee_code; + private String employee_name; + private String cbiztype; + private String biztype_code; + private String biztype_name; + private String cdptid; + private String dept_code; + private String dept_name; + private String coperatorid; + private String operator_code; + private String operator_name; + private String cproviderid; + private String provider_code; + private String provider_name; + private String cwarehouseid; + private String warehouseid_code; + private String warehouseid_name; + private String pk_calbody; + private String calbody_code; + private String calbody_name; + private String pk_corp; + private String corp_code; + private String corp_name; + private String vnote; + private String vbillcode; + private String dbilldate; + private boolean freplenishflag; + + public boolean isBassetcard() { + return bassetcard; + } + + public void setBassetcard(boolean bassetcard) { + this.bassetcard = bassetcard; + } + + public boolean isBdirecttranflag() { + return bdirecttranflag; + } + + public void setBdirecttranflag(boolean bdirecttranflag) { + this.bdirecttranflag = bdirecttranflag; + } + + public String getCbilltypecode() { + return cbilltypecode; + } + + public void setCbilltypecode(String cbilltypecode) { + this.cbilltypecode = cbilltypecode; + } + + public String getCgeneralhid() { + return cgeneralhid; + } + + public void setCgeneralhid(String cgeneralhid) { + this.cgeneralhid = cgeneralhid; + } + + public String getClastmodiid() { + return clastmodiid; + } + + public void setClastmodiid(String clastmodiid) { + this.clastmodiid = clastmodiid; + } + + public String getLastmodi_code() { + return lastmodi_code; + } + + public void setLastmodi_code(String lastmodi_code) { + this.lastmodi_code = lastmodi_code; + } + + public String getLastmodi_name() { + return lastmodi_name; + } + + public void setLastmodi_name(String lastmodi_name) { + this.lastmodi_name = lastmodi_name; + } + + public String getCregister() { + return cregister; + } + + public void setCregister(String cregister) { + this.cregister = cregister; + } + + public String getRegister_code() { + return register_code; + } + + public void setRegister_code(String register_code) { + this.register_code = register_code; + } + + public String getRegister_name() { + return register_name; + } + + public void setRegister_name(String register_name) { + this.register_name = register_name; + } + + public String getDaccountdate() { + return daccountdate; + } + + public void setDaccountdate(String daccountdate) { + this.daccountdate = daccountdate; + } + + public String getFbillflag() { + return fbillflag; + } + + public void setFbillflag(String fbillflag) { + this.fbillflag = fbillflag; + } + + public String getPk_purcorp() { + return pk_purcorp; + } + + public void setPk_purcorp(String pk_purcorp) { + this.pk_purcorp = pk_purcorp; + } + + public String getPurcorp_code() { + return purcorp_code; + } + + public void setPurcorp_code(String purcorp_code) { + this.purcorp_code = purcorp_code; + } + + public String getPurcorp_name() { + return purcorp_name; + } + + public void setPurcorp_name(String purcorp_name) { + this.purcorp_name = purcorp_name; + } + + public String getTaccounttime() { + return taccounttime; + } + + public void setTaccounttime(String taccounttime) { + this.taccounttime = taccounttime; + } + + public String getTlastmoditime() { + return tlastmoditime; + } + + public void setTlastmoditime(String tlastmoditime) { + this.tlastmoditime = tlastmoditime; + } + + public String getTmaketime() { + return tmaketime; + } + + public void setTmaketime(String tmaketime) { + this.tmaketime = tmaketime; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getCbizid() { + return cbizid; + } + + public void setCbizid(String cbizid) { + this.cbizid = cbizid; + } + + public String getEmployee_code() { + return employee_code; + } + + public void setEmployee_code(String employee_code) { + this.employee_code = employee_code; + } + + public String getEmployee_name() { + return employee_name; + } + + public void setEmployee_name(String employee_name) { + this.employee_name = employee_name; + } + + public String getCbiztype() { + return cbiztype; + } + + public void setCbiztype(String cbiztype) { + this.cbiztype = cbiztype; + } + + public String getBiztype_code() { + return biztype_code; + } + + public void setBiztype_code(String biztype_code) { + this.biztype_code = biztype_code; + } + + public String getBiztype_name() { + return biztype_name; + } + + public void setBiztype_name(String biztype_name) { + this.biztype_name = biztype_name; + } + + public String getCdptid() { + return cdptid; + } + + public void setCdptid(String cdptid) { + this.cdptid = cdptid; + } + + public String getDept_code() { + return dept_code; + } + + public void setDept_code(String dept_code) { + this.dept_code = dept_code; + } + + public String getDept_name() { + return dept_name; + } + + public void setDept_name(String dept_name) { + this.dept_name = dept_name; + } + + public String getCoperatorid() { + return coperatorid; + } + + public void setCoperatorid(String coperatorid) { + this.coperatorid = coperatorid; + } + + public String getOperator_code() { + return operator_code; + } + + public void setOperator_code(String operator_code) { + this.operator_code = operator_code; + } + + public String getOperator_name() { + return operator_name; + } + + public void setOperator_name(String operator_name) { + this.operator_name = operator_name; + } + + public String getCproviderid() { + return cproviderid; + } + + public void setCproviderid(String cproviderid) { + this.cproviderid = cproviderid; + } + + public String getProvider_code() { + return provider_code; + } + + public void setProvider_code(String provider_code) { + this.provider_code = provider_code; + } + + public String getProvider_name() { + return provider_name; + } + + public void setProvider_name(String provider_name) { + this.provider_name = provider_name; + } + + public String getCwarehouseid() { + return cwarehouseid; + } + + public void setCwarehouseid(String cwarehouseid) { + this.cwarehouseid = cwarehouseid; + } + + public String getWarehouseid_code() { + return warehouseid_code; + } + + public void setWarehouseid_code(String warehouseid_code) { + this.warehouseid_code = warehouseid_code; + } + + public String getWarehouseid_name() { + return warehouseid_name; + } + + public void setWarehouseid_name(String warehouseid_name) { + this.warehouseid_name = warehouseid_name; + } + + public String getPk_calbody() { + return pk_calbody; + } + + public void setPk_calbody(String pk_calbody) { + this.pk_calbody = pk_calbody; + } + + public String getCalbody_code() { + return calbody_code; + } + + public void setCalbody_code(String calbody_code) { + this.calbody_code = calbody_code; + } + + public String getCalbody_name() { + return calbody_name; + } + + public void setCalbody_name(String calbody_name) { + this.calbody_name = calbody_name; + } + + public String getPk_corp() { + return pk_corp; + } + + public void setPk_corp(String pk_corp) { + this.pk_corp = pk_corp; + } + + public String getCorp_code() { + return corp_code; + } + + public void setCorp_code(String corp_code) { + this.corp_code = corp_code; + } + + public String getCorp_name() { + return corp_name; + } + + public void setCorp_name(String corp_name) { + this.corp_name = corp_name; + } + + public String getVnote() { + return vnote; + } + + public void setVnote(String vnote) { + this.vnote = vnote; + } + + public String getVbillcode() { + return vbillcode; + } + + public void setVbillcode(String vbillcode) { + this.vbillcode = vbillcode; + } + + public String getDbilldate() { + return dbilldate; + } + + public void setDbilldate(String dbilldate) { + this.dbilldate = dbilldate; + } + + public boolean isFreplenishflag() { + return freplenishflag; + } + + public void setFreplenishflag(boolean freplenishflag) { + this.freplenishflag = freplenishflag; + } + } + + public static class ChildrenvoBean { + /** + * bbarcodeclose : false + * bonroadflag : false + * breturnprofit : false + * bsafeprice : false + * bsourcelargess : false + * bsupplyflag : false + * btoinzgflag : false + * btoouttoiaflag : false + * btou8rm : false + * bzgflag : true + * cbodybilltypecode : 45 + * cbodywarehouseid : 1013F8100000000002E1 + * bodywarehouse_code : 0602 + * bodywarehouse_name : 产成品合格仓 + * cfirstbillbid : 1013F81000000001W9IM + * cfirstbillhid : 1013F81000000001W9IL + * cfirsttype : 21 + * cgeneralbid : 1013F81000000001W9L9 + * cgeneralhid : 1013F81000000001W9L6 + * crowno : 10 + * csourcebillbid : 1013F81000000001W9J1 + * csourcebillhid : 1013F81000000001W9J0 + * csourcetype : 23 + * dbizdate : 2021-03-01 + * dvalidate : 2023-01-01 + * dzgdate : 2021-03-01 + * fassertcardflag : false + * fchecked : 0 + * flargess : false + * idesatype : 0 + * isok : true + * cinventoryid : 1013F81000000001VTFJ + * inventory_code : 1203021783 + * inventory_name : 一次性使用人体静脉血样采集容器(肝素钠) + * invspec : 5ml + * invtype : 苏械注准20152221307 + * cvendorid : 1013F8100000000004KB + * vendor_code : 09004 + * vendor_name : 江苏康捷医疗器械有限公司 + * nbarcodenum : 0 + * ninnum : 600 + * nmny : 183.19 + * nprice : 0.31 + * npricesettlebill : 0 + * nshouldinnum : 600 + * pk_bodycalbody : 1013F8100000000002DN + * bodycalbody_code : 1110 + * bodycalbody_name : 福建片仔癀诊断技术有限公司 + * pk_corp : 1013 + * corp_code : 1110 + * corp_name : 福建片仔癀诊断技术有限公司 + * pk_invoicecorp : 1013 + * invoicecorp_code : 1110 + * invoicecorp_name : 福建片仔癀诊断技术有限公司 + * pk_reqcorp : 1013 + * reqcorp_code : 1110 + * reqcorp_name : 福建片仔癀诊断技术有限公司 + * ts : 2021-03-02 17:10:02 + * vbatchcode : 20210104 + * vfirstbillcode : CD2103010001 + * vsourcebillcode : DH2103010001 + * vsourcerowno : 10 + */ + + private boolean bbarcodeclose; + private boolean bonroadflag; + private boolean breturnprofit; + private boolean bsafeprice; + private boolean bsourcelargess; + private boolean bsupplyflag; + private boolean btoinzgflag; + private boolean btoouttoiaflag; + private boolean btou8rm; + private boolean bzgflag; + private String cbodybilltypecode; + private String cbodywarehouseid; + private String bodywarehouse_code; + private String bodywarehouse_name; + private String cfirstbillbid; + private String cfirstbillhid; + private String cfirsttype; + private String cgeneralbid; + private String cgeneralhid; + private String crowno; + private String csourcebillbid; + private String csourcebillhid; + private String csourcetype; + private String dbizdate; + private String dvalidate; + private String dzgdate; + private boolean fassertcardflag; + private String fchecked; + private boolean flargess; + private String idesatype; + private boolean isok; + private String cinventoryid; + private String inventory_code; + private String inventory_name; + private String invspec; + private String invtype; + private String cvendorid; + private String vendor_code; + private String vendor_name; + private int nbarcodenum; + private int ninnum; + private double nmny; + private double nprice; + private String npricesettlebill; + private int nshouldinnum; + private String pk_bodycalbody; + private String bodycalbody_code; + private String bodycalbody_name; + private String pk_corp; + private String corp_code; + private String corp_name; + private String pk_invoicecorp; + private String invoicecorp_code; + private String invoicecorp_name; + private String pk_reqcorp; + private String reqcorp_code; + private String reqcorp_name; + private String ts; + private String vbatchcode; + private String vfirstbillcode; + private String vsourcebillcode; + private String vsourcerowno; + + public boolean isBbarcodeclose() { + return bbarcodeclose; + } + + public void setBbarcodeclose(boolean bbarcodeclose) { + this.bbarcodeclose = bbarcodeclose; + } + + public boolean isBonroadflag() { + return bonroadflag; + } + + public void setBonroadflag(boolean bonroadflag) { + this.bonroadflag = bonroadflag; + } + + public boolean isBreturnprofit() { + return breturnprofit; + } + + public void setBreturnprofit(boolean breturnprofit) { + this.breturnprofit = breturnprofit; + } + + public boolean isBsafeprice() { + return bsafeprice; + } + + public void setBsafeprice(boolean bsafeprice) { + this.bsafeprice = bsafeprice; + } + + public boolean isBsourcelargess() { + return bsourcelargess; + } + + public void setBsourcelargess(boolean bsourcelargess) { + this.bsourcelargess = bsourcelargess; + } + + public boolean isBsupplyflag() { + return bsupplyflag; + } + + public void setBsupplyflag(boolean bsupplyflag) { + this.bsupplyflag = bsupplyflag; + } + + public boolean isBtoinzgflag() { + return btoinzgflag; + } + + public void setBtoinzgflag(boolean btoinzgflag) { + this.btoinzgflag = btoinzgflag; + } + + public boolean isBtoouttoiaflag() { + return btoouttoiaflag; + } + + public void setBtoouttoiaflag(boolean btoouttoiaflag) { + this.btoouttoiaflag = btoouttoiaflag; + } + + public boolean isBtou8rm() { + return btou8rm; + } + + public void setBtou8rm(boolean btou8rm) { + this.btou8rm = btou8rm; + } + + public boolean isBzgflag() { + return bzgflag; + } + + public void setBzgflag(boolean bzgflag) { + this.bzgflag = bzgflag; + } + + public String getCbodybilltypecode() { + return cbodybilltypecode; + } + + public void setCbodybilltypecode(String cbodybilltypecode) { + this.cbodybilltypecode = cbodybilltypecode; + } + + public String getCbodywarehouseid() { + return cbodywarehouseid; + } + + public void setCbodywarehouseid(String cbodywarehouseid) { + this.cbodywarehouseid = cbodywarehouseid; + } + + public String getBodywarehouse_code() { + return bodywarehouse_code; + } + + public void setBodywarehouse_code(String bodywarehouse_code) { + this.bodywarehouse_code = bodywarehouse_code; + } + + public String getBodywarehouse_name() { + return bodywarehouse_name; + } + + public void setBodywarehouse_name(String bodywarehouse_name) { + this.bodywarehouse_name = bodywarehouse_name; + } + + public String getCfirstbillbid() { + return cfirstbillbid; + } + + public void setCfirstbillbid(String cfirstbillbid) { + this.cfirstbillbid = cfirstbillbid; + } + + public String getCfirstbillhid() { + return cfirstbillhid; + } + + public void setCfirstbillhid(String cfirstbillhid) { + this.cfirstbillhid = cfirstbillhid; + } + + public String getCfirsttype() { + return cfirsttype; + } + + public void setCfirsttype(String cfirsttype) { + this.cfirsttype = cfirsttype; + } + + public String getCgeneralbid() { + return cgeneralbid; + } + + public void setCgeneralbid(String cgeneralbid) { + this.cgeneralbid = cgeneralbid; + } + + public String getCgeneralhid() { + return cgeneralhid; + } + + public void setCgeneralhid(String cgeneralhid) { + this.cgeneralhid = cgeneralhid; + } + + public String getCrowno() { + return crowno; + } + + public void setCrowno(String crowno) { + this.crowno = crowno; + } + + public String getCsourcebillbid() { + return csourcebillbid; + } + + public void setCsourcebillbid(String csourcebillbid) { + this.csourcebillbid = csourcebillbid; + } + + public String getCsourcebillhid() { + return csourcebillhid; + } + + public void setCsourcebillhid(String csourcebillhid) { + this.csourcebillhid = csourcebillhid; + } + + public String getCsourcetype() { + return csourcetype; + } + + public void setCsourcetype(String csourcetype) { + this.csourcetype = csourcetype; + } + + public String getDbizdate() { + return dbizdate; + } + + public void setDbizdate(String dbizdate) { + this.dbizdate = dbizdate; + } + + public String getDvalidate() { + return dvalidate; + } + + public void setDvalidate(String dvalidate) { + this.dvalidate = dvalidate; + } + + public String getDzgdate() { + return dzgdate; + } + + public void setDzgdate(String dzgdate) { + this.dzgdate = dzgdate; + } + + public boolean isFassertcardflag() { + return fassertcardflag; + } + + public void setFassertcardflag(boolean fassertcardflag) { + this.fassertcardflag = fassertcardflag; + } + + public String getFchecked() { + return fchecked; + } + + public void setFchecked(String fchecked) { + this.fchecked = fchecked; + } + + public boolean isFlargess() { + return flargess; + } + + public void setFlargess(boolean flargess) { + this.flargess = flargess; + } + + public String getIdesatype() { + return idesatype; + } + + public void setIdesatype(String idesatype) { + this.idesatype = idesatype; + } + + public boolean isIsok() { + return isok; + } + + public void setIsok(boolean isok) { + this.isok = isok; + } + + public String getCinventoryid() { + return cinventoryid; + } + + public void setCinventoryid(String cinventoryid) { + this.cinventoryid = cinventoryid; + } + + public String getInventory_code() { + return inventory_code; + } + + public void setInventory_code(String inventory_code) { + this.inventory_code = inventory_code; + } + + public String getInventory_name() { + return inventory_name; + } + + public void setInventory_name(String inventory_name) { + this.inventory_name = inventory_name; + } + + public String getInvspec() { + return invspec; + } + + public void setInvspec(String invspec) { + this.invspec = invspec; + } + + public String getInvtype() { + return invtype; + } + + public void setInvtype(String invtype) { + this.invtype = invtype; + } + + public String getCvendorid() { + return cvendorid; + } + + public void setCvendorid(String cvendorid) { + this.cvendorid = cvendorid; + } + + public String getVendor_code() { + return vendor_code; + } + + public void setVendor_code(String vendor_code) { + this.vendor_code = vendor_code; + } + + public String getVendor_name() { + return vendor_name; + } + + public void setVendor_name(String vendor_name) { + this.vendor_name = vendor_name; + } + + public int getNbarcodenum() { + return nbarcodenum; + } + + public void setNbarcodenum(int nbarcodenum) { + this.nbarcodenum = nbarcodenum; + } + + public int getNinnum() { + return ninnum; + } + + public void setNinnum(int ninnum) { + this.ninnum = ninnum; + } + + public double getNmny() { + return nmny; + } + + public void setNmny(double nmny) { + this.nmny = nmny; + } + + public double getNprice() { + return nprice; + } + + public void setNprice(double nprice) { + this.nprice = nprice; + } + + public String getNpricesettlebill() { + return npricesettlebill; + } + + public void setNpricesettlebill(String npricesettlebill) { + this.npricesettlebill = npricesettlebill; + } + + public int getNshouldinnum() { + return nshouldinnum; + } + + public void setNshouldinnum(int nshouldinnum) { + this.nshouldinnum = nshouldinnum; + } + + public String getPk_bodycalbody() { + return pk_bodycalbody; + } + + public void setPk_bodycalbody(String pk_bodycalbody) { + this.pk_bodycalbody = pk_bodycalbody; + } + + public String getBodycalbody_code() { + return bodycalbody_code; + } + + public void setBodycalbody_code(String bodycalbody_code) { + this.bodycalbody_code = bodycalbody_code; + } + + public String getBodycalbody_name() { + return bodycalbody_name; + } + + public void setBodycalbody_name(String bodycalbody_name) { + this.bodycalbody_name = bodycalbody_name; + } + + public String getPk_corp() { + return pk_corp; + } + + public void setPk_corp(String pk_corp) { + this.pk_corp = pk_corp; + } + + public String getCorp_code() { + return corp_code; + } + + public void setCorp_code(String corp_code) { + this.corp_code = corp_code; + } + + public String getCorp_name() { + return corp_name; + } + + public void setCorp_name(String corp_name) { + this.corp_name = corp_name; + } + + public String getPk_invoicecorp() { + return pk_invoicecorp; + } + + public void setPk_invoicecorp(String pk_invoicecorp) { + this.pk_invoicecorp = pk_invoicecorp; + } + + public String getInvoicecorp_code() { + return invoicecorp_code; + } + + public void setInvoicecorp_code(String invoicecorp_code) { + this.invoicecorp_code = invoicecorp_code; + } + + public String getInvoicecorp_name() { + return invoicecorp_name; + } + + public void setInvoicecorp_name(String invoicecorp_name) { + this.invoicecorp_name = invoicecorp_name; + } + + public String getPk_reqcorp() { + return pk_reqcorp; + } + + public void setPk_reqcorp(String pk_reqcorp) { + this.pk_reqcorp = pk_reqcorp; + } + + public String getReqcorp_code() { + return reqcorp_code; + } + + public void setReqcorp_code(String reqcorp_code) { + this.reqcorp_code = reqcorp_code; + } + + public String getReqcorp_name() { + return reqcorp_name; + } + + public void setReqcorp_name(String reqcorp_name) { + this.reqcorp_name = reqcorp_name; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getVbatchcode() { + return vbatchcode; + } + + public void setVbatchcode(String vbatchcode) { + this.vbatchcode = vbatchcode; + } + + public String getVfirstbillcode() { + return vfirstbillcode; + } + + public void setVfirstbillcode(String vfirstbillcode) { + this.vfirstbillcode = vfirstbillcode; + } + + public String getVsourcebillcode() { + return vsourcebillcode; + } + + public void setVsourcebillcode(String vsourcebillcode) { + this.vsourcebillcode = vsourcebillcode; + } + + public String getVsourcerowno() { + return vsourcerowno; + } + + public void setVsourcerowno(String vsourcerowno) { + this.vsourcerowno = vsourcerowno; + } + } +} diff --git a/src/main/java/com/glxp/mipsdl/res/ucloud/USaleoutQueryResponse.java b/src/main/java/com/glxp/mipsdl/res/ucloud/USaleoutQueryResponse.java new file mode 100644 index 0000000..3de2439 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/res/ucloud/USaleoutQueryResponse.java @@ -0,0 +1,855 @@ +package com.glxp.mipsdl.res.ucloud; + +import java.util.List; + +public class USaleoutQueryResponse { + + + /** + * parentvo : {"pk_corp":"1013","corp_code":"1110","corp_name":"福建片仔癀诊断技术有限公司(测试)","coperatorid":"0001F8100000000004OA","operator_code":"15260605603","operator_name":"林斌玲","cwarehouseid":"1013F8100000000002E1","warehouseid_code":"0602","warehouseid_name":"产成品合格仓","pk_calbody":"1013F8100000000002DN","calbody_code":"1110","calbody_name":"福建片仔癀诊断技术有限公司","cbizid":"1013F8100000000002FF","employee_code":"00071","employee_name":"张绘辉","ccustomerid":"1013F8100000000003GC","customer_code":"02020020","customer_name":"福建省漳州市医院","cbiztype":"1013F81000000000022M","biztype_code":"S010","biztype_name":"销售","cdptid":"1013F8100000000002DG","dept_code":"11","dept_name":"销售部","fbillflag":"2","dbilldate":"2021-03-23","tlastmoditime":"2021-03-23 15:26:50","tmaketime":"2021-03-23 15:26:50","ts":"2021-03-23 15:26:50","freplenishflag":false,"vbillcode":"XC2103230001","bassetcard":false,"bdirecttranflag":false,"cbilltypecode":"4C","clastmodiid":"0001F8100000000004OA","lastmodi_code":"15260605603","lastmodi_name":"林斌玲"} + * childrenvo : [{"cgeneralhid":"1013F810000000014UWT","cquotecurrency":"00010000000000000001","creceiveareaid":"1013F81000000000039Z","crowno":"10","csourcetype":"30","ddeliverdate":"2021-03-23","csourcebillhid":"1013F810000000014UTZ","cfirstbillbid":"1013F810000000014UU0","cfirstbillhid":"1013F810000000014UTZ","cgeneralbid":"1013F810000000014UWU","csourcebillbid":"1013F810000000014UU0","nquotentprice":53.1,"cfirsttype":"30","creceieveid":"1013F8100000000003GC","cinventoryid":"1013F810000000014UQ1","inventory_code":"1203040506001","inventory_name":"胶原基骨修复材料","invspec":"S4 4*16*14MM","invtype":"国械注准20143461867","nquoteprice":60,"nsaleprice":53.1,"ntaxprice":60,"pk_measdoc":"0001F81000000000050V","measdoc _code":"盒","measdoc _name":"盒","bonroadflag":false,"flargess":false,"nshouldoutnum":5,"vreceiveaddress":"漳州市芗城区胜利西路59号","ts":"2021-03-23 15:26:50","cquoteunitid":"0001F81000000000050V","vbatchcode":"20200602011","bsafeprice":false,"breturnprofit":false,"noutnum":5,"bsourcelargess":false,"bsupplyflag":false,"cbodybilltypecode":"4C","cbodywarehouseid":"1013F8100000000002E1","bodywarehouse_code":"0602","bodywarehouse_name":"产成品合格仓","dbizdate":"2021-03-23","fassertcardflag":false,"btoouttoiaflag":false,"btou8rm":false,"btoinzgflag":false},{"cgeneralhid":"1013F810000000014UWT","cquotecurrency":"00010000000000000001","creceiveareaid":"1013F81000000000039Z","crowno":"20","csourcetype":"30","ddeliverdate":"2021-03-23","csourcebillhid":"1013F810000000014UTZ","cfirstbillbid":"1013F810000000014UU1","cfirstbillhid":"1013F810000000014UTZ","cgeneralbid":"1013F810000000014UWW","csourcebillbid":"1013F810000000014UU1","nquotentprice":53.1,"cfirsttype":"30","creceieveid":"1013F8100000000003GC","cinventoryid":"1013F810000000014UQ4","inventory_code":"1203040506002","inventory_name":"一次性腔镜用直线型型切割吻合器","invspec":"SQR45W","invtype":"苏械注准20182021582","nquoteprice":60,"nsaleprice":53.1,"ntaxprice":60,"pk_measdoc":"0001F81000000000050F","measdoc _code":"个","measdoc _name":"个","bonroadflag":false,"flargess":false,"nshouldoutnum":5,"vreceiveaddress":"漳州市芗城区胜利西路59号","ts":"2021-03-23 15:26:50","cquoteunitid":"0001F81000000000050F","vbatchcode":"2002263","bsafeprice":false,"breturnprofit":false,"noutnum":5,"bsourcelargess":false,"bsupplyflag":false,"cbodybilltypecode":"4C","cbodywarehouseid":"1013F8100000000002E1","bodywarehouse_code":"0602","bodywarehouse_name":"产成品合格仓","dbizdate":"2021-03-23","fassertcardflag":false,"btoouttoiaflag":false,"btou8rm":false,"btoinzgflag":false},{"cgeneralhid":"1013F810000000014UWT","cquotecurrency":"00010000000000000001","creceiveareaid":"1013F81000000000039Z","crowno":"30","csourcetype":"30","ddeliverdate":"2021-03-23","csourcebillhid":"1013F810000000014UTZ","cfirstbillbid":"1013F810000000014UU2","cfirstbillhid":"1013F810000000014UTZ","cgeneralbid":"1013F810000000014UWY","csourcebillbid":"1013F810000000014UU2","nquotentprice":53.1,"cfirsttype":"30","creceieveid":"1013F8100000000003GC","cinventoryid":"1013F810000000014UQ7","inventory_code":"1203040506003","inventory_name":"结扎装置","invspec":"LD-195","invtype":"苏械注准20142020098","nquoteprice":60,"nsaleprice":53.1,"ntaxprice":60,"pk_measdoc":"0001F81000000000050F","measdoc _code":"个","measdoc _name":"个","bonroadflag":false,"flargess":false,"nshouldoutnum":5,"vreceiveaddress":"漳州市芗城区胜利西路59号","ts":"2021-03-23 15:26:50","cquoteunitid":"0001F81000000000050F","vbatchcode":"080601200803","bsafeprice":false,"breturnprofit":false,"noutnum":5,"bsourcelargess":false,"bsupplyflag":false,"cbodybilltypecode":"4C","cbodywarehouseid":"1013F8100000000002E1","bodywarehouse_code":"0602","bodywarehouse_name":"产成品合格仓","dbizdate":"2021-03-23","fassertcardflag":false,"btoouttoiaflag":false,"btou8rm":false,"btoinzgflag":false}] + */ + + private ParentvoBean parentvo; + private List childrenvo; + + public ParentvoBean getParentvo() { + return parentvo; + } + + public void setParentvo(ParentvoBean parentvo) { + this.parentvo = parentvo; + } + + public List getChildrenvo() { + return childrenvo; + } + + public void setChildrenvo(List childrenvo) { + this.childrenvo = childrenvo; + } + + public static class ParentvoBean { + /** + * pk_corp : 1013 + * corp_code : 1110 + * corp_name : 福建片仔癀诊断技术有限公司(测试) + * coperatorid : 0001F8100000000004OA + * operator_code : 15260605603 + * operator_name : 林斌玲 + * cwarehouseid : 1013F8100000000002E1 + * warehouseid_code : 0602 + * warehouseid_name : 产成品合格仓 + * pk_calbody : 1013F8100000000002DN + * calbody_code : 1110 + * calbody_name : 福建片仔癀诊断技术有限公司 + * cbizid : 1013F8100000000002FF + * employee_code : 00071 + * employee_name : 张绘辉 + * ccustomerid : 1013F8100000000003GC + * customer_code : 02020020 + * customer_name : 福建省漳州市医院 + * cbiztype : 1013F81000000000022M + * biztype_code : S010 + * biztype_name : 销售 + * cdptid : 1013F8100000000002DG + * dept_code : 11 + * dept_name : 销售部 + * fbillflag : 2 + * dbilldate : 2021-03-23 + * tlastmoditime : 2021-03-23 15:26:50 + * tmaketime : 2021-03-23 15:26:50 + * ts : 2021-03-23 15:26:50 + * freplenishflag : false + * vbillcode : XC2103230001 + * bassetcard : false + * bdirecttranflag : false + * cbilltypecode : 4C + * clastmodiid : 0001F8100000000004OA + * lastmodi_code : 15260605603 + * lastmodi_name : 林斌玲 + */ + + private String pk_corp; + private String corp_code; + private String corp_name; + private String coperatorid; + private String operator_code; + private String operator_name; + private String cwarehouseid; + private String warehouseid_code; + private String warehouseid_name; + private String pk_calbody; + private String calbody_code; + private String calbody_name; + private String cbizid; + private String employee_code; + private String employee_name; + private String ccustomerid; + private String customer_code; + private String customer_name; + private String cbiztype; + private String biztype_code; + private String biztype_name; + private String cdptid; + private String dept_code; + private String dept_name; + private String fbillflag; + private String dbilldate; + private String tlastmoditime; + private String tmaketime; + private String ts; + private boolean freplenishflag; + private String vbillcode; + private boolean bassetcard; + private boolean bdirecttranflag; + private String cbilltypecode; + private String clastmodiid; + private String lastmodi_code; + private String lastmodi_name; + + public String getPk_corp() { + return pk_corp; + } + + public void setPk_corp(String pk_corp) { + this.pk_corp = pk_corp; + } + + public String getCorp_code() { + return corp_code; + } + + public void setCorp_code(String corp_code) { + this.corp_code = corp_code; + } + + public String getCorp_name() { + return corp_name; + } + + public void setCorp_name(String corp_name) { + this.corp_name = corp_name; + } + + public String getCoperatorid() { + return coperatorid; + } + + public void setCoperatorid(String coperatorid) { + this.coperatorid = coperatorid; + } + + public String getOperator_code() { + return operator_code; + } + + public void setOperator_code(String operator_code) { + this.operator_code = operator_code; + } + + public String getOperator_name() { + return operator_name; + } + + public void setOperator_name(String operator_name) { + this.operator_name = operator_name; + } + + public String getCwarehouseid() { + return cwarehouseid; + } + + public void setCwarehouseid(String cwarehouseid) { + this.cwarehouseid = cwarehouseid; + } + + public String getWarehouseid_code() { + return warehouseid_code; + } + + public void setWarehouseid_code(String warehouseid_code) { + this.warehouseid_code = warehouseid_code; + } + + public String getWarehouseid_name() { + return warehouseid_name; + } + + public void setWarehouseid_name(String warehouseid_name) { + this.warehouseid_name = warehouseid_name; + } + + public String getPk_calbody() { + return pk_calbody; + } + + public void setPk_calbody(String pk_calbody) { + this.pk_calbody = pk_calbody; + } + + public String getCalbody_code() { + return calbody_code; + } + + public void setCalbody_code(String calbody_code) { + this.calbody_code = calbody_code; + } + + public String getCalbody_name() { + return calbody_name; + } + + public void setCalbody_name(String calbody_name) { + this.calbody_name = calbody_name; + } + + public String getCbizid() { + return cbizid; + } + + public void setCbizid(String cbizid) { + this.cbizid = cbizid; + } + + public String getEmployee_code() { + return employee_code; + } + + public void setEmployee_code(String employee_code) { + this.employee_code = employee_code; + } + + public String getEmployee_name() { + return employee_name; + } + + public void setEmployee_name(String employee_name) { + this.employee_name = employee_name; + } + + public String getCcustomerid() { + return ccustomerid; + } + + public void setCcustomerid(String ccustomerid) { + this.ccustomerid = ccustomerid; + } + + public String getCustomer_code() { + return customer_code; + } + + public void setCustomer_code(String customer_code) { + this.customer_code = customer_code; + } + + public String getCustomer_name() { + return customer_name; + } + + public void setCustomer_name(String customer_name) { + this.customer_name = customer_name; + } + + public String getCbiztype() { + return cbiztype; + } + + public void setCbiztype(String cbiztype) { + this.cbiztype = cbiztype; + } + + public String getBiztype_code() { + return biztype_code; + } + + public void setBiztype_code(String biztype_code) { + this.biztype_code = biztype_code; + } + + public String getBiztype_name() { + return biztype_name; + } + + public void setBiztype_name(String biztype_name) { + this.biztype_name = biztype_name; + } + + public String getCdptid() { + return cdptid; + } + + public void setCdptid(String cdptid) { + this.cdptid = cdptid; + } + + public String getDept_code() { + return dept_code; + } + + public void setDept_code(String dept_code) { + this.dept_code = dept_code; + } + + public String getDept_name() { + return dept_name; + } + + public void setDept_name(String dept_name) { + this.dept_name = dept_name; + } + + public String getFbillflag() { + return fbillflag; + } + + public void setFbillflag(String fbillflag) { + this.fbillflag = fbillflag; + } + + public String getDbilldate() { + return dbilldate; + } + + public void setDbilldate(String dbilldate) { + this.dbilldate = dbilldate; + } + + public String getTlastmoditime() { + return tlastmoditime; + } + + public void setTlastmoditime(String tlastmoditime) { + this.tlastmoditime = tlastmoditime; + } + + public String getTmaketime() { + return tmaketime; + } + + public void setTmaketime(String tmaketime) { + this.tmaketime = tmaketime; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public boolean isFreplenishflag() { + return freplenishflag; + } + + public void setFreplenishflag(boolean freplenishflag) { + this.freplenishflag = freplenishflag; + } + + public String getVbillcode() { + return vbillcode; + } + + public void setVbillcode(String vbillcode) { + this.vbillcode = vbillcode; + } + + public boolean isBassetcard() { + return bassetcard; + } + + public void setBassetcard(boolean bassetcard) { + this.bassetcard = bassetcard; + } + + public boolean isBdirecttranflag() { + return bdirecttranflag; + } + + public void setBdirecttranflag(boolean bdirecttranflag) { + this.bdirecttranflag = bdirecttranflag; + } + + public String getCbilltypecode() { + return cbilltypecode; + } + + public void setCbilltypecode(String cbilltypecode) { + this.cbilltypecode = cbilltypecode; + } + + public String getClastmodiid() { + return clastmodiid; + } + + public void setClastmodiid(String clastmodiid) { + this.clastmodiid = clastmodiid; + } + + public String getLastmodi_code() { + return lastmodi_code; + } + + public void setLastmodi_code(String lastmodi_code) { + this.lastmodi_code = lastmodi_code; + } + + public String getLastmodi_name() { + return lastmodi_name; + } + + public void setLastmodi_name(String lastmodi_name) { + this.lastmodi_name = lastmodi_name; + } + } + + public static class ChildrenvoBean { + /** + * cgeneralhid : 1013F810000000014UWT + * cquotecurrency : 00010000000000000001 + * creceiveareaid : 1013F81000000000039Z + * crowno : 10 + * csourcetype : 30 + * ddeliverdate : 2021-03-23 + * csourcebillhid : 1013F810000000014UTZ + * cfirstbillbid : 1013F810000000014UU0 + * cfirstbillhid : 1013F810000000014UTZ + * cgeneralbid : 1013F810000000014UWU + * csourcebillbid : 1013F810000000014UU0 + * nquotentprice : 53.1 + * cfirsttype : 30 + * creceieveid : 1013F8100000000003GC + * cinventoryid : 1013F810000000014UQ1 + * inventory_code : 1203040506001 + * inventory_name : 胶原基骨修复材料 + * invspec : S4 4*16*14MM + * invtype : 国械注准20143461867 + * nquoteprice : 60 + * nsaleprice : 53.1 + * ntaxprice : 60 + * pk_measdoc : 0001F81000000000050V + * measdoc _code : 盒 + * measdoc _name : 盒 + * bonroadflag : false + * flargess : false + * nshouldoutnum : 5 + * vreceiveaddress : 漳州市芗城区胜利西路59号 + * ts : 2021-03-23 15:26:50 + * cquoteunitid : 0001F81000000000050V + * vbatchcode : 20200602011 + * bsafeprice : false + * breturnprofit : false + * noutnum : 5 + * bsourcelargess : false + * bsupplyflag : false + * cbodybilltypecode : 4C + * cbodywarehouseid : 1013F8100000000002E1 + * bodywarehouse_code : 0602 + * bodywarehouse_name : 产成品合格仓 + * dbizdate : 2021-03-23 + * fassertcardflag : false + * btoouttoiaflag : false + * btou8rm : false + * btoinzgflag : false + */ + + private String cgeneralhid; + private String cquotecurrency; + private String creceiveareaid; + private String crowno; + private String csourcetype; + private String ddeliverdate; + private String csourcebillhid; + private String cfirstbillbid; + private String cfirstbillhid; + private String cgeneralbid; + private String csourcebillbid; + private double nquotentprice; + private String cfirsttype; + private String creceieveid; + private String cinventoryid; + private String inventory_code; + private String inventory_name; + private String invspec; + private String invtype; + private int nquoteprice; + private double nsaleprice; + private int ntaxprice; + private String pk_measdoc; + private boolean bonroadflag; + private boolean flargess; + private int nshouldoutnum; + private String vreceiveaddress; + private String ts; + private String cquoteunitid; + private String vbatchcode; + private boolean bsafeprice; + private boolean breturnprofit; + private int noutnum; + private boolean bsourcelargess; + private boolean bsupplyflag; + private String cbodybilltypecode; + private String cbodywarehouseid; + private String bodywarehouse_code; + private String bodywarehouse_name; + private String dbizdate; + private boolean fassertcardflag; + private boolean btoouttoiaflag; + private boolean btou8rm; + private boolean btoinzgflag; + + public String getCgeneralhid() { + return cgeneralhid; + } + + public void setCgeneralhid(String cgeneralhid) { + this.cgeneralhid = cgeneralhid; + } + + public String getCquotecurrency() { + return cquotecurrency; + } + + public void setCquotecurrency(String cquotecurrency) { + this.cquotecurrency = cquotecurrency; + } + + public String getCreceiveareaid() { + return creceiveareaid; + } + + public void setCreceiveareaid(String creceiveareaid) { + this.creceiveareaid = creceiveareaid; + } + + public String getCrowno() { + return crowno; + } + + public void setCrowno(String crowno) { + this.crowno = crowno; + } + + public String getCsourcetype() { + return csourcetype; + } + + public void setCsourcetype(String csourcetype) { + this.csourcetype = csourcetype; + } + + public String getDdeliverdate() { + return ddeliverdate; + } + + public void setDdeliverdate(String ddeliverdate) { + this.ddeliverdate = ddeliverdate; + } + + public String getCsourcebillhid() { + return csourcebillhid; + } + + public void setCsourcebillhid(String csourcebillhid) { + this.csourcebillhid = csourcebillhid; + } + + public String getCfirstbillbid() { + return cfirstbillbid; + } + + public void setCfirstbillbid(String cfirstbillbid) { + this.cfirstbillbid = cfirstbillbid; + } + + public String getCfirstbillhid() { + return cfirstbillhid; + } + + public void setCfirstbillhid(String cfirstbillhid) { + this.cfirstbillhid = cfirstbillhid; + } + + public String getCgeneralbid() { + return cgeneralbid; + } + + public void setCgeneralbid(String cgeneralbid) { + this.cgeneralbid = cgeneralbid; + } + + public String getCsourcebillbid() { + return csourcebillbid; + } + + public void setCsourcebillbid(String csourcebillbid) { + this.csourcebillbid = csourcebillbid; + } + + public double getNquotentprice() { + return nquotentprice; + } + + public void setNquotentprice(double nquotentprice) { + this.nquotentprice = nquotentprice; + } + + public String getCfirsttype() { + return cfirsttype; + } + + public void setCfirsttype(String cfirsttype) { + this.cfirsttype = cfirsttype; + } + + public String getCreceieveid() { + return creceieveid; + } + + public void setCreceieveid(String creceieveid) { + this.creceieveid = creceieveid; + } + + public String getCinventoryid() { + return cinventoryid; + } + + public void setCinventoryid(String cinventoryid) { + this.cinventoryid = cinventoryid; + } + + public String getInventory_code() { + return inventory_code; + } + + public void setInventory_code(String inventory_code) { + this.inventory_code = inventory_code; + } + + public String getInventory_name() { + return inventory_name; + } + + public void setInventory_name(String inventory_name) { + this.inventory_name = inventory_name; + } + + public String getInvspec() { + return invspec; + } + + public void setInvspec(String invspec) { + this.invspec = invspec; + } + + public String getInvtype() { + return invtype; + } + + public void setInvtype(String invtype) { + this.invtype = invtype; + } + + public int getNquoteprice() { + return nquoteprice; + } + + public void setNquoteprice(int nquoteprice) { + this.nquoteprice = nquoteprice; + } + + public double getNsaleprice() { + return nsaleprice; + } + + public void setNsaleprice(double nsaleprice) { + this.nsaleprice = nsaleprice; + } + + public int getNtaxprice() { + return ntaxprice; + } + + public void setNtaxprice(int ntaxprice) { + this.ntaxprice = ntaxprice; + } + + public String getPk_measdoc() { + return pk_measdoc; + } + + public void setPk_measdoc(String pk_measdoc) { + this.pk_measdoc = pk_measdoc; + } + + public boolean isBonroadflag() { + return bonroadflag; + } + + public void setBonroadflag(boolean bonroadflag) { + this.bonroadflag = bonroadflag; + } + + public boolean isFlargess() { + return flargess; + } + + public void setFlargess(boolean flargess) { + this.flargess = flargess; + } + + public int getNshouldoutnum() { + return nshouldoutnum; + } + + public void setNshouldoutnum(int nshouldoutnum) { + this.nshouldoutnum = nshouldoutnum; + } + + public String getVreceiveaddress() { + return vreceiveaddress; + } + + public void setVreceiveaddress(String vreceiveaddress) { + this.vreceiveaddress = vreceiveaddress; + } + + public String getTs() { + return ts; + } + + public void setTs(String ts) { + this.ts = ts; + } + + public String getCquoteunitid() { + return cquoteunitid; + } + + public void setCquoteunitid(String cquoteunitid) { + this.cquoteunitid = cquoteunitid; + } + + public String getVbatchcode() { + return vbatchcode; + } + + public void setVbatchcode(String vbatchcode) { + this.vbatchcode = vbatchcode; + } + + public boolean isBsafeprice() { + return bsafeprice; + } + + public void setBsafeprice(boolean bsafeprice) { + this.bsafeprice = bsafeprice; + } + + public boolean isBreturnprofit() { + return breturnprofit; + } + + public void setBreturnprofit(boolean breturnprofit) { + this.breturnprofit = breturnprofit; + } + + public int getNoutnum() { + return noutnum; + } + + public void setNoutnum(int noutnum) { + this.noutnum = noutnum; + } + + public boolean isBsourcelargess() { + return bsourcelargess; + } + + public void setBsourcelargess(boolean bsourcelargess) { + this.bsourcelargess = bsourcelargess; + } + + public boolean isBsupplyflag() { + return bsupplyflag; + } + + public void setBsupplyflag(boolean bsupplyflag) { + this.bsupplyflag = bsupplyflag; + } + + public String getCbodybilltypecode() { + return cbodybilltypecode; + } + + public void setCbodybilltypecode(String cbodybilltypecode) { + this.cbodybilltypecode = cbodybilltypecode; + } + + public String getCbodywarehouseid() { + return cbodywarehouseid; + } + + public void setCbodywarehouseid(String cbodywarehouseid) { + this.cbodywarehouseid = cbodywarehouseid; + } + + public String getBodywarehouse_code() { + return bodywarehouse_code; + } + + public void setBodywarehouse_code(String bodywarehouse_code) { + this.bodywarehouse_code = bodywarehouse_code; + } + + public String getBodywarehouse_name() { + return bodywarehouse_name; + } + + public void setBodywarehouse_name(String bodywarehouse_name) { + this.bodywarehouse_name = bodywarehouse_name; + } + + public String getDbizdate() { + return dbizdate; + } + + public void setDbizdate(String dbizdate) { + this.dbizdate = dbizdate; + } + + public boolean isFassertcardflag() { + return fassertcardflag; + } + + public void setFassertcardflag(boolean fassertcardflag) { + this.fassertcardflag = fassertcardflag; + } + + public boolean isBtoouttoiaflag() { + return btoouttoiaflag; + } + + public void setBtoouttoiaflag(boolean btoouttoiaflag) { + this.btoouttoiaflag = btoouttoiaflag; + } + + public boolean isBtou8rm() { + return btou8rm; + } + + public void setBtou8rm(boolean btou8rm) { + this.btou8rm = btou8rm; + } + + public boolean isBtoinzgflag() { + return btoinzgflag; + } + + public void setBtoinzgflag(boolean btoinzgflag) { + this.btoinzgflag = btoinzgflag; + } + } +} diff --git a/src/main/java/com/glxp/mipsdl/res/udiwms/UdiwmsBusTypeResponse.java b/src/main/java/com/glxp/mipsdl/res/udiwms/UdiwmsBusTypeResponse.java new file mode 100644 index 0000000..4797412 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/res/udiwms/UdiwmsBusTypeResponse.java @@ -0,0 +1,14 @@ +package com.glxp.mipsdl.res.udiwms; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import lombok.Data; + +@Data +public class UdiwmsBusTypeResponse { + + @JsonIgnore + private String id; + private String code; + private String name; + private String remark; +} diff --git a/src/main/java/com/glxp/mipsdl/res/udiwms/UdiwmsInvProductResponse.java b/src/main/java/com/glxp/mipsdl/res/udiwms/UdiwmsInvProductResponse.java new file mode 100644 index 0000000..cae4b31 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/res/udiwms/UdiwmsInvProductResponse.java @@ -0,0 +1,31 @@ +package com.glxp.mipsdl.res.udiwms; + +import lombok.Data; + +@Data +public class UdiwmsInvProductResponse { + + private String code; + private String name; + private String spec; + private String batchNo;//批次号 + private String manufacturingDate; + private String expirationDate; + private String warehouseCode;//货位号 + private String warehouseName;//货位名称 + private String registerCertNo; + private Integer count;//数量 + private String inventoryCode;//仓库号 + private String inventoryName;//仓库名称 + private String productName;//产品名称 + private String productDate;//生产日期 + private String expireDate;//失效日期 + private String productId;//产品ID + private String standard; //规格型号 + private String registerNo; //注册证号 + private String manufactory; //生产厂家 + private String supId; //配送企业ID + private String supName; //配送企业名称 + + +} diff --git a/src/main/java/com/glxp/mipsdl/res/udiwms/UdiwmsOnhandResponse.java b/src/main/java/com/glxp/mipsdl/res/udiwms/UdiwmsOnhandResponse.java new file mode 100644 index 0000000..88f9df3 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/res/udiwms/UdiwmsOnhandResponse.java @@ -0,0 +1,18 @@ +package com.glxp.mipsdl.res.udiwms; + +import lombok.Data; + +@Data +public class UdiwmsOnhandResponse { + + private String inventoryCode; + private String inventoryName; + private String spec; + private int count; + private String batchNo; + private String warehouseName; + private String warehouseCode; + private String registerCertNo; + + +} diff --git a/src/main/java/com/glxp/mipsdl/res/udiwms/UdiwmsOrderResponse.java b/src/main/java/com/glxp/mipsdl/res/udiwms/UdiwmsOrderResponse.java new file mode 100644 index 0000000..966ea21 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/res/udiwms/UdiwmsOrderResponse.java @@ -0,0 +1,439 @@ +package com.glxp.mipsdl.res.udiwms; + +import com.fasterxml.jackson.annotation.JsonIgnore; + +import java.math.BigDecimal; +import java.util.List; + +public class UdiwmsOrderResponse { + + private String billNo; + private String billdate; + private String corpId; + private String corpName; + private String billType; //单据类型 + + @JsonIgnore + private String signFlag; + @JsonIgnore + private String originType; + private List subErpOrders; + + private String startDate; //起始时间 + private String endDate; //结束时间 + private String billFlag; //单据状态 + private String createUser; //创建人 + private String reviewUser; //审核人 + private String address; //地址 + private String linkMan; //联系人 + private String linkTel; //电话 + private String remark; //| 备注 + + private Integer id; + private String locStorageCode; + private String invWarehouseCode;//当前分库 + private String fromSubInvCode; //往来分库 + + private String thirdSysFk; + + + //增加字段 + private String remark1; //备注1 + private String remark2; //备注2 + private String remark3; //备注3 + + private String billTypeName; + + + public List getSubErpOrders() { + return subErpOrders; + } + + public void setSubErpOrders(List subErpOrders) { + this.subErpOrders = subErpOrders; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getLocStorageCode() { + return locStorageCode; + } + + public void setLocStorageCode(String locStorageCode) { + this.locStorageCode = locStorageCode; + } + + public String getInvWarehouseCode() { + return invWarehouseCode; + } + + public void setInvWarehouseCode(String invWarehouseCode) { + this.invWarehouseCode = invWarehouseCode; + } + + public String getFromSubInvCode() { + return fromSubInvCode; + } + + public void setFromSubInvCode(String fromSubInvCode) { + this.fromSubInvCode = fromSubInvCode; + } + + public String getThirdSysFk() { + return thirdSysFk; + } + + public void setThirdSysFk(String thirdSysFk) { + this.thirdSysFk = thirdSysFk; + } + + public String getRemark1() { + return remark1; + } + + public void setRemark1(String remark1) { + this.remark1 = remark1; + } + + public String getRemark2() { + return remark2; + } + + public void setRemark2(String remark2) { + this.remark2 = remark2; + } + + public String getRemark3() { + return remark3; + } + + public void setRemark3(String remark3) { + this.remark3 = remark3; + } + + public String getBillTypeName() { + return billTypeName; + } + + public void setBillTypeName(String billTypeName) { + this.billTypeName = billTypeName; + } + + public String getSignFlag() { + return signFlag; + } + + public String getStartDate() { + return startDate; + } + + public void setStartDate(String startDate) { + this.startDate = startDate; + } + + public String getEndDate() { + return endDate; + } + + public void setEndDate(String endDate) { + this.endDate = endDate; + } + + public String getBillFlag() { + return billFlag; + } + + public void setBillFlag(String billFlag) { + this.billFlag = billFlag; + } + + public String getCreateUser() { + return createUser; + } + + public void setCreateUser(String createUser) { + this.createUser = createUser; + } + + public String getReviewUser() { + return reviewUser; + } + + public void setReviewUser(String reviewUser) { + this.reviewUser = reviewUser; + } + + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address; + } + + public String getLinkMan() { + return linkMan; + } + + public void setLinkMan(String linkMan) { + this.linkMan = linkMan; + } + + public String getLinkTel() { + return linkTel; + } + + public void setLinkTel(String linkTel) { + this.linkTel = linkTel; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + + public String getBillNo() { + return billNo; + } + + public void setBillNo(String billNo) { + this.billNo = billNo; + } + + public String getBilldate() { + return billdate; + } + + public void setBilldate(String billdate) { + this.billdate = billdate; + } + + public String getCorpId() { + return corpId; + } + + public void setCorpId(String corpId) { + this.corpId = corpId; + } + + public String getCorpName() { + return corpName; + } + + public void setCorpName(String corpName) { + this.corpName = corpName; + } + + public String getBillType() { + return billType; + } + + public void setBillType(String billType) { + this.billType = billType; + } + + public String isSignFlag() { + return signFlag; + } + + public void setSignFlag(String signFlag) { + this.signFlag = signFlag; + } + + + public String getOriginType() { + return originType; + } + + public void setOriginType(String originType) { + this.originType = originType; + } + + public static class SubErpOrder { + private String productId; //产品编码 + private String productName; + private String spec; + private String batchNo;//批次号 + private String expireDate;//失效日期 + private String productDate; //生产日期 + private int count; //账面数量 + private int reCount; //实际数量 + + private String detailId; //明细ID + private String corpName; //往来单位 + private BigDecimal price; //单价 + private String remark; + private String remark1; //备注1/规格型号ID + private String remark2; //备注2/型号 + private String remark3; //备注3/规格 + + + private String orderIdFk; + private String thirdSysFk; + private String sweepCount; + private String relId; //基础信息关联表主键 + + + public String getOrderIdFk() { + return orderIdFk; + } + + public void setOrderIdFk(String orderIdFk) { + this.orderIdFk = orderIdFk; + } + + public String getThirdSysFk() { + return thirdSysFk; + } + + public void setThirdSysFk(String thirdSysFk) { + this.thirdSysFk = thirdSysFk; + } + + public String getSweepCount() { + return sweepCount; + } + + public void setSweepCount(String sweepCount) { + this.sweepCount = sweepCount; + } + + public String getRelId() { + return relId; + } + + public void setRelId(String relId) { + this.relId = relId; + } + + public String getDetailId() { + return detailId; + } + + public void setDetailId(String detailId) { + this.detailId = detailId; + } + + public String getCorpName() { + return corpName; + } + + public void setCorpName(String corpName) { + this.corpName = corpName; + } + + public BigDecimal getPrice() { + return price; + } + + public void setPrice(BigDecimal price) { + this.price = price; + } + + public String getProductId() { + return productId; + } + + public void setProductId(String productId) { + this.productId = productId; + } + + public String getProductName() { + return productName; + } + + public void setProductName(String productName) { + this.productName = productName; + } + + public String getSpec() { + return spec; + } + + public void setSpec(String spec) { + this.spec = spec; + } + + public String getBatchNo() { + return batchNo; + } + + public void setBatchNo(String batchNo) { + this.batchNo = batchNo; + } + + public String getExpireDate() { + return expireDate; + } + + public void setExpireDate(String expireDate) { + this.expireDate = expireDate; + } + + public String getProductDate() { + return productDate; + } + + public void setProductDate(String productDate) { + this.productDate = productDate; + } + + public int getCount() { + return count; + } + + public void setCount(int count) { + this.count = count; + } + + public int getReCount() { + return reCount; + } + + public void setReCount(int reCount) { + this.reCount = reCount; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + + public String getRemark1() { + return remark1; + } + + public void setRemark1(String remark1) { + this.remark1 = remark1; + } + + public String getRemark2() { + return remark2; + } + + public void setRemark2(String remark2) { + this.remark2 = remark2; + } + + public String getRemark3() { + return remark3; + } + + public void setRemark3(String remark3) { + this.remark3 = remark3; + } + } + +} diff --git a/src/main/java/com/glxp/mipsdl/res/udiwms/UdiwmsProductInfoResponse.java b/src/main/java/com/glxp/mipsdl/res/udiwms/UdiwmsProductInfoResponse.java new file mode 100644 index 0000000..4d45f2e --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/res/udiwms/UdiwmsProductInfoResponse.java @@ -0,0 +1,89 @@ +package com.glxp.mipsdl.res.udiwms; + +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.util.Date; + +@Data +@NoArgsConstructor +@AllArgsConstructor +@Builder +public class UdiwmsProductInfoResponse { + + + private String code; //产品编码 + private String name; //通用名称 + private String measname; //计量单位 + private String spec; //规格型号 + private String registerNo; //注册证号 + private String manufactory; //生产厂家 + private String supName; //配送企业 + + private Date updateTime; //更新时间 + private boolean isChecked; // + + //产品类别 + private String cplb; + + //分类编码 + private String flbm; + + //器械类别 + private String qxlb; + + //医保编码 + private String ybbm; + + //商品条码 + private String sptm; + + //注册人社会信用号 + private String tyshxydm; + + //注册证 备案证号 + private String zczbhhzbapzbh; + + //注册/备案人 + private String ylqxzcrbarmc; + + //注册/备案人英文 + private String ylqxzcrbarywmc; + + //产品描述 + private String cpms; + + //型号 + private String model; + + //型号 + private String standard; + + //商品名称 + private String spmc; + + //其他编码 + private String qtbm; + + //注册证有效期至 + private String zczyxqz; + + //备注 + private String remark; + //备注1 + private String remark1; + //备注2 + private String remark2; + //备注3 + private String remark3; + + //阳光采购平台 耗材目录规格id + private String productSpecId; + + private String hospHisCode; + private String price; + + +} diff --git a/src/main/java/com/glxp/mipsdl/res/udiwms/UdiwmsUnitResponse.java b/src/main/java/com/glxp/mipsdl/res/udiwms/UdiwmsUnitResponse.java new file mode 100644 index 0000000..2077576 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/res/udiwms/UdiwmsUnitResponse.java @@ -0,0 +1,16 @@ +package com.glxp.mipsdl.res.udiwms; + +import lombok.Data; + +@Data +public class UdiwmsUnitResponse { + + private String unitId; //必填 往来单位ID + private String name; //必填 往来单位名称 + private String spell; //往来单位简称 + private String addr; //地址 + private String creditNo; //社会信用号 + private String contact; //联系人 + private String mobile; //联系电话 + +} diff --git a/src/main/java/com/glxp/mipsdl/res/udiwms/UdiwmsWarehouseDetail.java b/src/main/java/com/glxp/mipsdl/res/udiwms/UdiwmsWarehouseDetail.java new file mode 100644 index 0000000..d8155af --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/res/udiwms/UdiwmsWarehouseDetail.java @@ -0,0 +1,34 @@ +package com.glxp.mipsdl.res.udiwms; + +import lombok.Data; + +import java.util.List; + +@Data +public class UdiwmsWarehouseDetail { + + //货位号 + private String code; + + //货位名称 + private String name; + + //备注 + private String remark; + + private List subWarehouses; + + @Data + public static class SubWarehouse { + //货位号 + private String code; + + //货位名称 + private String name; + + //备注 + private String remark; + + } + +} diff --git a/src/main/java/com/glxp/mipsdl/res/udiwms/UdiwmsWarehouseResponse.java b/src/main/java/com/glxp/mipsdl/res/udiwms/UdiwmsWarehouseResponse.java new file mode 100644 index 0000000..382f394 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/res/udiwms/UdiwmsWarehouseResponse.java @@ -0,0 +1,17 @@ +package com.glxp.mipsdl.res.udiwms; + +import lombok.Data; + +import java.util.List; + +/** + * 仓库货位号返回信息 + */ +@Data +public class UdiwmsWarehouseResponse extends UdiwmsWarehouseDetail{ + + private List details; + +} + + diff --git a/src/main/java/com/glxp/mipsdl/service/auth/AuthWarehouseService.java b/src/main/java/com/glxp/mipsdl/service/auth/AuthWarehouseService.java new file mode 100644 index 0000000..9662639 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/service/auth/AuthWarehouseService.java @@ -0,0 +1,34 @@ +package com.glxp.mipsdl.service.auth; + +import cn.hutool.core.util.ReflectUtil; +import com.glxp.mipsdl.config.ThirdSysConfig; +import com.glxp.mipsdl.entity.auth.AuthWarehouseEntity; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.lang.reflect.Field; + +/** + * 仓库相关Service + */ +@Service +public class AuthWarehouseService { + + @Resource + private ThirdSysConfig thirdSysConfig; + + /** + * 获取当前医院对应的第三方系统的仓库ID + * + * @param authWarehouseEntity + * @return + */ + public String getThirdInvCode(AuthWarehouseEntity authWarehouseEntity) { + //通过反射,获取到当前第三方系统ID对应的第三方系统仓库编码 + Field field = ReflectUtil.getField(AuthWarehouseEntity.class, thirdSysConfig.getThirdId()); + String thirdInvCode = String.valueOf(ReflectUtil.getFieldValue(authWarehouseEntity, field)); + return thirdInvCode; + } + + +} diff --git a/src/main/java/com/glxp/mipsdl/service/file/UdiInfoUploadService.java b/src/main/java/com/glxp/mipsdl/service/file/UdiInfoUploadService.java new file mode 100644 index 0000000..11fee76 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/service/file/UdiInfoUploadService.java @@ -0,0 +1,54 @@ +package com.glxp.mipsdl.service.file; + +import com.glxp.mipsdl.client.ClientProcessor; +import com.glxp.mipsdl.req.post.PostFileThrOrderRequest; +import com.glxp.mipsdl.req.post.PostThrCorpRequest; +import com.glxp.mipsdl.req.post.PostThrInvProductsRequest; +import com.glxp.mipsdl.req.post.PostThrProductsRequest; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; + +/** + * 回传解析文件数据到UDI管理系统 + */ +@Slf4j +@Service +public class UdiInfoUploadService { + + /** + * 回传产品信息 + * + * @param postThrProductsRequest + */ + public void postProducts(PostThrProductsRequest postThrProductsRequest) { + ClientProcessor.getHttpClient().postProducts(postThrProductsRequest); + } + + /** + * 回传往来单位信息 + * + * @param postThrCorpRequest + */ + public void postCorps(PostThrCorpRequest postThrCorpRequest) { + ClientProcessor.getHttpClient().postCorps(postThrCorpRequest); + } + + /** + * 回传库存产品信息 + * + * @param postThrInvProductsRequest + */ + public void postInvPi(PostThrInvProductsRequest postThrInvProductsRequest) { + ClientProcessor.getHttpClient().postInvProducts(postThrInvProductsRequest); + } + + /** + * 回传单据信息 + * + * @param postFileThrOrderRequest + */ + public void postOrders(PostFileThrOrderRequest postFileThrOrderRequest) { + ClientProcessor.getHttpClient().postOrderDetail(postFileThrOrderRequest); + } + +} diff --git a/src/main/java/com/glxp/mipsdl/service/system/SysErpLogService.java b/src/main/java/com/glxp/mipsdl/service/system/SysErpLogService.java new file mode 100644 index 0000000..1bc6208 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/service/system/SysErpLogService.java @@ -0,0 +1,78 @@ +package com.glxp.mipsdl.service.system; + +import cn.hutool.core.thread.ThreadUtil; +import com.glxp.mipsdl.constant.ConstantType; +import com.glxp.mipsdl.dao.system.SysErpLogDao; +import com.glxp.mipsdl.entity.system.SysErpLogEntity; +import com.glxp.mipsdl.util.ExecutorUtil; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import javax.annotation.Resource; +import java.util.Date; + +/** + * 日志操作Service + */ +@Slf4j +@Service +@Transactional(rollbackFor = Exception.class) +public class SysErpLogService { + + @Resource + private ExecutorUtil executorUtil; + @Resource + private SysErpLogDao sysErpLogDao; + + /** + * 添加接口日志 + * + * @param createTime + * @param uri + * @param method + * @param params + * @param result + * @param time + */ + public void addInterfaceErpLog(Date createTime, String uri, String method, String params, String result, long time) { + executorUtil.getLogExecutor().submit(ThreadUtil.newThread(() -> { + SysErpLogEntity logEntity = new SysErpLogEntity(); + logEntity.setUrl(uri); + logEntity.setName(method); + logEntity.setParams(params); + logEntity.setResult(result); + logEntity.setCreateTime(createTime); + logEntity.setType(ConstantType.LOG_TYPE_INTERFACE); + logEntity.setStatus(ConstantType.LOG_STATUS_SUCCESS); + logEntity.setTime(time); + sysErpLogDao.insert(logEntity); + }, "addInterfaceErpLog")); + } + + /** + * 添加请求第三方接口日志 + * + * @param createTime + * @param uri + * @param method + * @param params + * @param result + * @param time + */ + public void addThirdErpLog(Date createTime, String uri, String method, String params, String result, long time, Integer status) { + executorUtil.getLogExecutor().submit(ThreadUtil.newThread(() -> { + SysErpLogEntity logEntity = new SysErpLogEntity(); + logEntity.setUrl(uri); + logEntity.setName(method); + logEntity.setParams(params); + logEntity.setResult(result); + logEntity.setCreateTime(createTime); + logEntity.setType(ConstantType.LOG_TYPE_THIRD); + logEntity.setStatus(status); + logEntity.setTime(time); + sysErpLogDao.insert(logEntity); + }, "addThirdErpLog")); + } + +} diff --git a/src/main/java/com/glxp/mipsdl/service/thrsys/ThrCorpService.java b/src/main/java/com/glxp/mipsdl/service/thrsys/ThrCorpService.java new file mode 100644 index 0000000..18f61fe --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/service/thrsys/ThrCorpService.java @@ -0,0 +1,55 @@ +package com.glxp.mipsdl.service.thrsys; + +import cn.hutool.core.util.ReflectUtil; +import cn.hutool.core.util.StrUtil; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.glxp.mipsdl.config.ThirdSysConfig; +import com.glxp.mipsdl.dao.basic.BasicCorpDao; +import com.glxp.mipsdl.entity.basic.BasicCorpEntity; +import com.glxp.mipsdl.entity.thrsys.ThrCorpEntity; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; + +/** + * 第三方系统往来单位Service + */ +@Slf4j +@Service +public class ThrCorpService { + + @Resource + private ThirdSysConfig thirdSysConfig; + @Resource + private BasicCorpDao basicCorpDao; + + /** + * 查询第三方系统的往来单位 + * + * @param corpId + * @return + */ + public ThrCorpEntity getThrCorp(String corpId) { + if (StrUtil.isNotBlank(corpId)) { + ThrCorpEntity thrCorpEntity = new ThrCorpEntity(); + BasicCorpEntity basicCorpEntity = basicCorpDao.selectOne(new QueryWrapper() + .eq(BasicCorpEntity.COL_ERPID, corpId)); + try { + //获取本服务配置的thirdId对应的第三方系统的往来单位名称和编码 + String thirdCorpId = (String) ReflectUtil.getFieldValue(basicCorpEntity, basicCorpEntity.getClass().getField(thirdSysConfig.getThirdId())); + String thirdCorpName = (String) ReflectUtil.getFieldValue(basicCorpEntity, basicCorpEntity.getClass().getField(thirdSysConfig.getThirdName())); + thrCorpEntity.setUnitId(thirdCorpId); + thrCorpEntity.setName(thirdCorpName); + log.info("获取第三方系统往来单位成功,往来单位编码:{},第三方系统往来单位编码:{},名称:{}", corpId, thirdCorpId, thirdCorpName); + return thrCorpEntity; + } catch (Exception e) { + log.error("查询第三方系统往来单位异常,往来单位编码:{}, 异常信息:{}", corpId, e); + } + } + log.info("查询第三方往来单位失败,往来单位编码参数为空"); + return null; + } + + +} diff --git a/src/main/java/com/glxp/mipsdl/service/thrsys/ThrProductService.java b/src/main/java/com/glxp/mipsdl/service/thrsys/ThrProductService.java new file mode 100644 index 0000000..1da275d --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/service/thrsys/ThrProductService.java @@ -0,0 +1,60 @@ +package com.glxp.mipsdl.service.thrsys; + +import cn.hutool.core.util.ReflectUtil; +import cn.hutool.core.util.StrUtil; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.glxp.mipsdl.config.ThirdSysConfig; +import com.glxp.mipsdl.dao.basic.BasicUdirelDao; +import com.glxp.mipsdl.dao.thrsys.ThrProductsDao; +import com.glxp.mipsdl.entity.basic.BasicUdirelEntity; +import com.glxp.mipsdl.entity.thrsys.ThrProductsEntity; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; + +/** + * 第三方系统产品Service + */ +@Slf4j +@Service +public class ThrProductService { + + @Resource + private ThirdSysConfig thirdSysConfig; + @Resource + private BasicUdirelDao basicUdirelDao; + @Resource + private ThrProductsDao thrProductsDao; + + /** + * 查询第三方系统对应的产品信息 + * + * @param relId + * @return + */ + private ThrProductsEntity getThrProduct(String relId) { + if (StrUtil.isNotBlank(relId)) { + BasicUdirelEntity basicUdirelEntity = basicUdirelDao.selectOne(new QueryWrapper().eq("id", relId)); + if (null != basicUdirelEntity) { + try { + String code = (String) ReflectUtil.getFieldValue(basicUdirelEntity, basicUdirelEntity.getClass().getField(thirdSysConfig.getThirdId())); + if (StrUtil.isBlank(code)) { + log.error("第三方产品信息未关联,查询失败,产品编码:{}", relId); + } else { + ThrProductsEntity thrProductsEntity = thrProductsDao.selectOne(new QueryWrapper().eq("code", code)); + log.info("查询第三方系统产品信息成功,产品编码:{},产品名称:{},UDI管理系统产品编码:{}", thrProductsEntity.getCode(), thrProductsEntity.getName(), relId); + return thrProductsEntity; + } + } catch (Exception e) { + log.error("未查询到产品编码对应的产品信息,产品编码:{}", relId); + } + } + log.info("未查询到对应的第三方系统产品信息,产品编码:{}", relId); + } + log.info("查询第三方产品信息失败,产品编码参数为空"); + return null; + } + + +} diff --git a/src/main/java/com/glxp/mipsdl/service/thrsys/ThrSysBusTypeService.java b/src/main/java/com/glxp/mipsdl/service/thrsys/ThrSysBusTypeService.java new file mode 100644 index 0000000..e711bba --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/service/thrsys/ThrSysBusTypeService.java @@ -0,0 +1,70 @@ +package com.glxp.mipsdl.service.thrsys; + +import cn.hutool.core.util.StrUtil; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.glxp.mipsdl.config.ThirdSysConfig; +import com.glxp.mipsdl.dao.thrsys.ThrSystemBusApiDao; +import com.glxp.mipsdl.entity.thrsys.ThrSystemBusApiEntity; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; + +@Slf4j +@Service +public class ThrSysBusTypeService { + + @Resource + private ThrSystemBusApiDao thrSystemBusApiDao; + @Resource + private ThirdSysConfig thirdSysConfig; + + /** + * 查询对应的第三方单据类型的编码 + * + * @param busType + * @return + */ + public String getThrBusTypeCode(String busType) { + if (StrUtil.isNotBlank(busType)) { + QueryWrapper wrapper = new QueryWrapper<>(); + wrapper.select(ThrSystemBusApiEntity.COL_THIRDBUYCODE) + .eq(ThrSystemBusApiEntity.COL_THIRDSYS, thirdSysConfig.getThirdSysConfig().getThirdId()) + .eq(ThrSystemBusApiEntity.COL_CODE, busType); + ThrSystemBusApiEntity thrSystemBusApiEntity = thrSystemBusApiDao.selectOne(wrapper); + if (null != thrSystemBusApiEntity) { + log.info("单据类型转换成功,原类型:{},第三方单据类型:{}", busType, thrSystemBusApiEntity.getThirdBuyCode()); + return thrSystemBusApiEntity.getThirdBuyCode(); + } + log.info("查询第三方单据类型为空,原类型:{}", busType); + return null; + } + log.info("查询第三方单据类型编码失败,单据类型编码参数为空"); + return null; + } + + /** + * 查询对应的第三方单据类型编码 + * + * @param busType + * @return + */ + public ThrSystemBusApiEntity getThrBusType(String busType) { + if (StrUtil.isNotBlank(busType)) { + QueryWrapper wrapper = new QueryWrapper<>(); + wrapper.eq(ThrSystemBusApiEntity.COL_THIRDSYS, thirdSysConfig.getThirdSysConfig().getThirdId()) + .eq(ThrSystemBusApiEntity.COL_CODE, busType); + ThrSystemBusApiEntity thrSystemBusApiEntity = thrSystemBusApiDao.selectOne(wrapper); + if (null != thrSystemBusApiEntity) { + log.info("单据类型转换成功,原类型:{},第三方单据类型:{}", busType, thrSystemBusApiEntity.getThirdBuyCode()); + return thrSystemBusApiEntity; + } + log.info("查询第三方单据类型为空,原类型:{}", busType); + return null; + } + log.info("查询第三方单据类型编码失败,单据类型编码参数为空"); + return null; + } + + +} diff --git a/src/main/java/com/glxp/mipsdl/service/thrsys/ThrSystemDetailService.java b/src/main/java/com/glxp/mipsdl/service/thrsys/ThrSystemDetailService.java new file mode 100644 index 0000000..075e058 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/service/thrsys/ThrSystemDetailService.java @@ -0,0 +1,33 @@ +package com.glxp.mipsdl.service.thrsys; + +import com.glxp.mipsdl.config.ThirdSysConfig; +import com.glxp.mipsdl.dao.thrsys.ThrSystemDetailDao; +import com.glxp.mipsdl.entity.thrsys.ThrSystemDetailEntity; +import com.glxp.mipsdl.util.DictUtl; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; + +/** + * 第三方系统接口地址Service + */ +@Service +public class ThrSystemDetailService { + + @Resource + private ThirdSysConfig thirdSysConfig; + @Resource + private ThrSystemDetailDao thrSystemDetailDao; + + /** + * 查询接口url + * + * @param urlName url名称 + * @return + */ + public String getUrl(String urlName) { + ThrSystemDetailEntity thrSystemDetailEntity = thrSystemDetailDao.selectByKey(urlName, DictUtl.CURRENT_HOSP_CODE); + return thirdSysConfig.getThirdSysConfig().getThirdSysUrl() + thrSystemDetailEntity.getValue(); + } + +} diff --git a/src/main/java/com/glxp/mipsdl/util/DateUtil.java b/src/main/java/com/glxp/mipsdl/util/DateUtil.java new file mode 100644 index 0000000..c04f50c --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/util/DateUtil.java @@ -0,0 +1,467 @@ +package com.glxp.mipsdl.util; + + +import cn.hutool.core.date.format.FastDateFormat; +import com.baomidou.mybatisplus.core.toolkit.StringUtils; +import lombok.extern.slf4j.Slf4j; + +import java.lang.management.ManagementFactory; +import java.text.DateFormat; +import java.text.SimpleDateFormat; +import java.util.*; + +@Slf4j +public class DateUtil { + + private static String[] parsePatterns = { + "yyyy-MM-dd", "yyyy-MM-dd HH:mm:ss", "yyyy-MM-dd HH:mm", "yyyy-MM-dd HH", "yyyy-MM", + "yyyy/MM/dd", "yyyy/MM/dd HH:mm:ss", "yyyy/MM/dd HH:mm", "yyyy/MM/dd HH", "yyyy/MM", + "yyyy.MM.dd", "yyyy.MM.dd HH:mm:ss", "yyyy.MM.dd HH:mm", "yyyy.MM.dd HH", "yyyy.MM", + "yyyy年MM月dd日", "yyyy年MM月dd日 HH时mm分ss秒", "yyyy年MM月dd日 HH时mm分", "yyyy年MM月dd日 HH时", "yyyy年MM月", + "yyyy"}; + + /** + * 得到日期字符串 ,转换格式(yyyy-MM-dd) + */ + public static String formatDate(Date date) { + return formatDate(date, "yyyy-MM-dd"); + } + + /** + * 得到日期字符串 默认格式(yyyy-MM-dd) pattern可以为:"yyyy-MM-dd" "HH:mm:ss" "E" + */ + public static String formatDate(long dateTime, String pattern) { + return formatDate(new Date(dateTime), pattern); + } + + /** + * 得到日期字符串 默认格式(yyyy-MM-dd) pattern可以为:"yyyy-MM-dd" "HH:mm:ss" "E" + */ + public static String formatDate(Date date, String pattern) { + String formatDate = null; + if (date != null) { +// if (StringUtils.isNotBlank(pattern)) { +// formatDate = DateFormatUtils.format(date, pattern); +// } else { +// formatDate = DateFormatUtils.format(date, "yyyy-MM-dd"); +// } + if (StringUtils.isBlank(pattern)) { + pattern = "yyyy-MM-dd"; + } + formatDate = FastDateFormat.getInstance(pattern).format(date); + } + return formatDate; + } + + /** + * 得到日期时间字符串,转换格式(yyyy-MM-dd HH:mm:ss) + */ + public static String formatDateTime(Date date) { + Date currentTime = new Date(); + SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + String dateString = formatter.format(currentTime); + return dateString; + } + + /** + * 得到当前日期字符串 格式(yyyy-MM-dd) + */ + public static String getDate() { + return getDate("yyyy-MM-dd"); + } + + /** + * 得到当前日期字符串 格式(yyyy-MM-dd) pattern可以为:"yyyy-MM-dd" "HH:mm:ss" "E" + */ + public static String getDate(String pattern) { +// return DateFormatUtils.format(new Date(), pattern); + return FastDateFormat.getInstance(pattern).format(new Date()); + } + + /** + * 得到当前日期前后多少天,月,年的日期字符串 + * + * @param pattern 格式(yyyy-MM-dd) pattern可以为:"yyyy-MM-dd" "HH:mm:ss" "E" + * @param amont 数量,前为负数,后为正数 + * @param type 类型,可参考Calendar的常量(如:Calendar.HOUR、Calendar.MINUTE、Calendar.SECOND) + * @return + */ + public static String getDate(String pattern, int amont, int type) { + Calendar calendar = Calendar.getInstance(); + calendar.setTime(new Date()); + calendar.add(type, amont); +// return DateFormatUtils.format(calendar.getTime(), pattern); + return FastDateFormat.getInstance(pattern).format(calendar.getTime()); + } + + /** + * 得到当前时间字符串 格式(HH:mm:ss) + */ + public static String getTime() { + return formatDate(new Date(), "HH:mm:ss"); + } + + /** + * 得到当前日期和时间字符串 格式(yyyy-MM-dd HH:mm:ss) + */ + public static String getDateTime() { + return formatDate(new Date(), "yyyy-MM-dd HH:mm:ss"); + } + + /** + * 得到当前年份字符串 格式(yyyy) + */ + public static String getYear() { + return formatDate(new Date(), "yyyy"); + } + + /** + * 得到当前月份字符串 格式(MM) + */ + public static String getMonth() { + return formatDate(new Date(), "MM"); + } + + /** + * 得到当天字符串 格式(dd) + */ + public static String getDay() { + return formatDate(new Date(), "dd"); + } + + /** + * 得到当前星期字符串 格式(E)星期几 + */ + public static String getWeek() { + return formatDate(new Date(), "E"); + } + + /** + * 日期型字符串转化为日期 格式 see to DateUtils#parsePatterns + */ + public static Date parseDate(Object str) { + if (str == null) { + return null; + } + try { + return cn.hutool.core.date.DateUtil.parse(str.toString()); + } catch (Exception e) { + log.error("解析时间字符串异常", e); + return null; + } + } + + + /** + * 获取过去的天数 + * + * @param date + * @return + */ + public static long pastDays(Date date) { + long t = System.currentTimeMillis() - date.getTime(); + return t / (24 * 60 * 60 * 1000); + } + + + /** + * 获取过去的小时 + * + * @param date + * @return + */ + public static long pastHour(Date date) { + long t = System.currentTimeMillis() - date.getTime(); + return t / (60 * 60 * 1000); + } + + /** + * 获取过去的分钟 + * + * @param date + * @return + */ + public static long pastMinutes(Date date) { + long t = System.currentTimeMillis() - date.getTime(); + return t / (60 * 1000); + } + + /** + * 获取过去的秒 + * + * @param date + * @return + */ + public static long pastSecond(Date date) { + long t = System.currentTimeMillis() - date.getTime(); + return t / (1000); + } + + /** + * 获取两个日期之间的天数 + * + * @param before + * @param after + * @return + */ + public static double getDistanceOfTwoDate(Date before, Date after) { + long beforeTime = before.getTime(); + long afterTime = after.getTime(); + return (afterTime - beforeTime) / (1000 * 60 * 60 * 24); + } + + /** + * 获取某月有几天 + * + * @param date 日期 + * @return 天数 + */ + public static int getMonthHasDays(Date date) { +// String yyyyMM = new SimpleDateFormat("yyyyMM").format(date); + String yyyyMM = FastDateFormat.getInstance("yyyyMM").format(date); + String year = yyyyMM.substring(0, 4); + String month = yyyyMM.substring(4, 6); + String day31 = ",01,03,05,07,08,10,12,"; + String day30 = "04,06,09,11"; + int day = 0; + if (day31.contains(month)) { + day = 31; + } else if (day30.contains(month)) { + day = 30; + } else { + int y = Integer.parseInt(year); + if ((y % 4 == 0 && (y % 100 != 0)) || y % 400 == 0) { + day = 29; + } else { + day = 28; + } + } + return day; + } + + /** + * 获取日期是当年的第几周 + * + * @param date + * @return + */ + public static int getWeekOfYear(Date date) { + Calendar cal = Calendar.getInstance(); + cal.setTime(date); + return cal.get(Calendar.WEEK_OF_YEAR); + } + + /** + * 获取一天的开始时间(如:2015-11-3 00:00:00.000) + * + * @param date 日期 + * @return + */ + public static Date getOfDayFirst(Date date) { + if (date == null) { + return null; + } + Calendar calendar = Calendar.getInstance(); + calendar.setTime(date); + calendar.set(Calendar.HOUR, 0); + calendar.set(Calendar.MINUTE, 0); + calendar.set(Calendar.SECOND, 0); + calendar.set(Calendar.MILLISECOND, 0); + return calendar.getTime(); + } + + /** + * 获取一天的最后时间(如:2015-11-3 23:59:59.999) + * + * @param date 日期 + * @return + */ + public static Date getOfDayLast(Date date) { + if (date == null) { + return null; + } + Calendar calendar = Calendar.getInstance(); + calendar.setTime(date); + calendar.set(Calendar.HOUR, 23); + calendar.set(Calendar.MINUTE, 59); + calendar.set(Calendar.SECOND, 59); + calendar.set(Calendar.MILLISECOND, 999); + return calendar.getTime(); + } + + /** + * 获取服务器启动时间 + * + * @param + * @return + */ + public static Date getServerStartDate() { + long time = ManagementFactory.getRuntimeMXBean().getStartTime(); + return new Date(time); + } + + public static final int SECONDS_IN_DAY = 60 * 60 * 24; + public static final long MILLIS_IN_DAY = 1000L * SECONDS_IN_DAY; + + public static boolean isSameDayOfMillis(final long ms1, final long ms2) { + final long interval = ms1 - ms2; + return interval < MILLIS_IN_DAY + && interval > -1L * MILLIS_IN_DAY + && toDay(ms1) == toDay(ms2); + } + + private static long toDay(long millis) { + return (millis + TimeZone.getDefault().getOffset(millis)) / MILLIS_IN_DAY; + } + + /** + * 给时间加上几个小时 + * + * @param date 时间 + * @param hour 需要加的时间 + * @return + */ + public static String addDateMinut(Date date, int hour) { + SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + Calendar cal = Calendar.getInstance(); + cal.setTime(date); + cal.add(Calendar.HOUR, hour);// 24小时制 + date = cal.getTime(); + cal = null; + return format.format(date); + } + + /** + * 给时间加上几个小时 + * + * @param date 时间 + * @param hour 需要加的时间 + * @return DATE + */ + public static Date addDate(Date date, int hour) { + SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + Calendar cal = Calendar.getInstance(); + cal.setTime(date); + cal.add(Calendar.HOUR, hour);// 24小时制 + date = cal.getTime(); + cal = null; + return date; + } + + /** + * 日期比较 + * + * @param date1 日期参数1 + * @param date2 日期参数2 + * @return 1 date1>date2;-1 date1 dt2.getTime()) { + return 1; + } else if (dt1.getTime() < dt2.getTime()) { + return -1; + } else { + return 0; + } + } catch (Exception exception) { + exception.printStackTrace(); + } + return 0; + } + + /** + * 获取昨天开始时间和结束时间 + * + * @return + */ + public static Map getYesterdayRange() { + SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd"); + Map condition = new HashMap(); + Calendar calendar = Calendar.getInstance(); + calendar.set(Calendar.MILLISECOND, 0); + calendar.set(Calendar.SECOND, 0); + calendar.set(Calendar.MINUTE, 0); + calendar.set(Calendar.HOUR_OF_DAY, 0); + condition.put("endDate", df.format(calendar.getTime())); + calendar.set(Calendar.HOUR_OF_DAY, -24); + condition.put("startDate", df.format(calendar.getTime())); + return condition; + } + + /** + * 获得近一周的开始时间和结束时间 + * + * @return + */ + public static Map getDaySevenRange() { + SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd"); + Map condition = new HashMap(); + Calendar calendar = Calendar.getInstance(); + calendar.set(calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH), calendar.get(Calendar.DAY_OF_MONTH), 0, 0, 0); + calendar.set(Calendar.HOUR_OF_DAY, 24); + condition.put("endDate", df.format(calendar.getTime())); + calendar.set(Calendar.HOUR_OF_DAY, -168); + condition.put("startDate", df.format(calendar.getTime())); + return condition; + } + + /** + * 获得近一月的开始时间和结束时间 + * + * @return + */ + public static Map getDayTRange() { + SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd"); + Map condition = new HashMap(); + Calendar calendar = Calendar.getInstance(); + calendar.set(calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH), calendar.get(Calendar.DAY_OF_MONTH), 0, 0, 0); + calendar.set(Calendar.HOUR_OF_DAY, 24); + condition.put("endDate", df.format(calendar.getTime())); + calendar.set(Calendar.HOUR_OF_DAY, -720); + condition.put("startDate", df.format(calendar.getTime())); + return condition; + } + + /** + * 获得近一年的开始时间和结束时间 + * + * @return + */ + public static Map getYearTRange() { + SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd"); + Map condition = new HashMap(); + Calendar calendar = Calendar.getInstance(); + calendar.set(calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH), calendar.get(Calendar.DAY_OF_MONTH), 0, 0, 0); + calendar.set(Calendar.HOUR_OF_DAY, 24); + condition.put("endDate", df.format(calendar.getTime())); + calendar.set(Calendar.HOUR_OF_DAY, -8640); + condition.put("startDate", df.format(calendar.getTime())); + return condition; + } + + public static Map getDayRange(int day) { + SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd"); + Map condition = new HashMap(); + Calendar calendar = Calendar.getInstance(); + calendar.set(calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH), calendar.get(Calendar.DAY_OF_MONTH), 0, 0, 0); + calendar.set(Calendar.HOUR_OF_DAY, 24); + condition.put("endDate", df.format(calendar.getTime())); + calendar.set(Calendar.HOUR_OF_DAY, -(24 * day)); + condition.put("startDate", df.format(calendar.getTime())); + return condition; + } + + public static String formatExpireTime(String str) { + try { + Date date = cn.hutool.core.date.DateUtil.parse(str, "yyyyMMdd"); + return formatDate(date, "yyyy-MM-dd"); + } catch (Exception e) { + log.error("解析过期时间异常,时间:{}", str); + } + return str; + } +} \ No newline at end of file diff --git a/src/main/java/com/glxp/mipsdl/util/DictUtl.java b/src/main/java/com/glxp/mipsdl/util/DictUtl.java new file mode 100644 index 0000000..2f6bd74 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/util/DictUtl.java @@ -0,0 +1,42 @@ +package com.glxp.mipsdl.util; + +import java.util.List; +import java.util.Map; + +/** + * 字典工具类 + */ +public class DictUtl { + + /** + * 医院编码 + */ + public static List HOSP_CODE; + + /** + * 医院名称 + */ + public static List HOSP_NAME; + + /** + * 医院编码字典 + */ + public static Map HOSP_DICT; + + /** + * 当前医院编码 + */ + public static String CURRENT_HOSP_CODE; + + + /** + * 获取医院名称 + * + * @param code + * @return + */ + public String getHospName(String code) { + return HOSP_DICT.get(code); + } + +} diff --git a/src/main/java/com/glxp/mipsdl/util/ExcelUtil.java b/src/main/java/com/glxp/mipsdl/util/ExcelUtil.java new file mode 100644 index 0000000..4c88b6b --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/util/ExcelUtil.java @@ -0,0 +1,239 @@ +package com.glxp.mipsdl.util; + +import cn.hutool.core.convert.Convert; +import cn.hutool.core.util.ReflectUtil; +import cn.hutool.core.util.StrUtil; +import com.glxp.mipsdl.annotation.Excel; +import org.apache.poi.hssf.usermodel.HSSFDateUtil; +import org.apache.poi.ss.usermodel.DateUtil; +import org.apache.poi.ss.usermodel.*; + +import java.io.IOException; +import java.io.InputStream; +import java.lang.reflect.Field; +import java.math.BigDecimal; +import java.text.DecimalFormat; +import java.util.*; + +//@Slf4j +public class ExcelUtil { + /** + * Excel sheet最大行数,默认65536 + */ + public static final int sheetSize = 65536; + + /** + * 工作表名称 + */ + private String sheetName; + + /** + * 导出类型(EXPORT:导出数据;IMPORT:导入模板) + */ + private Excel.Type type; + + /** + * 工作薄对象 + */ + private Workbook wb; + + /** + * 工作表对象 + */ + private Sheet sheet; + + /** + * 样式列表 + */ + private Map styles; + + /** + * 导入导出数据列表 + */ + private List list; + + /** + * 注解列表 + */ + private List fields; + + /** + * 实体对象 + */ + public Class clazz; + + public ExcelUtil(Class clazz) { + this.clazz = clazz; + } + + public List importExcel(InputStream is) throws Exception { + return importExcel("", is); + } + + public List importExcel(String sheetName, InputStream is) throws Exception { + this.type = Excel.Type.IMPORT; + this.wb = WorkbookFactory.create(is); + List list = new ArrayList(); + Sheet sheet = null; + if (!sheetName.isEmpty()) { + // 如果指定sheet名,则取指定sheet中的内容. + sheet = wb.getSheet(sheetName); + } else { + // 如果传入的sheet名不存在则默认指向第1个sheet. + sheet = wb.getSheetAt(0); + } + + if (sheet == null) { + throw new IOException("文件sheet不存在"); + } + + int rows = sheet.getPhysicalNumberOfRows(); + + if (rows > 0) { + // 定义一个map用于存放excel列的序号和field. + Map cellMap = new HashMap(); + // 获取表头 + Row heard = sheet.getRow(0); + for (int i = 0; i < heard.getPhysicalNumberOfCells(); i++) { + Cell cell = heard.getCell(i); + if (!StrUtil.isEmptyIfStr(cell)) { + String value = this.getCellValue(heard, i).toString(); + cellMap.put(value, i); + } else { + cellMap.put(null, i); + } + } + // 有数据时才处理 得到类的所有field. + Field[] allFields = clazz.getDeclaredFields(); + // 定义一个map用于存放列的序号和field. + Map fieldsMap = new HashMap(); + for (int col = 0; col < allFields.length; col++) { + Field field = allFields[col]; + Excel attr = field.getAnnotation(Excel.class); + if (attr != null && (attr.type() == Excel.Type.ALL || attr.type() == type)) { + // 设置类的私有字段属性可访问. + field.setAccessible(true); + Integer column = cellMap.get(attr.name()); + fieldsMap.put(column, field); + } + } + for (int i = 1; i < rows; i++) { + // 从第2行开始取数据,默认第一行是表头. + Row row = sheet.getRow(i); +// System.out.println("index = "+i); + T entity = null; + for (Map.Entry entry : fieldsMap.entrySet()) { + Object val = this.getCellValue(row, entry.getKey()); + + // 如果不存在实例则新建. + entity = (entity == null ? clazz.newInstance() : entity); + // 从map中得到对应列的field. + Field field = fieldsMap.get(entry.getKey()); + // 取得类型,并根据对象类型设置值. + Class fieldType = field.getType(); + if (String.class == fieldType) { + String s = Convert.toStr(val); + if (StrUtil.endWith(s, ".0")) { + val = StrUtil.subBefore(s, ".0", true); + } else { + val = Convert.toStr(val); + } + } else if ((Integer.TYPE == fieldType) || (Integer.class == fieldType)) { + val = Convert.toInt(val); + } else if ((Long.TYPE == fieldType) || (Long.class == fieldType)) { + val = Convert.toLong(val); + } else if ((Double.TYPE == fieldType) || (Double.class == fieldType)) { + val = Convert.toDouble(val); + } else if ((Float.TYPE == fieldType) || (Float.class == fieldType)) { + val = Convert.toFloat(val); + } else if (BigDecimal.class == fieldType) { + val = Convert.toBigDecimal(val); + } else if (Date.class == fieldType) { + if (val instanceof String) { + val = com.glxp.mipsdl.util.DateUtil.parseDate(val); + } else if (val instanceof Double) { + val = org.apache.poi.ss.usermodel.DateUtil.getJavaDate((Double) val); + } + } + if (!StrUtil.isEmptyIfStr(fieldType)) { + Excel attr = field.getAnnotation(Excel.class); + String propertyName = field.getName(); + if (StrUtil.isNotEmpty(attr.targetAttr())) { + propertyName = field.getName() + "." + attr.targetAttr(); + } else if (StrUtil.isNotEmpty(attr.convertExp())) { + val = reverseByExp(String.valueOf(val), attr.convertExp()); + } + ReflectUtil.setFieldValue(entity, propertyName, val); + } + } + list.add(entity); + } + } + return list; + } + + /** + * 获取单元格值 + * + * @param row 获取的行 + * @param column 获取单元格列号 + * @return 单元格值 + */ + public Object getCellValue(Row row, int column) { + if (row == null) { + return row; + } + Object val = ""; + try { + Cell cell = row.getCell(column); + if (cell != null) { + if (cell.getCellTypeEnum() == CellType.NUMERIC || cell.getCellTypeEnum() == CellType.FORMULA) { + val = cell.getNumericCellValue(); + if (HSSFDateUtil.isCellDateFormatted(cell)) { + val = DateUtil.getJavaDate((Double) val); // POI Excel 日期格式转换 + } else { + if ((Double) val % 1 > 0) { + val = new DecimalFormat("0.00").format(val); + } else { + val = new DecimalFormat("0").format(val); + } + } + } else if (cell.getCellTypeEnum() == CellType.STRING) { + val = cell.getStringCellValue(); + } else if (cell.getCellTypeEnum() == CellType.BOOLEAN) { + val = cell.getBooleanCellValue(); + } else if (cell.getCellTypeEnum() == CellType.ERROR) { + val = cell.getErrorCellValue(); + } + + } + } catch (Exception e) { + return val; + } + return val; + } + + /** + * 反向解析值 男=0,女=1,未知=2 + * + * @param propertyValue 参数值 + * @param converterExp 翻译注解 + * @return 解析后值 + * @throws Exception + */ + public static String reverseByExp(String propertyValue, String converterExp) throws Exception { + try { + String[] convertSource = converterExp.split(","); + for (String item : convertSource) { + String[] itemArray = item.split("="); + if (itemArray[1].equals(propertyValue)) { + return itemArray[0]; + } + } + } catch (Exception e) { + throw e; + } + return propertyValue; + } + +} diff --git a/src/main/java/com/glxp/mipsdl/util/ExecutorUtil.java b/src/main/java/com/glxp/mipsdl/util/ExecutorUtil.java new file mode 100644 index 0000000..8b6ccce --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/util/ExecutorUtil.java @@ -0,0 +1,56 @@ +package com.glxp.mipsdl.util; + +import cn.hutool.core.thread.ExecutorBuilder; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Component; + +import javax.annotation.PostConstruct; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.LinkedBlockingDeque; + +/** + * java线程池 + */ +@Slf4j +@Component +public class ExecutorUtil { + + /** + * 日志记录线程池 + */ + private ExecutorService log_executor; + + /** + * 上传文件解析数据到UDI管理系统线程池 + */ + private ExecutorService upload_executor; + + @PostConstruct + public ExecutorService getLogExecutor() { + if (null == log_executor) { + log.info("创建日志线程池"); + log_executor = ExecutorBuilder.create() + .setCorePoolSize(10) + .setMaxPoolSize(500) + .setWorkQueue(new LinkedBlockingDeque<>()) + .build(); + log.info("日志线程池创建完成"); + return log_executor; + } + return log_executor; + } + + @PostConstruct + public ExecutorService getUploadExecutor() { + if (null == upload_executor) { + log.info("创建回传数据线程池"); + upload_executor = ExecutorBuilder.create() + .setCorePoolSize(10) + .setMaxPoolSize(200) + .setWorkQueue(new LinkedBlockingDeque<>()) + .build(); + } + return upload_executor; + } + +} diff --git a/src/main/java/com/glxp/mipsdl/util/ResultVOUtils.java b/src/main/java/com/glxp/mipsdl/util/ResultVOUtils.java new file mode 100644 index 0000000..c14e804 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/util/ResultVOUtils.java @@ -0,0 +1,71 @@ +package com.glxp.mipsdl.util; + + +import com.glxp.mipsdl.enums.ResultEnum; +import com.glxp.mipsdl.res.BaseResponse; + +import java.util.HashMap; +import java.util.Map; + +/** + * 返回结果的操作类 + */ +public class ResultVOUtils { + + /** + * 成功时返回 + * @param data 返回的data对象 + * @return {@link BaseResponse} + */ + public static BaseResponse success(Object data) { + BaseResponse baseResponse = new BaseResponse<>(); + baseResponse.setCode(20000); + baseResponse.setMessage("success"); + baseResponse.setData(data); + return baseResponse; + } + + /** + * 成功时返回 + * @return {@link BaseResponse} + */ + public static BaseResponse success() { + Map data = new HashMap(); + return success(data); + } + + /** + * 错误时返回 + * @param code 错误码 + * @param message 错误信息 + * @return {@link BaseResponse} + */ + public static BaseResponse error(Integer code, String message) { + BaseResponse baseResponse = new BaseResponse<>(); + baseResponse.setCode(code); + baseResponse.setMessage(message); + Map data = new HashMap(); + baseResponse.setData(data); + return baseResponse; + } + + /** + * 错误时返回 + * @param resultEnum 错误枚举类 + * @return {@link BaseResponse} + */ + public static BaseResponse error(ResultEnum resultEnum) { + return error(resultEnum.getCode(), resultEnum.getMessage()); + } + + /** + * 错误时返回 + * @param resultEnum 错误枚举类 + * @param message 错误的信息 + * @return {@link BaseResponse} + */ + public static BaseResponse error(ResultEnum resultEnum, String message) { + return error(resultEnum.getCode(), message); + } + +} diff --git a/src/main/java/com/glxp/mipsdl/util/SubmitOrderUtil.java b/src/main/java/com/glxp/mipsdl/util/SubmitOrderUtil.java new file mode 100644 index 0000000..cc5be99 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/util/SubmitOrderUtil.java @@ -0,0 +1,182 @@ +package com.glxp.mipsdl.util; + +import cn.hutool.core.bean.BeanUtil; +import cn.hutool.core.collection.CollUtil; +import cn.hutool.core.util.ReflectUtil; +import cn.hutool.core.util.StrUtil; +import com.alibaba.fastjson2.JSONObject; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.glxp.mipsdl.config.ThirdSysConfig; +import com.glxp.mipsdl.constant.Constants; +import com.glxp.mipsdl.dao.basic.BasicProductsDao; +import com.glxp.mipsdl.dao.basic.BasicUdirelDao; +import com.glxp.mipsdl.dao.inout.IoOrderDao; +import com.glxp.mipsdl.dao.inout.IoOrderUploadLogDao; +import com.glxp.mipsdl.dao.thrsys.ThrProductsDao; +import com.glxp.mipsdl.entity.basic.BasicProductsEntity; +import com.glxp.mipsdl.entity.basic.BasicUdirelEntity; +import com.glxp.mipsdl.entity.inout.IoCodeEntity; +import com.glxp.mipsdl.entity.inout.IoOrderDetailBizEntity; +import com.glxp.mipsdl.entity.inout.IoOrderEntity; +import com.glxp.mipsdl.entity.inout.IoOrderUploadLogEntity; +import com.glxp.mipsdl.entity.thrsys.ThrProductsEntity; +import com.glxp.mipsdl.http.HttpClient; +import com.glxp.mipsdl.req.base.UdiwmsOrderDetailRequest; +import com.glxp.mipsdl.req.base.UdiwmsOrderRequest; +import com.glxp.mipsdl.res.BaseResponse; +import com.glxp.mipsdl.service.thrsys.ThrSystemDetailService; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Component; + +import javax.annotation.Resource; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +/** + * 提交单据工具类 + */ +@Slf4j +@Component +public class SubmitOrderUtil { + + @Resource + private BasicUdirelDao basicUdirelDao; + @Resource + private BasicProductsDao basicProductsDao; + @Resource + private ThirdSysConfig thirdSysConfig; + @Resource + private ThrProductsDao thrProductsDao; + @Resource + private HttpClient httpClient; + @Resource + private ThrSystemDetailService thrSystemDetailService; + @Resource + private IoOrderUploadLogDao orderUploadLogDao; + @Resource + private IoOrderDao orderDao; + + /** + * 查找产品对应的条码详情 + * + * @param orderDetailBizEntity + * @param codeEntities + * @return + */ + public List filterCodes(IoOrderDetailBizEntity orderDetailBizEntity, List codeEntities) { + List result = new ArrayList<>(); + if (CollUtil.isNotEmpty(codeEntities)) { + for (IoCodeEntity codeEntity : codeEntities) { + if (codeEntity.getRelId().equals(orderDetailBizEntity.getBindRlFk()) + && StrUtil.trimToEmpty(codeEntity.getBatchNo()).equals(StrUtil.trimToEmpty(orderDetailBizEntity.getBatchNo()))) { + result.add(codeEntity); + } + } + } + return result; + } + + /** + * 封装码参数 + * + * @param ioCodeEntities + * @param detailBizEntity + * @param item + */ + public void setCodeList(List ioCodeEntities, IoOrderDetailBizEntity detailBizEntity, UdiwmsOrderDetailRequest item) { + List codeList = filterCodes(detailBizEntity, ioCodeEntities); + if (CollUtil.isNotEmpty(codeList)) { + List codes = new ArrayList<>(); + codeList.forEach(ioCodeEntity -> { + UdiwmsOrderDetailRequest.CodeDetailEntity codeDetailEntity = new UdiwmsOrderDetailRequest.CodeDetailEntity(); + BeanUtil.copyProperties(ioCodeEntity, codeDetailEntity); + codes.add(codeDetailEntity); + }); + item.setCodeList(codes); + } + } + + /** + * 构造提交单据参数的产品信息参数 + * + * @param detailBizEntity + * @return + */ + public UdiwmsOrderDetailRequest buildProductInfo(IoOrderDetailBizEntity detailBizEntity) { + //查询产品信息 + BasicUdirelEntity basicUdirel = basicUdirelDao.selectById(detailBizEntity.getBindRlFk()); + BasicProductsEntity basicProducts = basicProductsDao.selectOne(new QueryWrapper().eq("uuid", basicUdirel.getUuid())); + + UdiwmsOrderDetailRequest item = new UdiwmsOrderDetailRequest(); + BeanUtil.copyProperties(detailBizEntity, item); + + item.setProductDate(StrUtil.isBlank(detailBizEntity.getProductDate()) ? null : "20" + detailBizEntity.getProductDate()); + item.setExpireDate(StrUtil.isBlank(detailBizEntity.getExpireDate()) ? null : "20" + detailBizEntity.getExpireDate()); + + String thirdProductId = (String) ReflectUtil.getFieldValue(basicUdirel, thirdSysConfig.getThirdId()); + item.setProductId(thirdProductId); //产品ID + //查询第三方产品名称 + ThrProductsEntity thrProductsEntity = thrProductsDao.selectOne(new QueryWrapper() + .eq("code", thirdProductId)); + + item.setProductName(thrProductsEntity.getName()); //产品名称 + item.setStandard(detailBizEntity.getSpec()); //规格型号 + item.setBillNo(detailBizEntity.getOrderIdFk()); //单据号 + item.setRegisterNo(basicProducts.getZczbhhzbapzbh()); //注册/备案证号 + item.setManufactory(basicProducts.getManufactory()); //生产厂家 + item.setMeasname(basicProducts.getMeasname()); //计量单位 + item.setAllowNoBatch(basicProducts.getAllowNoBatch()); //是否允许无批次号 + return item; + } + + /** + * 处理提交单据,记录日志,解析结果逻辑 + * + * @param orderEntity + * @param udiwmsOrderRequest + * @return + */ + public BaseResponse submitOrder(IoOrderEntity orderEntity, UdiwmsOrderRequest udiwmsOrderRequest) { + //记录日志 + IoOrderUploadLogEntity uploadLog = new IoOrderUploadLogEntity(); + uploadLog.setBillDate(orderEntity.getCreateTime()); + uploadLog.setBillType(orderEntity.getAction()); + uploadLog.setSubmitTime(new Date()); + uploadLog.setBillNo(orderEntity.getBillNo()); + uploadLog.setFromType(Constants.THIRD_ORDER_UPLOAD); + String response = httpClient.postJson(thrSystemDetailService.getUrl(Constants.URL_NAME_ORDER_SUBMIT_URL), udiwmsOrderRequest); + if (StrUtil.isNotBlank(response)) { + try { + BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class); + if (baseResponse.getCode() == 20000) { + String thirdBillNo = String.valueOf(baseResponse.getData()); + orderEntity.setThirdBillNo(thirdBillNo); + uploadLog.setStatus(2); + uploadLog.setThrBillNo(thirdBillNo); + uploadLog.setResult("提交成功"); + orderDao.updateById(orderEntity); + orderUploadLogDao.insert(uploadLog); + return ResultVOUtils.success("提交成功"); + } + uploadLog.setStatus(3); + uploadLog.setResult("提交失败,错误信息:" + baseResponse.getMessage()); + orderUploadLogDao.insert(uploadLog); + return baseResponse; + } catch (Exception e) { + log.error("解析提交单据返回结果异常,结果信息:{}", response); + log.error("异常信息:{}", e); + uploadLog.setStatus(3); + uploadLog.setResult("提交失败,错误信息:" + response); + orderUploadLogDao.insert(uploadLog); + return ResultVOUtils.error(500, "提交失败"); + } + } else { + uploadLog.setStatus(3); + uploadLog.setResult("提交失败,调用接口返回为空"); + orderUploadLogDao.insert(uploadLog); + return ResultVOUtils.error(500, "提交失败"); + } + } + +} diff --git a/src/main/java/com/glxp/mipsdl/util/http/UHttpUtils.java b/src/main/java/com/glxp/mipsdl/util/http/UHttpUtils.java new file mode 100644 index 0000000..c7eabfa --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/util/http/UHttpUtils.java @@ -0,0 +1,42 @@ +package com.glxp.mipsdl.util.http; + + +import com.glxp.mipsdl.res.ucloud.UBaseResponse; + +public class UHttpUtils { + + + public static UBaseResponse returnError() { + UBaseResponse response = new UBaseResponse(); + response.setErrormsg("访问U8服务接口出错!"); + response.setStatus("falied"); + return response; + } + + public static String formatResponse(String response) { + + response = response.replace("\\\"\\\\\\\\\\\"", "\"\""); + response = response.replace("\\\"\\\\\\\"", "\"\""); + response = response.replace("\\\\\\\"", "'"); + + response = response.replace("}\\", "} "); + response = response.replace("\\", ""); + response = response.replace("}\"", "}"); + response = response.replace("\"{", "{"); + response = response.replace("\n", ""); + response = response.replace(" ", ""); + return response; + } + + public static String formatResponseN(String response) { + response = response.replace("\\\"\\\\\\\"", "\"\""); + response = response.replace("\\\\\\\"", "'"); + response = response.replace("\\", ""); + response = response.replace("}\"", "}"); + response = response.replace("\"{", "{"); + response = response.replace("\n", ""); + response = response.replace(" ", ""); + return response; + } + +} diff --git a/src/main/java/com/glxp/mipsdl/vo/ErpOrderEntity.java b/src/main/java/com/glxp/mipsdl/vo/ErpOrderEntity.java new file mode 100644 index 0000000..6762f50 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/vo/ErpOrderEntity.java @@ -0,0 +1,28 @@ +package com.glxp.mipsdl.vo; + +import lombok.Data; + +@Data +public class ErpOrderEntity { + + + + private long id; + private String erpOrderId; + private String iodtlId; + private String inoutId; + private String companyid; + private String companyname; + private String goodsid; + private String goodsname; + private String goodsunit; + private String batchNoId; + private String batchNo; + private String credate; + private String warehouseCode; + private int erpCount; + private int reCount; + private int count; + + +} diff --git a/src/main/java/com/glxp/mipsdl/vo/file/phxyy/PhxyyCorpEntity.java b/src/main/java/com/glxp/mipsdl/vo/file/phxyy/PhxyyCorpEntity.java new file mode 100644 index 0000000..8ab3be1 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/vo/file/phxyy/PhxyyCorpEntity.java @@ -0,0 +1,15 @@ +package com.glxp.mipsdl.vo.file.phxyy; + +import com.glxp.mipsdl.annotation.Excel; +import lombok.Data; + +@Data +public class PhxyyCorpEntity { + + @Excel(name = "名称") + private String corpName; + + @Excel(name = "代码") + private String corpCode; //产品通用名/varchar(255) + +} diff --git a/src/main/java/com/glxp/mipsdl/vo/file/phxyy/PhxyyProductEntity.java b/src/main/java/com/glxp/mipsdl/vo/file/phxyy/PhxyyProductEntity.java new file mode 100644 index 0000000..755a54a --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/vo/file/phxyy/PhxyyProductEntity.java @@ -0,0 +1,23 @@ +package com.glxp.mipsdl.vo.file.phxyy; + +import com.glxp.mipsdl.annotation.Excel; +import lombok.Data; + +@Data +public class PhxyyProductEntity { + + @Excel(name = "院内耗材编码") + private String code; + @Excel(name = "耗材名称") + private String name; + @Excel(name = "规格型号") + private String spec; + @Excel(name = "计量单位") + private String measname; + @Excel(name = "单位名称") + private String supName; + @Excel(name = "生产厂家") + private String manufactory; + @Excel(name = "注册证号") + private String registerNo; +} diff --git a/src/main/java/com/glxp/mipsdl/vo/file/yxzyy/YxzyyProductEntity.java b/src/main/java/com/glxp/mipsdl/vo/file/yxzyy/YxzyyProductEntity.java new file mode 100644 index 0000000..132132d --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/vo/file/yxzyy/YxzyyProductEntity.java @@ -0,0 +1,29 @@ +package com.glxp.mipsdl.vo.file.yxzyy; + +import com.glxp.mipsdl.annotation.Excel; +import lombok.Data; + +@Data +public class YxzyyProductEntity { + + @Excel(name = "序号") + private String code; + @Excel(name = "材料名称") + private String name; + @Excel(name = "材料规格") + private String spec; + @Excel(name = "材料型号") + private String model; + @Excel(name = "计量单位") + private String measname; + @Excel(name = "供货单位") + private String supName; + @Excel(name = "材料产家") + private String manufactory; + @Excel(name = "注册证号") + private String registerNo; + @Excel(name = "国家编码") + private String ybbm; + + +} diff --git a/src/main/java/com/glxp/mipsdl/vo/file/yyu8v31/ErpOrderEntity.java b/src/main/java/com/glxp/mipsdl/vo/file/yyu8v31/ErpOrderEntity.java new file mode 100644 index 0000000..92d7895 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/vo/file/yyu8v31/ErpOrderEntity.java @@ -0,0 +1,28 @@ +package com.glxp.mipsdl.vo.file.yyu8v31; + +import lombok.Data; + +@Data +public class ErpOrderEntity { + + + + private long id; + private String erpOrderId; + private String iodtlId; + private String inoutId; + private String companyid; + private String companyname; + private String goodsid; + private String goodsname; + private String goodsunit; + private String batchNoId; + private String batchNo; + private String credate; + private String warehouseCode; + private int erpCount; + private int reCount; + private int count; + + +} diff --git a/src/main/java/com/glxp/mipsdl/vo/file/yyu8v31/ErpStockEntity.java b/src/main/java/com/glxp/mipsdl/vo/file/yyu8v31/ErpStockEntity.java new file mode 100644 index 0000000..d5d1b76 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/vo/file/yyu8v31/ErpStockEntity.java @@ -0,0 +1,18 @@ +package com.glxp.mipsdl.vo.file.yyu8v31; + +import lombok.Data; + +@Data +public class ErpStockEntity { + + private String id; + private String orderId; + private String code; + private String batchNo; + private String manufacturingDate; + private String expirationDate; + private String count; + private String remark; + private String name; + +} diff --git a/src/main/java/com/glxp/mipsdl/vo/file/zazyy/ZyCorpEntity.java b/src/main/java/com/glxp/mipsdl/vo/file/zazyy/ZyCorpEntity.java new file mode 100644 index 0000000..22143c9 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/vo/file/zazyy/ZyCorpEntity.java @@ -0,0 +1,21 @@ +package com.glxp.mipsdl.vo.file.zazyy; + +import com.glxp.mipsdl.annotation.Excel; +import lombok.Data; + +/** + * 诏安医院(智业)供应商格式 + */ +@Data +public class ZyCorpEntity { + + @Excel(name = "单位名称") + private String corpName; + + @Excel(name = "单位代码") + private String corpCode; //产品通用名/varchar(255) + + @Excel(name = "顺序号") + private String index; //产品通用名/varchar(255) + +} diff --git a/src/main/java/com/glxp/mipsdl/vo/file/zazyy/ZyProductEntity.java b/src/main/java/com/glxp/mipsdl/vo/file/zazyy/ZyProductEntity.java new file mode 100644 index 0000000..e231b92 --- /dev/null +++ b/src/main/java/com/glxp/mipsdl/vo/file/zazyy/ZyProductEntity.java @@ -0,0 +1,29 @@ +package com.glxp.mipsdl.vo.file.zazyy; + +import com.glxp.mipsdl.annotation.Excel; +import lombok.Data; + +@Data +public class ZyProductEntity { + + @Excel(name = "科目类别") + private String category; + @Excel(name = "物资代码") + private String code; + @Excel(name = "物品名称") + private String name; + @Excel(name = "规格") + private String spec; + @Excel(name = "单位") + private String measname; + @Excel(name = "供应商") + private String supName; + @Excel(name = "生产厂家") + private String manufactory; + @Excel(name = "产品证号") + private String registerNo; + @Excel(name = "进货价") + private String price; + + +} diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml new file mode 100644 index 0000000..63339ad --- /dev/null +++ b/src/main/resources/application-dev.yml @@ -0,0 +1,11 @@ +spring: + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:p6spy:mysql://192.168.0.66:3364/udi_wms?allowMultiQueries=true&serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true + username: root + password: Glxp@6066 + hikari: + connection-timeout: 60000 + maximum-pool-size: 60 + minimum-idle: 10 + diff --git a/src/main/resources/application-pro.yml b/src/main/resources/application-pro.yml new file mode 100644 index 0000000..7466019 --- /dev/null +++ b/src/main/resources/application-pro.yml @@ -0,0 +1,12 @@ +spring: + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://192.168.0.66:3364/udi_wms?allowMultiQueries=true&serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true + username: root + password: Glxp@6066 + hikari: + connection-timeout: 60000 + maximum-pool-size: 60 + minimum-idle: 10 + +UDIWMS_IP: http://127.0.0.1:9991 \ No newline at end of file diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml new file mode 100644 index 0000000..1d8b44a --- /dev/null +++ b/src/main/resources/application.yml @@ -0,0 +1,39 @@ +spring: + profiles: + active: pro + +server: + port: 9997 + max-http-header-size: 100MB + tomcat: + max-http-form-post-size: 100MB + accept-count: 100 + threads: + max: 200 + min-spare: 10 + +#第三方系统标识 +THIRD_ID: thirdId +THIRD_NAME: thirdName + +#UDI管理系统地址 +UDIWMS_IP: http://127.0.0.1:9991 + +#mybatis-plus配置 +mybatis-plus: + mapper-locations: classpath:mybatis/mapper/*/*.xml + configuration: + use-generated-keys: true + use-column-label: true + map-underscore-to-camel-case: false + log-impl: org.apache.ibatis.logging.stdout.StdOutImpl + global-config: + banner: false + +ok: + http: + connect-timeout: 30000 + read-timeout: 30000 + write-timeout: 30000 + max-idle-connections: 200 + keep-alive-duration: 300 \ No newline at end of file diff --git a/src/main/resources/hosp_dict.json b/src/main/resources/hosp_dict.json new file mode 100644 index 0000000..95096a2 --- /dev/null +++ b/src/main/resources/hosp_dict.json @@ -0,0 +1,10 @@ +[ + {"code": "100000", "name": "自定义规范标准"}, + {"code": "100001", "name": "测试接口"}, + {"code": "100002", "name": "用友3.1版本,片仔癀诊断"}, + {"code": "100003", "name": "智业V1,诏安医院"}, + {"code": "100004", "name": "阳光采购平台"}, + {"code": "100005", "name": "平和县医院"}, + {"code": "100006", "name": "东山县医院"}, + {"code": "100007", "name": "云霄中医院"} +] \ No newline at end of file diff --git a/src/main/resources/logback-spring.xml b/src/main/resources/logback-spring.xml new file mode 100644 index 0000000..403fc91 --- /dev/null +++ b/src/main/resources/logback-spring.xml @@ -0,0 +1,145 @@ + + + logback + + + + + + %d{HH:mm:ss.SSS} %contextName [%thread] %-5level %logger{36} - %msg%n + + + + + + + + + + ${log.path}/debug.log + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + UTF-8 + + + + + ${log.path}/web-debug-%d{yyyy-MM-dd}.%i.log + + 20MB + + + 15 + + + + debug + ACCEPT + DENY + + + + + + + ${log.path}/info.log + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + UTF-8 + + + + + ${log.path}/web-info-%d{yyyy-MM-dd}.%i.log + + 20MB + + + 15 + + + + info + ACCEPT + DENY + + + + + + + ${log.path}/warn.log + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + UTF-8 + + + + ${log.path}/web-warn-%d{yyyy-MM-dd}.%i.log + + 20MB + + + 15 + + + + warn + ACCEPT + DENY + + + + + + + ${log.path}/error.log + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + UTF-8 + + + + ${log.path}/web-error-%d{yyyy-MM-dd}.%i.log + + 20MB + + + 15 + + + + ERROR + ACCEPT + DENY + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/mybatis/mapper/auth/AuthLicenseDao.xml b/src/main/resources/mybatis/mapper/auth/AuthLicenseDao.xml new file mode 100644 index 0000000..0216d04 --- /dev/null +++ b/src/main/resources/mybatis/mapper/auth/AuthLicenseDao.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + id, appid, `name`, apikey, secretkey, createDate, customerId, companyName + + \ No newline at end of file diff --git a/src/main/resources/mybatis/mapper/auth/AuthUserDao.xml b/src/main/resources/mybatis/mapper/auth/AuthUserDao.xml new file mode 100644 index 0000000..9949199 --- /dev/null +++ b/src/main/resources/mybatis/mapper/auth/AuthUserDao.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + id, userName, `passWord`, lastLoginIp, createTime, userFlag, lastModifyTime, comments, + employeeName, CustomerId, lastLoginTime, locDeptCode, locInvCode + + \ No newline at end of file diff --git a/src/main/resources/mybatis/mapper/auth/AuthWarehouseDao.xml b/src/main/resources/mybatis/mapper/auth/AuthWarehouseDao.xml new file mode 100644 index 0000000..1a55020 --- /dev/null +++ b/src/main/resources/mybatis/mapper/auth/AuthWarehouseDao.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + id, code, `name`, parentId, remark, defaultInv, thirdId, thirdId1, thirdId2, thirdId3, + thirdId4, parentCode + + \ No newline at end of file diff --git a/src/main/resources/mybatis/mapper/basic/BasicBussinessTypeDao.xml b/src/main/resources/mybatis/mapper/basic/BasicBussinessTypeDao.xml new file mode 100644 index 0000000..62be94c --- /dev/null +++ b/src/main/resources/mybatis/mapper/basic/BasicBussinessTypeDao.xml @@ -0,0 +1,130 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + id, + mainAction, + `action`, + `name`, + `enable`, + remark, + thirdSysFk, + genUnit, + innerOrder, + secCheckEnable, + checkEnable, + checkUdims, + checkPdaEd, + checkPdaUn, + checkPc, + checkWebNew, + checkSp, + checkChange, + secCheckUdims, + secCheckPdaEd, + secCheckPdaUn, + secCheckPc, + secCheckWebNew, + secCheckChange, + secCheckSp, + corpType, + supplementOrderType, + checkBalance, + secCheckBalance, + useDyCount, + expireTip, + updateTime, + defaultUnit, + `prefix`, + outToSpms, + ullageFill, + scanPreIn, + vailInv, + entrutSpms, + codeFillCheck, + defaultSubInv, + defaultInv, + orderVisibleType, + checkCopy, + secCheckCopy, + originAction, + advanceType, + changeEnable, + spUse, + preIn, + supplementAll, + `createUser`, + createTime, + updateUser + + + + + \ No newline at end of file diff --git a/src/main/resources/mybatis/mapper/basic/BasicCorpDao.xml b/src/main/resources/mybatis/mapper/basic/BasicCorpDao.xml new file mode 100644 index 0000000..57abc32 --- /dev/null +++ b/src/main/resources/mybatis/mapper/basic/BasicCorpDao.xml @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + id, + erpId, + `name`, + spell, + addr, + `status`, + `type`, + contact, + mobile, + creditNo, + thirdId, + thirdId1, + thirdId2, + thirdId3, + thirdId4, + thirdName, + thirdName1, + thirdName2, + thirdName3, + thirdName4, + corpType, + outType, + `createUser`, + createTime, + updateUser, + updateTime, + remark + + + + + \ No newline at end of file diff --git a/src/main/resources/mybatis/mapper/basic/BasicProductsDao.xml b/src/main/resources/mybatis/mapper/basic/BasicProductsDao.xml new file mode 100644 index 0000000..0635f75 --- /dev/null +++ b/src/main/resources/mybatis/mapper/basic/BasicProductsDao.xml @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + id, uuid, originUuid, nameCode, deviceRecordKey, packRatio, packUnit, packLevel, + bhxjsl, bhzxxsbzsl, zxxsbzbhsydysl, bhxjcpbm, bzcj, cpmctymc, cplb, flbm, ggxh, qxlb, + tyshxydm, ylqxzcrbarmc, zczbhhzbapzbh, ylqxzcrbarywmc, sydycpbs, sjcpbm, versionNumber, + diType, ybbm, sptm, manufactory, measname, productType, scbssfbhph, scbssfbhxlh, + scbssfbhscrq, scbssfbhsxrq, cpms, allowNoBatch, allowNoExpire, allowNoProduct, spmc, + cplx, hchzsb, cpdls, price, basicPrductRemak1, basicPrductRemak2, basicPrductRemak3, + basicPrductRemak4, basicPrductRemak5, basicPrductRemak6, basicPrductRemak7, basicPrductRemak8, + createTime, updateTime, `createUser`, updateUser, remark + + \ No newline at end of file diff --git a/src/main/resources/mybatis/mapper/basic/BasicUdirelDao.xml b/src/main/resources/mybatis/mapper/basic/BasicUdirelDao.xml new file mode 100644 index 0000000..bfa5fdc --- /dev/null +++ b/src/main/resources/mybatis/mapper/basic/BasicUdirelDao.xml @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + id, uuid, mainId, thirdId, thirdId1, thirdId2, thirdId3, thirdId4, udplatCode, isUseDy, + isDisable, isLock, lockStatus, isAdavence, useMuti, useNum, supName, createTime, + updateTime, modifyTime, `createUser`, updateUser, remark + + \ No newline at end of file diff --git a/src/main/resources/mybatis/mapper/inout/IoCodeDao.xml b/src/main/resources/mybatis/mapper/inout/IoCodeDao.xml new file mode 100644 index 0000000..1f06c3c --- /dev/null +++ b/src/main/resources/mybatis/mapper/inout/IoCodeDao.xml @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + id, code, mainAction, `action`, orderId, corpOrderId, nameCode, batchNo, produceDate, + expireDate, serialNo, packageLevel, supId, relId, `count`, reCount, deptCode, invCode, + warehouseCode, updateTime, createTime + + \ No newline at end of file diff --git a/src/main/resources/mybatis/mapper/inout/IoCodeTempDao.xml b/src/main/resources/mybatis/mapper/inout/IoCodeTempDao.xml new file mode 100644 index 0000000..02c21f1 --- /dev/null +++ b/src/main/resources/mybatis/mapper/inout/IoCodeTempDao.xml @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + id, code, mainAction, `action`, orderId, corpOrderId, nameCode, batchNo, produceDate, + expireDate, serialNo, packageLevel, supId, relId, `count`, reCount, deptCode, invCode, + warehouseCode, updateTime, createTime + + \ No newline at end of file diff --git a/src/main/resources/mybatis/mapper/inout/IoOrderDao.xml b/src/main/resources/mybatis/mapper/inout/IoOrderDao.xml new file mode 100644 index 0000000..ec14b33 --- /dev/null +++ b/src/main/resources/mybatis/mapper/inout/IoOrderDao.xml @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + id, billNo, corpOrderId, mainAction, `action`, fromCorp, fromDeptCode, fromInvCode, + fromType, `status`, dealStatus, `createUser`, createTime, updateUser, updateTime, + reviewUser, auditTime, customerId, deptCode, invCode, outChangeEnable, originUllageSupNo, + ullageSupNo, supplementNo, thirdBillNo, replicateNo, preOutBillNo, preInBillNo, errMsg, + printRemark, remark, orderType, entrustEnd + + \ No newline at end of file diff --git a/src/main/resources/mybatis/mapper/inout/IoOrderDetailBizDao.xml b/src/main/resources/mybatis/mapper/inout/IoOrderDetailBizDao.xml new file mode 100644 index 0000000..0d33397 --- /dev/null +++ b/src/main/resources/mybatis/mapper/inout/IoOrderDetailBizDao.xml @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + id, orderIdFk, bindRlFk, uuidFk, nameCode, batchNo, productDate, expireDate, coName, + certCode, ylqxzcrbarmc, manufacturer, measname, spec, price, secSalesListNo, firstSalesInvNo, + secSalesInvNo, invoiceDate, supId, bindSupStatus, `count`, reCount, remark, remark1, + remark2, remark3, remark4, remark5 + + \ No newline at end of file diff --git a/src/main/resources/mybatis/mapper/inout/IoOrderDetailCodeDao.xml b/src/main/resources/mybatis/mapper/inout/IoOrderDetailCodeDao.xml new file mode 100644 index 0000000..86bd65b --- /dev/null +++ b/src/main/resources/mybatis/mapper/inout/IoOrderDetailCodeDao.xml @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + id, orderIdFk, bindRlFk, uuidFk, nameCode, batchNo, productDate, expireDate, coName, + certCode, ylqxzcrbarmc, manufacturer, measname, spec, price, secSalesListNo, firstSalesInvNo, + secSalesInvNo, invoiceDate, supId, bindSupStatus, `count`, reCount, remark, remark1, + remark2, remark3, remark4, remark5 + + \ No newline at end of file diff --git a/src/main/resources/mybatis/mapper/inout/IoOrderDetailResultDao.xml b/src/main/resources/mybatis/mapper/inout/IoOrderDetailResultDao.xml new file mode 100644 index 0000000..cc50da0 --- /dev/null +++ b/src/main/resources/mybatis/mapper/inout/IoOrderDetailResultDao.xml @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + id, orderIdFk, bindRlFk, uuidFk, nameCode, batchNo, productDate, expireDate, coName, + certCode, ylqxzcrbarmc, manufacturer, measname, spec, price, secSalesListNo, firstSalesInvNo, + secSalesInvNo, invoiceDate, supId, bindSupStatus, `count`, reCount, remark, remark1, + remark2, remark3, remark4, remark5 + + \ No newline at end of file diff --git a/src/main/resources/mybatis/mapper/inout/IoOrderUploadLogDao.xml b/src/main/resources/mybatis/mapper/inout/IoOrderUploadLogDao.xml new file mode 100644 index 0000000..cd8bdb9 --- /dev/null +++ b/src/main/resources/mybatis/mapper/inout/IoOrderUploadLogDao.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + id, billNo, billDate, billType, thrBillNo, submitTime, `status`, `result`, fromType + + \ No newline at end of file diff --git a/src/main/resources/mybatis/mapper/pzhzd/YyUcloudV31SetDao.xml b/src/main/resources/mybatis/mapper/pzhzd/YyUcloudV31SetDao.xml new file mode 100644 index 0000000..9a39e83 --- /dev/null +++ b/src/main/resources/mybatis/mapper/pzhzd/YyUcloudV31SetDao.xml @@ -0,0 +1,17 @@ + + + + + + + \ No newline at end of file diff --git a/src/main/resources/mybatis/mapper/system/SysErpLogDao.xml b/src/main/resources/mybatis/mapper/system/SysErpLogDao.xml new file mode 100644 index 0000000..e4b235a --- /dev/null +++ b/src/main/resources/mybatis/mapper/system/SysErpLogDao.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/src/main/resources/mybatis/mapper/system/SysHospConfigDao.xml b/src/main/resources/mybatis/mapper/system/SysHospConfigDao.xml new file mode 100644 index 0000000..97c1a73 --- /dev/null +++ b/src/main/resources/mybatis/mapper/system/SysHospConfigDao.xml @@ -0,0 +1,12 @@ + + + + + + + + + code, + name + + \ No newline at end of file diff --git a/src/main/resources/mybatis/mapper/system/SysScheduledDao.xml b/src/main/resources/mybatis/mapper/system/SysScheduledDao.xml new file mode 100644 index 0000000..c3ac860 --- /dev/null +++ b/src/main/resources/mybatis/mapper/system/SysScheduledDao.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + id, cronName, cron, customerId, remark + + \ No newline at end of file diff --git a/src/main/resources/mybatis/mapper/system/SysThirdSysApiDao.xml b/src/main/resources/mybatis/mapper/system/SysThirdSysApiDao.xml new file mode 100644 index 0000000..0f55f3b --- /dev/null +++ b/src/main/resources/mybatis/mapper/system/SysThirdSysApiDao.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + id, `name`, apiUrl, guideUrl, remark, `type` + + \ No newline at end of file diff --git a/src/main/resources/mybatis/mapper/thrsys/ThrBustypeOriginDao.xml b/src/main/resources/mybatis/mapper/thrsys/ThrBustypeOriginDao.xml new file mode 100644 index 0000000..97a275b --- /dev/null +++ b/src/main/resources/mybatis/mapper/thrsys/ThrBustypeOriginDao.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + id, + `name`, + `action`, + thirdSys, + `enable`, + inoutType, + updateTime, + remark, + `createUser`, + updateUser, + createTime + + + + \ No newline at end of file diff --git a/src/main/resources/mybatis/mapper/thrsys/ThrCorpDao.xml b/src/main/resources/mybatis/mapper/thrsys/ThrCorpDao.xml new file mode 100644 index 0000000..df08981 --- /dev/null +++ b/src/main/resources/mybatis/mapper/thrsys/ThrCorpDao.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + id, unitId, spell, addr, creditNo, contact, mobile, thirdSysFk, `name`, `createUser`, + createTime, updateUser, updateTime, remark + + \ No newline at end of file diff --git a/src/main/resources/mybatis/mapper/thrsys/ThrDeptDao.xml b/src/main/resources/mybatis/mapper/thrsys/ThrDeptDao.xml new file mode 100644 index 0000000..858cd66 --- /dev/null +++ b/src/main/resources/mybatis/mapper/thrsys/ThrDeptDao.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + id, pId, code, `name`, advanceType, isDefault, `status`, updateTime, remark, `level`, + pcode, thirdSysFk + + \ No newline at end of file diff --git a/src/main/resources/mybatis/mapper/thrsys/ThrInvWarehouseDao.xml b/src/main/resources/mybatis/mapper/thrsys/ThrInvWarehouseDao.xml new file mode 100644 index 0000000..1d98ca3 --- /dev/null +++ b/src/main/resources/mybatis/mapper/thrsys/ThrInvWarehouseDao.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + id, code, `name`, parentId, remark, thirdSysFk + + \ No newline at end of file diff --git a/src/main/resources/mybatis/mapper/thrsys/ThrProductsDao.xml b/src/main/resources/mybatis/mapper/thrsys/ThrProductsDao.xml new file mode 100644 index 0000000..9aa4f9f --- /dev/null +++ b/src/main/resources/mybatis/mapper/thrsys/ThrProductsDao.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + id, code, `name`, measname, spec, registerNo, manufactory, thirdSysFk, cplb, flbm, + qxlb, ybbm, sptm, tyshxydm, zczbhhzbapzbh, ylqxzcrbarmc, ylqxzcrbarywmc, cpms, updateTime, + supName, model, `standard`, qtbm, zczyxqz, remark, remark1, remark2, remark3, price, + `createUser`, createTime, updateUser + + \ No newline at end of file diff --git a/src/main/resources/mybatis/mapper/thrsys/ThrSystemBusApiDao.xml b/src/main/resources/mybatis/mapper/thrsys/ThrSystemBusApiDao.xml new file mode 100644 index 0000000..20683d7 --- /dev/null +++ b/src/main/resources/mybatis/mapper/thrsys/ThrSystemBusApiDao.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + id, code, `name`, thirdBuyName, thirdBuyCode, thirdSys, url, `type`, remark, filed, + filed1, filed2, filed3, filed4 + + \ No newline at end of file diff --git a/src/main/resources/mybatis/mapper/thrsys/ThrSystemDao.xml b/src/main/resources/mybatis/mapper/thrsys/ThrSystemDao.xml new file mode 100644 index 0000000..0e18484 --- /dev/null +++ b/src/main/resources/mybatis/mapper/thrsys/ThrSystemDao.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + id, thirdId, thirdName, apikey, secretkey, mainSys, enabled, thridUrl, thirdSysUrl, + guideUrl, remark + + + \ No newline at end of file diff --git a/src/main/resources/mybatis/mapper/thrsys/ThrSystemDetailDao.xml b/src/main/resources/mybatis/mapper/thrsys/ThrSystemDetailDao.xml new file mode 100644 index 0000000..8042ebc --- /dev/null +++ b/src/main/resources/mybatis/mapper/thrsys/ThrSystemDetailDao.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + id, `name`, `key`, `value`, enabled, guideUrl, remark, thirdSysFk, itrCache, fromType + + + + \ No newline at end of file diff --git a/target/classes/application-dev.yml b/target/classes/application-dev.yml new file mode 100644 index 0000000..63339ad --- /dev/null +++ b/target/classes/application-dev.yml @@ -0,0 +1,11 @@ +spring: + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:p6spy:mysql://192.168.0.66:3364/udi_wms?allowMultiQueries=true&serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true + username: root + password: Glxp@6066 + hikari: + connection-timeout: 60000 + maximum-pool-size: 60 + minimum-idle: 10 + diff --git a/target/classes/application-pro.yml b/target/classes/application-pro.yml new file mode 100644 index 0000000..7466019 --- /dev/null +++ b/target/classes/application-pro.yml @@ -0,0 +1,12 @@ +spring: + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://192.168.0.66:3364/udi_wms?allowMultiQueries=true&serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true + username: root + password: Glxp@6066 + hikari: + connection-timeout: 60000 + maximum-pool-size: 60 + minimum-idle: 10 + +UDIWMS_IP: http://127.0.0.1:9991 \ No newline at end of file diff --git a/target/classes/application.yml b/target/classes/application.yml new file mode 100644 index 0000000..1d8b44a --- /dev/null +++ b/target/classes/application.yml @@ -0,0 +1,39 @@ +spring: + profiles: + active: pro + +server: + port: 9997 + max-http-header-size: 100MB + tomcat: + max-http-form-post-size: 100MB + accept-count: 100 + threads: + max: 200 + min-spare: 10 + +#第三方系统标识 +THIRD_ID: thirdId +THIRD_NAME: thirdName + +#UDI管理系统地址 +UDIWMS_IP: http://127.0.0.1:9991 + +#mybatis-plus配置 +mybatis-plus: + mapper-locations: classpath:mybatis/mapper/*/*.xml + configuration: + use-generated-keys: true + use-column-label: true + map-underscore-to-camel-case: false + log-impl: org.apache.ibatis.logging.stdout.StdOutImpl + global-config: + banner: false + +ok: + http: + connect-timeout: 30000 + read-timeout: 30000 + write-timeout: 30000 + max-idle-connections: 200 + keep-alive-duration: 300 \ No newline at end of file diff --git a/target/classes/com/glxp/mipsdl/Application.class b/target/classes/com/glxp/mipsdl/Application.class new file mode 100644 index 0000000..f83d28b Binary files /dev/null and b/target/classes/com/glxp/mipsdl/Application.class differ diff --git a/target/classes/com/glxp/mipsdl/annotation/Excel$ColumnType.class b/target/classes/com/glxp/mipsdl/annotation/Excel$ColumnType.class new file mode 100644 index 0000000..7a6d0bd Binary files /dev/null and b/target/classes/com/glxp/mipsdl/annotation/Excel$ColumnType.class differ diff --git a/target/classes/com/glxp/mipsdl/annotation/Excel$Type.class b/target/classes/com/glxp/mipsdl/annotation/Excel$Type.class new file mode 100644 index 0000000..f9ceeaa Binary files /dev/null and b/target/classes/com/glxp/mipsdl/annotation/Excel$Type.class differ diff --git a/target/classes/com/glxp/mipsdl/annotation/Excel.class b/target/classes/com/glxp/mipsdl/annotation/Excel.class new file mode 100644 index 0000000..6929e33 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/annotation/Excel.class differ diff --git a/target/classes/com/glxp/mipsdl/aspect/LogAspect.class b/target/classes/com/glxp/mipsdl/aspect/LogAspect.class new file mode 100644 index 0000000..07954ed Binary files /dev/null and b/target/classes/com/glxp/mipsdl/aspect/LogAspect.class differ diff --git a/target/classes/com/glxp/mipsdl/client/BaseFileClient.class b/target/classes/com/glxp/mipsdl/client/BaseFileClient.class new file mode 100644 index 0000000..c3a0240 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/client/BaseFileClient.class differ diff --git a/target/classes/com/glxp/mipsdl/client/BaseHttpClient.class b/target/classes/com/glxp/mipsdl/client/BaseHttpClient.class new file mode 100644 index 0000000..4d8a1b5 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/client/BaseHttpClient.class differ diff --git a/target/classes/com/glxp/mipsdl/client/ClientProcessor.class b/target/classes/com/glxp/mipsdl/client/ClientProcessor.class new file mode 100644 index 0000000..eaa1254 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/client/ClientProcessor.class differ diff --git a/target/classes/com/glxp/mipsdl/client/dsxyy/DsxyyClient.class b/target/classes/com/glxp/mipsdl/client/dsxyy/DsxyyClient.class new file mode 100644 index 0000000..3fb4b5e Binary files /dev/null and b/target/classes/com/glxp/mipsdl/client/dsxyy/DsxyyClient.class differ diff --git a/target/classes/com/glxp/mipsdl/client/glxp/GlxpClient.class b/target/classes/com/glxp/mipsdl/client/glxp/GlxpClient.class new file mode 100644 index 0000000..6cd9788 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/client/glxp/GlxpClient.class differ diff --git a/target/classes/com/glxp/mipsdl/client/phxyy/PhxyyClient.class b/target/classes/com/glxp/mipsdl/client/phxyy/PhxyyClient.class new file mode 100644 index 0000000..0d0038c Binary files /dev/null and b/target/classes/com/glxp/mipsdl/client/phxyy/PhxyyClient.class differ diff --git a/target/classes/com/glxp/mipsdl/client/phxyy/PhxyyFileClient.class b/target/classes/com/glxp/mipsdl/client/phxyy/PhxyyFileClient.class new file mode 100644 index 0000000..e16c86d Binary files /dev/null and b/target/classes/com/glxp/mipsdl/client/phxyy/PhxyyFileClient.class differ diff --git a/target/classes/com/glxp/mipsdl/client/pzh/PzhzdClient.class b/target/classes/com/glxp/mipsdl/client/pzh/PzhzdClient.class new file mode 100644 index 0000000..3507644 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/client/pzh/PzhzdClient.class differ diff --git a/target/classes/com/glxp/mipsdl/client/ygudplat/YgUdplatClient.class b/target/classes/com/glxp/mipsdl/client/ygudplat/YgUdplatClient.class new file mode 100644 index 0000000..5c08cf7 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/client/ygudplat/YgUdplatClient.class differ diff --git a/target/classes/com/glxp/mipsdl/client/yxzyy/YxzyyClient.class b/target/classes/com/glxp/mipsdl/client/yxzyy/YxzyyClient.class new file mode 100644 index 0000000..ddb7633 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/client/yxzyy/YxzyyClient.class differ diff --git a/target/classes/com/glxp/mipsdl/client/yxzyy/YxzyyFileClient.class b/target/classes/com/glxp/mipsdl/client/yxzyy/YxzyyFileClient.class new file mode 100644 index 0000000..9eae8fd Binary files /dev/null and b/target/classes/com/glxp/mipsdl/client/yxzyy/YxzyyFileClient.class differ diff --git a/target/classes/com/glxp/mipsdl/client/zaxyy/ZaxyyClient.class b/target/classes/com/glxp/mipsdl/client/zaxyy/ZaxyyClient.class new file mode 100644 index 0000000..fdb599f Binary files /dev/null and b/target/classes/com/glxp/mipsdl/client/zaxyy/ZaxyyClient.class differ diff --git a/target/classes/com/glxp/mipsdl/client/zaxyy/ZazyyFileClient.class b/target/classes/com/glxp/mipsdl/client/zaxyy/ZazyyFileClient.class new file mode 100644 index 0000000..87f7b9d Binary files /dev/null and b/target/classes/com/glxp/mipsdl/client/zaxyy/ZazyyFileClient.class differ diff --git a/target/classes/com/glxp/mipsdl/config/HosDictConfig.class b/target/classes/com/glxp/mipsdl/config/HosDictConfig.class new file mode 100644 index 0000000..9a2a254 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/config/HosDictConfig.class differ diff --git a/target/classes/com/glxp/mipsdl/config/HospConfig.class b/target/classes/com/glxp/mipsdl/config/HospConfig.class new file mode 100644 index 0000000..5bb0806 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/config/HospConfig.class differ diff --git a/target/classes/com/glxp/mipsdl/config/OkHttpConfig$1.class b/target/classes/com/glxp/mipsdl/config/OkHttpConfig$1.class new file mode 100644 index 0000000..bb1b838 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/config/OkHttpConfig$1.class differ diff --git a/target/classes/com/glxp/mipsdl/config/OkHttpConfig.class b/target/classes/com/glxp/mipsdl/config/OkHttpConfig.class new file mode 100644 index 0000000..7ee5b93 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/config/OkHttpConfig.class differ diff --git a/target/classes/com/glxp/mipsdl/config/ThirdSysConfig.class b/target/classes/com/glxp/mipsdl/config/ThirdSysConfig.class new file mode 100644 index 0000000..882c535 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/config/ThirdSysConfig.class differ diff --git a/target/classes/com/glxp/mipsdl/constant/ConstantType.class b/target/classes/com/glxp/mipsdl/constant/ConstantType.class new file mode 100644 index 0000000..d31335e Binary files /dev/null and b/target/classes/com/glxp/mipsdl/constant/ConstantType.class differ diff --git a/target/classes/com/glxp/mipsdl/constant/Constants.class b/target/classes/com/glxp/mipsdl/constant/Constants.class new file mode 100644 index 0000000..26fa0bf Binary files /dev/null and b/target/classes/com/glxp/mipsdl/constant/Constants.class differ diff --git a/target/classes/com/glxp/mipsdl/controller/DictController.class b/target/classes/com/glxp/mipsdl/controller/DictController.class new file mode 100644 index 0000000..ede9d61 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/controller/DictController.class differ diff --git a/target/classes/com/glxp/mipsdl/controller/ThirdGetController.class b/target/classes/com/glxp/mipsdl/controller/ThirdGetController.class new file mode 100644 index 0000000..f85b863 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/controller/ThirdGetController.class differ diff --git a/target/classes/com/glxp/mipsdl/controller/UdiInfoUploadController.class b/target/classes/com/glxp/mipsdl/controller/UdiInfoUploadController.class new file mode 100644 index 0000000..2bb64fb Binary files /dev/null and b/target/classes/com/glxp/mipsdl/controller/UdiInfoUploadController.class differ diff --git a/target/classes/com/glxp/mipsdl/controller/UdiWmsController.class b/target/classes/com/glxp/mipsdl/controller/UdiWmsController.class new file mode 100644 index 0000000..3c1c0b9 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/controller/UdiWmsController.class differ diff --git a/target/classes/com/glxp/mipsdl/dao/auth/AuthLicenseDao.class b/target/classes/com/glxp/mipsdl/dao/auth/AuthLicenseDao.class new file mode 100644 index 0000000..5507f97 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/dao/auth/AuthLicenseDao.class differ diff --git a/target/classes/com/glxp/mipsdl/dao/auth/AuthUserDao.class b/target/classes/com/glxp/mipsdl/dao/auth/AuthUserDao.class new file mode 100644 index 0000000..82fdbcf Binary files /dev/null and b/target/classes/com/glxp/mipsdl/dao/auth/AuthUserDao.class differ diff --git a/target/classes/com/glxp/mipsdl/dao/auth/AuthWarehouseDao.class b/target/classes/com/glxp/mipsdl/dao/auth/AuthWarehouseDao.class new file mode 100644 index 0000000..a613133 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/dao/auth/AuthWarehouseDao.class differ diff --git a/target/classes/com/glxp/mipsdl/dao/basic/BasicBussinessTypeDao.class b/target/classes/com/glxp/mipsdl/dao/basic/BasicBussinessTypeDao.class new file mode 100644 index 0000000..f96a270 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/dao/basic/BasicBussinessTypeDao.class differ diff --git a/target/classes/com/glxp/mipsdl/dao/basic/BasicCorpDao.class b/target/classes/com/glxp/mipsdl/dao/basic/BasicCorpDao.class new file mode 100644 index 0000000..dfb397c Binary files /dev/null and b/target/classes/com/glxp/mipsdl/dao/basic/BasicCorpDao.class differ diff --git a/target/classes/com/glxp/mipsdl/dao/basic/BasicProductsDao.class b/target/classes/com/glxp/mipsdl/dao/basic/BasicProductsDao.class new file mode 100644 index 0000000..39f4edb Binary files /dev/null and b/target/classes/com/glxp/mipsdl/dao/basic/BasicProductsDao.class differ diff --git a/target/classes/com/glxp/mipsdl/dao/basic/BasicUdirelDao.class b/target/classes/com/glxp/mipsdl/dao/basic/BasicUdirelDao.class new file mode 100644 index 0000000..69222f0 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/dao/basic/BasicUdirelDao.class differ diff --git a/target/classes/com/glxp/mipsdl/dao/inout/IoCodeDao.class b/target/classes/com/glxp/mipsdl/dao/inout/IoCodeDao.class new file mode 100644 index 0000000..54795c2 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/dao/inout/IoCodeDao.class differ diff --git a/target/classes/com/glxp/mipsdl/dao/inout/IoCodeTempDao.class b/target/classes/com/glxp/mipsdl/dao/inout/IoCodeTempDao.class new file mode 100644 index 0000000..fcfc136 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/dao/inout/IoCodeTempDao.class differ diff --git a/target/classes/com/glxp/mipsdl/dao/inout/IoOrderDao.class b/target/classes/com/glxp/mipsdl/dao/inout/IoOrderDao.class new file mode 100644 index 0000000..1a35e9f Binary files /dev/null and b/target/classes/com/glxp/mipsdl/dao/inout/IoOrderDao.class differ diff --git a/target/classes/com/glxp/mipsdl/dao/inout/IoOrderDetailBizDao.class b/target/classes/com/glxp/mipsdl/dao/inout/IoOrderDetailBizDao.class new file mode 100644 index 0000000..4d5d464 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/dao/inout/IoOrderDetailBizDao.class differ diff --git a/target/classes/com/glxp/mipsdl/dao/inout/IoOrderDetailCodeDao.class b/target/classes/com/glxp/mipsdl/dao/inout/IoOrderDetailCodeDao.class new file mode 100644 index 0000000..1e06edd Binary files /dev/null and b/target/classes/com/glxp/mipsdl/dao/inout/IoOrderDetailCodeDao.class differ diff --git a/target/classes/com/glxp/mipsdl/dao/inout/IoOrderDetailResultDao.class b/target/classes/com/glxp/mipsdl/dao/inout/IoOrderDetailResultDao.class new file mode 100644 index 0000000..202644f Binary files /dev/null and b/target/classes/com/glxp/mipsdl/dao/inout/IoOrderDetailResultDao.class differ diff --git a/target/classes/com/glxp/mipsdl/dao/inout/IoOrderUploadLogDao.class b/target/classes/com/glxp/mipsdl/dao/inout/IoOrderUploadLogDao.class new file mode 100644 index 0000000..c4db894 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/dao/inout/IoOrderUploadLogDao.class differ diff --git a/target/classes/com/glxp/mipsdl/dao/pzhzd/YyUcloudV31SetDao.class b/target/classes/com/glxp/mipsdl/dao/pzhzd/YyUcloudV31SetDao.class new file mode 100644 index 0000000..e018c49 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/dao/pzhzd/YyUcloudV31SetDao.class differ diff --git a/target/classes/com/glxp/mipsdl/dao/system/SysErpLogDao.class b/target/classes/com/glxp/mipsdl/dao/system/SysErpLogDao.class new file mode 100644 index 0000000..830bf8c Binary files /dev/null and b/target/classes/com/glxp/mipsdl/dao/system/SysErpLogDao.class differ diff --git a/target/classes/com/glxp/mipsdl/dao/system/SysHospConfigDao.class b/target/classes/com/glxp/mipsdl/dao/system/SysHospConfigDao.class new file mode 100644 index 0000000..6b94e68 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/dao/system/SysHospConfigDao.class differ diff --git a/target/classes/com/glxp/mipsdl/dao/system/SysScheduledDao.class b/target/classes/com/glxp/mipsdl/dao/system/SysScheduledDao.class new file mode 100644 index 0000000..70c9881 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/dao/system/SysScheduledDao.class differ diff --git a/target/classes/com/glxp/mipsdl/dao/system/SysThirdSysApiDao.class b/target/classes/com/glxp/mipsdl/dao/system/SysThirdSysApiDao.class new file mode 100644 index 0000000..21d9ebf Binary files /dev/null and b/target/classes/com/glxp/mipsdl/dao/system/SysThirdSysApiDao.class differ diff --git a/target/classes/com/glxp/mipsdl/dao/thrsys/ThrBustypeOriginDao.class b/target/classes/com/glxp/mipsdl/dao/thrsys/ThrBustypeOriginDao.class new file mode 100644 index 0000000..a1880a7 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/dao/thrsys/ThrBustypeOriginDao.class differ diff --git a/target/classes/com/glxp/mipsdl/dao/thrsys/ThrCorpDao.class b/target/classes/com/glxp/mipsdl/dao/thrsys/ThrCorpDao.class new file mode 100644 index 0000000..d92a1cb Binary files /dev/null and b/target/classes/com/glxp/mipsdl/dao/thrsys/ThrCorpDao.class differ diff --git a/target/classes/com/glxp/mipsdl/dao/thrsys/ThrDeptDao.class b/target/classes/com/glxp/mipsdl/dao/thrsys/ThrDeptDao.class new file mode 100644 index 0000000..251ea90 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/dao/thrsys/ThrDeptDao.class differ diff --git a/target/classes/com/glxp/mipsdl/dao/thrsys/ThrInvWarehouseDao.class b/target/classes/com/glxp/mipsdl/dao/thrsys/ThrInvWarehouseDao.class new file mode 100644 index 0000000..b182f00 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/dao/thrsys/ThrInvWarehouseDao.class differ diff --git a/target/classes/com/glxp/mipsdl/dao/thrsys/ThrProductsDao.class b/target/classes/com/glxp/mipsdl/dao/thrsys/ThrProductsDao.class new file mode 100644 index 0000000..47ecd36 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/dao/thrsys/ThrProductsDao.class differ diff --git a/target/classes/com/glxp/mipsdl/dao/thrsys/ThrSystemBusApiDao.class b/target/classes/com/glxp/mipsdl/dao/thrsys/ThrSystemBusApiDao.class new file mode 100644 index 0000000..2f8c379 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/dao/thrsys/ThrSystemBusApiDao.class differ diff --git a/target/classes/com/glxp/mipsdl/dao/thrsys/ThrSystemDao.class b/target/classes/com/glxp/mipsdl/dao/thrsys/ThrSystemDao.class new file mode 100644 index 0000000..2ee2029 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/dao/thrsys/ThrSystemDao.class differ diff --git a/target/classes/com/glxp/mipsdl/dao/thrsys/ThrSystemDetailDao.class b/target/classes/com/glxp/mipsdl/dao/thrsys/ThrSystemDetailDao.class new file mode 100644 index 0000000..f83da63 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/dao/thrsys/ThrSystemDetailDao.class differ diff --git a/target/classes/com/glxp/mipsdl/entity/auth/AuthLicenseEntity.class b/target/classes/com/glxp/mipsdl/entity/auth/AuthLicenseEntity.class new file mode 100644 index 0000000..79128ec Binary files /dev/null and b/target/classes/com/glxp/mipsdl/entity/auth/AuthLicenseEntity.class differ diff --git a/target/classes/com/glxp/mipsdl/entity/auth/AuthUserEntity.class b/target/classes/com/glxp/mipsdl/entity/auth/AuthUserEntity.class new file mode 100644 index 0000000..20cc970 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/entity/auth/AuthUserEntity.class differ diff --git a/target/classes/com/glxp/mipsdl/entity/auth/AuthWarehouseEntity.class b/target/classes/com/glxp/mipsdl/entity/auth/AuthWarehouseEntity.class new file mode 100644 index 0000000..9283e38 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/entity/auth/AuthWarehouseEntity.class differ diff --git a/target/classes/com/glxp/mipsdl/entity/basic/BasicBussinessTypeEntity.class b/target/classes/com/glxp/mipsdl/entity/basic/BasicBussinessTypeEntity.class new file mode 100644 index 0000000..0186214 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/entity/basic/BasicBussinessTypeEntity.class differ diff --git a/target/classes/com/glxp/mipsdl/entity/basic/BasicCorpEntity.class b/target/classes/com/glxp/mipsdl/entity/basic/BasicCorpEntity.class new file mode 100644 index 0000000..01a4967 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/entity/basic/BasicCorpEntity.class differ diff --git a/target/classes/com/glxp/mipsdl/entity/basic/BasicProductsEntity.class b/target/classes/com/glxp/mipsdl/entity/basic/BasicProductsEntity.class new file mode 100644 index 0000000..6097e9c Binary files /dev/null and b/target/classes/com/glxp/mipsdl/entity/basic/BasicProductsEntity.class differ diff --git a/target/classes/com/glxp/mipsdl/entity/basic/BasicUdirelEntity.class b/target/classes/com/glxp/mipsdl/entity/basic/BasicUdirelEntity.class new file mode 100644 index 0000000..41e94e6 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/entity/basic/BasicUdirelEntity.class differ diff --git a/target/classes/com/glxp/mipsdl/entity/inout/IoCodeEntity.class b/target/classes/com/glxp/mipsdl/entity/inout/IoCodeEntity.class new file mode 100644 index 0000000..dade32b Binary files /dev/null and b/target/classes/com/glxp/mipsdl/entity/inout/IoCodeEntity.class differ diff --git a/target/classes/com/glxp/mipsdl/entity/inout/IoCodeTempEntity.class b/target/classes/com/glxp/mipsdl/entity/inout/IoCodeTempEntity.class new file mode 100644 index 0000000..ed63f2c Binary files /dev/null and b/target/classes/com/glxp/mipsdl/entity/inout/IoCodeTempEntity.class differ diff --git a/target/classes/com/glxp/mipsdl/entity/inout/IoOrderDetailBizEntity.class b/target/classes/com/glxp/mipsdl/entity/inout/IoOrderDetailBizEntity.class new file mode 100644 index 0000000..10aad65 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/entity/inout/IoOrderDetailBizEntity.class differ diff --git a/target/classes/com/glxp/mipsdl/entity/inout/IoOrderDetailCodeEntity.class b/target/classes/com/glxp/mipsdl/entity/inout/IoOrderDetailCodeEntity.class new file mode 100644 index 0000000..423152d Binary files /dev/null and b/target/classes/com/glxp/mipsdl/entity/inout/IoOrderDetailCodeEntity.class differ diff --git a/target/classes/com/glxp/mipsdl/entity/inout/IoOrderDetailResultEntity.class b/target/classes/com/glxp/mipsdl/entity/inout/IoOrderDetailResultEntity.class new file mode 100644 index 0000000..3dcc2cf Binary files /dev/null and b/target/classes/com/glxp/mipsdl/entity/inout/IoOrderDetailResultEntity.class differ diff --git a/target/classes/com/glxp/mipsdl/entity/inout/IoOrderEntity.class b/target/classes/com/glxp/mipsdl/entity/inout/IoOrderEntity.class new file mode 100644 index 0000000..83a41b1 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/entity/inout/IoOrderEntity.class differ diff --git a/target/classes/com/glxp/mipsdl/entity/inout/IoOrderUploadLogEntity.class b/target/classes/com/glxp/mipsdl/entity/inout/IoOrderUploadLogEntity.class new file mode 100644 index 0000000..556a009 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/entity/inout/IoOrderUploadLogEntity.class differ diff --git a/target/classes/com/glxp/mipsdl/entity/pzhzd/YyUcloudV31SetEntity.class b/target/classes/com/glxp/mipsdl/entity/pzhzd/YyUcloudV31SetEntity.class new file mode 100644 index 0000000..b94d3bd Binary files /dev/null and b/target/classes/com/glxp/mipsdl/entity/pzhzd/YyUcloudV31SetEntity.class differ diff --git a/target/classes/com/glxp/mipsdl/entity/system/SysErpLogEntity.class b/target/classes/com/glxp/mipsdl/entity/system/SysErpLogEntity.class new file mode 100644 index 0000000..deff227 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/entity/system/SysErpLogEntity.class differ diff --git a/target/classes/com/glxp/mipsdl/entity/system/SysHospConfigEntity.class b/target/classes/com/glxp/mipsdl/entity/system/SysHospConfigEntity.class new file mode 100644 index 0000000..d06c5ce Binary files /dev/null and b/target/classes/com/glxp/mipsdl/entity/system/SysHospConfigEntity.class differ diff --git a/target/classes/com/glxp/mipsdl/entity/system/SysScheduledEntity.class b/target/classes/com/glxp/mipsdl/entity/system/SysScheduledEntity.class new file mode 100644 index 0000000..b80f33c Binary files /dev/null and b/target/classes/com/glxp/mipsdl/entity/system/SysScheduledEntity.class differ diff --git a/target/classes/com/glxp/mipsdl/entity/system/SysThirdsysApiEntity.class b/target/classes/com/glxp/mipsdl/entity/system/SysThirdsysApiEntity.class new file mode 100644 index 0000000..43beff2 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/entity/system/SysThirdsysApiEntity.class differ diff --git a/target/classes/com/glxp/mipsdl/entity/thrsys/ThrBustypeOriginEntity.class b/target/classes/com/glxp/mipsdl/entity/thrsys/ThrBustypeOriginEntity.class new file mode 100644 index 0000000..28e75dc Binary files /dev/null and b/target/classes/com/glxp/mipsdl/entity/thrsys/ThrBustypeOriginEntity.class differ diff --git a/target/classes/com/glxp/mipsdl/entity/thrsys/ThrCorpEntity.class b/target/classes/com/glxp/mipsdl/entity/thrsys/ThrCorpEntity.class new file mode 100644 index 0000000..85df01d Binary files /dev/null and b/target/classes/com/glxp/mipsdl/entity/thrsys/ThrCorpEntity.class differ diff --git a/target/classes/com/glxp/mipsdl/entity/thrsys/ThrDeptEntity.class b/target/classes/com/glxp/mipsdl/entity/thrsys/ThrDeptEntity.class new file mode 100644 index 0000000..54b72d6 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/entity/thrsys/ThrDeptEntity.class differ diff --git a/target/classes/com/glxp/mipsdl/entity/thrsys/ThrInvWarehouseEntity.class b/target/classes/com/glxp/mipsdl/entity/thrsys/ThrInvWarehouseEntity.class new file mode 100644 index 0000000..b8fc516 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/entity/thrsys/ThrInvWarehouseEntity.class differ diff --git a/target/classes/com/glxp/mipsdl/entity/thrsys/ThrProductsEntity.class b/target/classes/com/glxp/mipsdl/entity/thrsys/ThrProductsEntity.class new file mode 100644 index 0000000..ff63457 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/entity/thrsys/ThrProductsEntity.class differ diff --git a/target/classes/com/glxp/mipsdl/entity/thrsys/ThrSystemBusApiEntity.class b/target/classes/com/glxp/mipsdl/entity/thrsys/ThrSystemBusApiEntity.class new file mode 100644 index 0000000..7cb9ba2 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/entity/thrsys/ThrSystemBusApiEntity.class differ diff --git a/target/classes/com/glxp/mipsdl/entity/thrsys/ThrSystemDetailEntity.class b/target/classes/com/glxp/mipsdl/entity/thrsys/ThrSystemDetailEntity.class new file mode 100644 index 0000000..86bc602 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/entity/thrsys/ThrSystemDetailEntity.class differ diff --git a/target/classes/com/glxp/mipsdl/entity/thrsys/ThrSystemEntity.class b/target/classes/com/glxp/mipsdl/entity/thrsys/ThrSystemEntity.class new file mode 100644 index 0000000..31b5cc8 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/entity/thrsys/ThrSystemEntity.class differ diff --git a/target/classes/com/glxp/mipsdl/enums/ResultEnum.class b/target/classes/com/glxp/mipsdl/enums/ResultEnum.class new file mode 100644 index 0000000..4d0d69c Binary files /dev/null and b/target/classes/com/glxp/mipsdl/enums/ResultEnum.class differ diff --git a/target/classes/com/glxp/mipsdl/http/HttpClient.class b/target/classes/com/glxp/mipsdl/http/HttpClient.class new file mode 100644 index 0000000..48e66aa Binary files /dev/null and b/target/classes/com/glxp/mipsdl/http/HttpClient.class differ diff --git a/target/classes/com/glxp/mipsdl/http/OkHttpCli.class b/target/classes/com/glxp/mipsdl/http/OkHttpCli.class new file mode 100644 index 0000000..8d389e8 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/http/OkHttpCli.class differ diff --git a/target/classes/com/glxp/mipsdl/http/UCloudHttpClient$1.class b/target/classes/com/glxp/mipsdl/http/UCloudHttpClient$1.class new file mode 100644 index 0000000..d2cc21a Binary files /dev/null and b/target/classes/com/glxp/mipsdl/http/UCloudHttpClient$1.class differ diff --git a/target/classes/com/glxp/mipsdl/http/UCloudHttpClient$2.class b/target/classes/com/glxp/mipsdl/http/UCloudHttpClient$2.class new file mode 100644 index 0000000..a991185 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/http/UCloudHttpClient$2.class differ diff --git a/target/classes/com/glxp/mipsdl/http/UCloudHttpClient$3.class b/target/classes/com/glxp/mipsdl/http/UCloudHttpClient$3.class new file mode 100644 index 0000000..573457b Binary files /dev/null and b/target/classes/com/glxp/mipsdl/http/UCloudHttpClient$3.class differ diff --git a/target/classes/com/glxp/mipsdl/http/UCloudHttpClient$4.class b/target/classes/com/glxp/mipsdl/http/UCloudHttpClient$4.class new file mode 100644 index 0000000..7e6fcee Binary files /dev/null and b/target/classes/com/glxp/mipsdl/http/UCloudHttpClient$4.class differ diff --git a/target/classes/com/glxp/mipsdl/http/UCloudHttpClient$5.class b/target/classes/com/glxp/mipsdl/http/UCloudHttpClient$5.class new file mode 100644 index 0000000..4701c08 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/http/UCloudHttpClient$5.class differ diff --git a/target/classes/com/glxp/mipsdl/http/UCloudHttpClient$6.class b/target/classes/com/glxp/mipsdl/http/UCloudHttpClient$6.class new file mode 100644 index 0000000..927be6e Binary files /dev/null and b/target/classes/com/glxp/mipsdl/http/UCloudHttpClient$6.class differ diff --git a/target/classes/com/glxp/mipsdl/http/UCloudHttpClient$7.class b/target/classes/com/glxp/mipsdl/http/UCloudHttpClient$7.class new file mode 100644 index 0000000..fc96290 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/http/UCloudHttpClient$7.class differ diff --git a/target/classes/com/glxp/mipsdl/http/UCloudHttpClient$8.class b/target/classes/com/glxp/mipsdl/http/UCloudHttpClient$8.class new file mode 100644 index 0000000..fcc5be8 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/http/UCloudHttpClient$8.class differ diff --git a/target/classes/com/glxp/mipsdl/http/UCloudHttpClient$9.class b/target/classes/com/glxp/mipsdl/http/UCloudHttpClient$9.class new file mode 100644 index 0000000..0703f72 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/http/UCloudHttpClient$9.class differ diff --git a/target/classes/com/glxp/mipsdl/http/UCloudHttpClient.class b/target/classes/com/glxp/mipsdl/http/UCloudHttpClient.class new file mode 100644 index 0000000..e47d628 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/http/UCloudHttpClient.class differ diff --git a/target/classes/com/glxp/mipsdl/req/base/ListPageRequest.class b/target/classes/com/glxp/mipsdl/req/base/ListPageRequest.class new file mode 100644 index 0000000..74026a0 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/base/ListPageRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/base/UdiwmsAddProductsRequest.class b/target/classes/com/glxp/mipsdl/req/base/UdiwmsAddProductsRequest.class new file mode 100644 index 0000000..34d41b5 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/base/UdiwmsAddProductsRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/base/UdiwmsAddUnitRequest.class b/target/classes/com/glxp/mipsdl/req/base/UdiwmsAddUnitRequest.class new file mode 100644 index 0000000..fda0a10 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/base/UdiwmsAddUnitRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/base/UdiwmsBusTypeRequest.class b/target/classes/com/glxp/mipsdl/req/base/UdiwmsBusTypeRequest.class new file mode 100644 index 0000000..0262e00 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/base/UdiwmsBusTypeRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/base/UdiwmsInvProductsRequest.class b/target/classes/com/glxp/mipsdl/req/base/UdiwmsInvProductsRequest.class new file mode 100644 index 0000000..1f7937a Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/base/UdiwmsInvProductsRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/base/UdiwmsOrderDetailRequest$CodeDetailEntity.class b/target/classes/com/glxp/mipsdl/req/base/UdiwmsOrderDetailRequest$CodeDetailEntity.class new file mode 100644 index 0000000..10c7c03 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/base/UdiwmsOrderDetailRequest$CodeDetailEntity.class differ diff --git a/target/classes/com/glxp/mipsdl/req/base/UdiwmsOrderDetailRequest.class b/target/classes/com/glxp/mipsdl/req/base/UdiwmsOrderDetailRequest.class new file mode 100644 index 0000000..17a644e Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/base/UdiwmsOrderDetailRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/base/UdiwmsOrderQueryRequest.class b/target/classes/com/glxp/mipsdl/req/base/UdiwmsOrderQueryRequest.class new file mode 100644 index 0000000..4476299 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/base/UdiwmsOrderQueryRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/base/UdiwmsOrderRequest.class b/target/classes/com/glxp/mipsdl/req/base/UdiwmsOrderRequest.class new file mode 100644 index 0000000..f203448 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/base/UdiwmsOrderRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/base/UdiwmsPostBillRequest.class b/target/classes/com/glxp/mipsdl/req/base/UdiwmsPostBillRequest.class new file mode 100644 index 0000000..b6399b1 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/base/UdiwmsPostBillRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/base/UdiwmsPreInOrderRequest$ItemDTO.class b/target/classes/com/glxp/mipsdl/req/base/UdiwmsPreInOrderRequest$ItemDTO.class new file mode 100644 index 0000000..e86a6c3 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/base/UdiwmsPreInOrderRequest$ItemDTO.class differ diff --git a/target/classes/com/glxp/mipsdl/req/base/UdiwmsPreInOrderRequest.class b/target/classes/com/glxp/mipsdl/req/base/UdiwmsPreInOrderRequest.class new file mode 100644 index 0000000..e7aaa1c Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/base/UdiwmsPreInOrderRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/base/UdiwmsProductRequest.class b/target/classes/com/glxp/mipsdl/req/base/UdiwmsProductRequest.class new file mode 100644 index 0000000..f8ee758 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/base/UdiwmsProductRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/base/UdiwmsQueryUdiInvProductsRequest.class b/target/classes/com/glxp/mipsdl/req/base/UdiwmsQueryUdiInvProductsRequest.class new file mode 100644 index 0000000..e507308 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/base/UdiwmsQueryUdiInvProductsRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/base/UdiwmsUnitRequest.class b/target/classes/com/glxp/mipsdl/req/base/UdiwmsUnitRequest.class new file mode 100644 index 0000000..1b425f0 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/base/UdiwmsUnitRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/base/UdiwmsWarehouseRequest.class b/target/classes/com/glxp/mipsdl/req/base/UdiwmsWarehouseRequest.class new file mode 100644 index 0000000..3609aea Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/base/UdiwmsWarehouseRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/dsxyy/DsBusTypeRequest.class b/target/classes/com/glxp/mipsdl/req/dsxyy/DsBusTypeRequest.class new file mode 100644 index 0000000..88e24e4 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/dsxyy/DsBusTypeRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/dsxyy/DsOrderRequest.class b/target/classes/com/glxp/mipsdl/req/dsxyy/DsOrderRequest.class new file mode 100644 index 0000000..ebaaad6 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/dsxyy/DsOrderRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/dsxyy/DsProductRequest.class b/target/classes/com/glxp/mipsdl/req/dsxyy/DsProductRequest.class new file mode 100644 index 0000000..0abf9f7 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/dsxyy/DsProductRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/dsxyy/DsUnitRequest.class b/target/classes/com/glxp/mipsdl/req/dsxyy/DsUnitRequest.class new file mode 100644 index 0000000..794902a Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/dsxyy/DsUnitRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/phxyy/PhBusTypeRequest.class b/target/classes/com/glxp/mipsdl/req/phxyy/PhBusTypeRequest.class new file mode 100644 index 0000000..792a8e5 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/phxyy/PhBusTypeRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/phxyy/PhOrderRequest.class b/target/classes/com/glxp/mipsdl/req/phxyy/PhOrderRequest.class new file mode 100644 index 0000000..21a29e2 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/phxyy/PhOrderRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/phxyy/PhProductRequest.class b/target/classes/com/glxp/mipsdl/req/phxyy/PhProductRequest.class new file mode 100644 index 0000000..8cd5448 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/phxyy/PhProductRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/phxyy/PhUnitRequest.class b/target/classes/com/glxp/mipsdl/req/phxyy/PhUnitRequest.class new file mode 100644 index 0000000..4429296 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/phxyy/PhUnitRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/post/PostFileThrOrderRequest.class b/target/classes/com/glxp/mipsdl/req/post/PostFileThrOrderRequest.class new file mode 100644 index 0000000..50d48d1 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/post/PostFileThrOrderRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/post/PostThrCorpRequest.class b/target/classes/com/glxp/mipsdl/req/post/PostThrCorpRequest.class new file mode 100644 index 0000000..b69ddb6 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/post/PostThrCorpRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/post/PostThrInvProductsRequest.class b/target/classes/com/glxp/mipsdl/req/post/PostThrInvProductsRequest.class new file mode 100644 index 0000000..8b3f43e Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/post/PostThrInvProductsRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/post/PostThrOrderRequest.class b/target/classes/com/glxp/mipsdl/req/post/PostThrOrderRequest.class new file mode 100644 index 0000000..02546ae Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/post/PostThrOrderRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/post/PostThrProductsRequest.class b/target/classes/com/glxp/mipsdl/req/post/PostThrProductsRequest.class new file mode 100644 index 0000000..38aeb17 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/post/PostThrProductsRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/post/ThrOrderImportDetailEntity.class b/target/classes/com/glxp/mipsdl/req/post/ThrOrderImportDetailEntity.class new file mode 100644 index 0000000..e4bba89 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/post/ThrOrderImportDetailEntity.class differ diff --git a/target/classes/com/glxp/mipsdl/req/pzh/USignRequest.class b/target/classes/com/glxp/mipsdl/req/pzh/USignRequest.class new file mode 100644 index 0000000..2057761 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/pzh/USignRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/ucloud/ModifyPruchaseinRequest$GeneralBillVOBean$ChildrenVOBean.class b/target/classes/com/glxp/mipsdl/req/ucloud/ModifyPruchaseinRequest$GeneralBillVOBean$ChildrenVOBean.class new file mode 100644 index 0000000..dee1281 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/ucloud/ModifyPruchaseinRequest$GeneralBillVOBean$ChildrenVOBean.class differ diff --git a/target/classes/com/glxp/mipsdl/req/ucloud/ModifyPruchaseinRequest$GeneralBillVOBean$ParentVOBean.class b/target/classes/com/glxp/mipsdl/req/ucloud/ModifyPruchaseinRequest$GeneralBillVOBean$ParentVOBean.class new file mode 100644 index 0000000..7b86734 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/ucloud/ModifyPruchaseinRequest$GeneralBillVOBean$ParentVOBean.class differ diff --git a/target/classes/com/glxp/mipsdl/req/ucloud/ModifyPruchaseinRequest$GeneralBillVOBean.class b/target/classes/com/glxp/mipsdl/req/ucloud/ModifyPruchaseinRequest$GeneralBillVOBean.class new file mode 100644 index 0000000..58b4d68 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/ucloud/ModifyPruchaseinRequest$GeneralBillVOBean.class differ diff --git a/target/classes/com/glxp/mipsdl/req/ucloud/ModifyPruchaseinRequest.class b/target/classes/com/glxp/mipsdl/req/ucloud/ModifyPruchaseinRequest.class new file mode 100644 index 0000000..b3c0e5c Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/ucloud/ModifyPruchaseinRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/ucloud/ModifySaleRequest$GeneralBillVOBean$ChildrenVOBean.class b/target/classes/com/glxp/mipsdl/req/ucloud/ModifySaleRequest$GeneralBillVOBean$ChildrenVOBean.class new file mode 100644 index 0000000..8f03dfd Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/ucloud/ModifySaleRequest$GeneralBillVOBean$ChildrenVOBean.class differ diff --git a/target/classes/com/glxp/mipsdl/req/ucloud/ModifySaleRequest$GeneralBillVOBean$ParentVOBean.class b/target/classes/com/glxp/mipsdl/req/ucloud/ModifySaleRequest$GeneralBillVOBean$ParentVOBean.class new file mode 100644 index 0000000..3d7c67b Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/ucloud/ModifySaleRequest$GeneralBillVOBean$ParentVOBean.class differ diff --git a/target/classes/com/glxp/mipsdl/req/ucloud/ModifySaleRequest$GeneralBillVOBean.class b/target/classes/com/glxp/mipsdl/req/ucloud/ModifySaleRequest$GeneralBillVOBean.class new file mode 100644 index 0000000..9c4b3f1 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/ucloud/ModifySaleRequest$GeneralBillVOBean.class differ diff --git a/target/classes/com/glxp/mipsdl/req/ucloud/ModifySaleRequest.class b/target/classes/com/glxp/mipsdl/req/ucloud/ModifySaleRequest.class new file mode 100644 index 0000000..06e8244 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/ucloud/ModifySaleRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/ucloud/UCustmandocRequest.class b/target/classes/com/glxp/mipsdl/req/ucloud/UCustmandocRequest.class new file mode 100644 index 0000000..3220c41 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/ucloud/UCustmandocRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/ucloud/UInvmandocRequest.class b/target/classes/com/glxp/mipsdl/req/ucloud/UInvmandocRequest.class new file mode 100644 index 0000000..b940f27 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/ucloud/UInvmandocRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/ucloud/UOnhandPostQueryRequest.class b/target/classes/com/glxp/mipsdl/req/ucloud/UOnhandPostQueryRequest.class new file mode 100644 index 0000000..4984258 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/ucloud/UOnhandPostQueryRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/ucloud/UOnhandQueryRequest.class b/target/classes/com/glxp/mipsdl/req/ucloud/UOnhandQueryRequest.class new file mode 100644 index 0000000..de077af Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/ucloud/UOnhandQueryRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/ucloud/UPurchaseModifyRequest.class b/target/classes/com/glxp/mipsdl/req/ucloud/UPurchaseModifyRequest.class new file mode 100644 index 0000000..a963faa Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/ucloud/UPurchaseModifyRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/ucloud/UPurchaseinRequest.class b/target/classes/com/glxp/mipsdl/req/ucloud/UPurchaseinRequest.class new file mode 100644 index 0000000..bc57ba2 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/ucloud/UPurchaseinRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/ucloud/UPurhaseinSignRequest$QueryInfoBean.class b/target/classes/com/glxp/mipsdl/req/ucloud/UPurhaseinSignRequest$QueryInfoBean.class new file mode 100644 index 0000000..581279f Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/ucloud/UPurhaseinSignRequest$QueryInfoBean.class differ diff --git a/target/classes/com/glxp/mipsdl/req/ucloud/UPurhaseinSignRequest$SignInfoBean.class b/target/classes/com/glxp/mipsdl/req/ucloud/UPurhaseinSignRequest$SignInfoBean.class new file mode 100644 index 0000000..5dd865e Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/ucloud/UPurhaseinSignRequest$SignInfoBean.class differ diff --git a/target/classes/com/glxp/mipsdl/req/ucloud/UPurhaseinSignRequest.class b/target/classes/com/glxp/mipsdl/req/ucloud/UPurhaseinSignRequest.class new file mode 100644 index 0000000..a3a81a3 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/ucloud/UPurhaseinSignRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/ucloud/USaleoutQueryRequest.class b/target/classes/com/glxp/mipsdl/req/ucloud/USaleoutQueryRequest.class new file mode 100644 index 0000000..7569e2e Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/ucloud/USaleoutQueryRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/ucloud/USaleoutSignRequest$QueryInfoBean.class b/target/classes/com/glxp/mipsdl/req/ucloud/USaleoutSignRequest$QueryInfoBean.class new file mode 100644 index 0000000..fbf8536 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/ucloud/USaleoutSignRequest$QueryInfoBean.class differ diff --git a/target/classes/com/glxp/mipsdl/req/ucloud/USaleoutSignRequest$SignInfoBean.class b/target/classes/com/glxp/mipsdl/req/ucloud/USaleoutSignRequest$SignInfoBean.class new file mode 100644 index 0000000..878372d Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/ucloud/USaleoutSignRequest$SignInfoBean.class differ diff --git a/target/classes/com/glxp/mipsdl/req/ucloud/USaleoutSignRequest.class b/target/classes/com/glxp/mipsdl/req/ucloud/USaleoutSignRequest.class new file mode 100644 index 0000000..18effc8 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/ucloud/USaleoutSignRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/ucloud/USignRequest.class b/target/classes/com/glxp/mipsdl/req/ucloud/USignRequest.class new file mode 100644 index 0000000..4763893 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/ucloud/USignRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/yxzyy/YxBusTypeRequest.class b/target/classes/com/glxp/mipsdl/req/yxzyy/YxBusTypeRequest.class new file mode 100644 index 0000000..c38e518 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/yxzyy/YxBusTypeRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/yxzyy/YxProductRequest.class b/target/classes/com/glxp/mipsdl/req/yxzyy/YxProductRequest.class new file mode 100644 index 0000000..334f831 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/yxzyy/YxProductRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/yxzyy/YxUnitRequest.class b/target/classes/com/glxp/mipsdl/req/yxzyy/YxUnitRequest.class new file mode 100644 index 0000000..3767440 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/yxzyy/YxUnitRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/yxzyy/YxzyyOrderRequest.class b/target/classes/com/glxp/mipsdl/req/yxzyy/YxzyyOrderRequest.class new file mode 100644 index 0000000..bc046a9 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/yxzyy/YxzyyOrderRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/zaxyy/ZaZyRequest.class b/target/classes/com/glxp/mipsdl/req/zaxyy/ZaZyRequest.class new file mode 100644 index 0000000..804a1e3 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/zaxyy/ZaZyRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/req/zaxyy/ZaxzyyOrderRequest.class b/target/classes/com/glxp/mipsdl/req/zaxyy/ZaxzyyOrderRequest.class new file mode 100644 index 0000000..95faddc Binary files /dev/null and b/target/classes/com/glxp/mipsdl/req/zaxyy/ZaxzyyOrderRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/res/BaseLimitRequest.class b/target/classes/com/glxp/mipsdl/res/BaseLimitRequest.class new file mode 100644 index 0000000..07a7afc Binary files /dev/null and b/target/classes/com/glxp/mipsdl/res/BaseLimitRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/res/BaseRequest.class b/target/classes/com/glxp/mipsdl/res/BaseRequest.class new file mode 100644 index 0000000..d98f51f Binary files /dev/null and b/target/classes/com/glxp/mipsdl/res/BaseRequest.class differ diff --git a/target/classes/com/glxp/mipsdl/res/BaseResponse.class b/target/classes/com/glxp/mipsdl/res/BaseResponse.class new file mode 100644 index 0000000..64c785f Binary files /dev/null and b/target/classes/com/glxp/mipsdl/res/BaseResponse.class differ diff --git a/target/classes/com/glxp/mipsdl/res/PageSimpleResponse.class b/target/classes/com/glxp/mipsdl/res/PageSimpleResponse.class new file mode 100644 index 0000000..b90da76 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/res/PageSimpleResponse.class differ diff --git a/target/classes/com/glxp/mipsdl/res/ucloud/DataResponse.class b/target/classes/com/glxp/mipsdl/res/ucloud/DataResponse.class new file mode 100644 index 0000000..f593f88 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/res/ucloud/DataResponse.class differ diff --git a/target/classes/com/glxp/mipsdl/res/ucloud/UBaseResponse.class b/target/classes/com/glxp/mipsdl/res/ucloud/UBaseResponse.class new file mode 100644 index 0000000..ec6748d Binary files /dev/null and b/target/classes/com/glxp/mipsdl/res/ucloud/UBaseResponse.class differ diff --git a/target/classes/com/glxp/mipsdl/res/ucloud/UCustmandocResponse$ChildrenvoBean.class b/target/classes/com/glxp/mipsdl/res/ucloud/UCustmandocResponse$ChildrenvoBean.class new file mode 100644 index 0000000..a929562 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/res/ucloud/UCustmandocResponse$ChildrenvoBean.class differ diff --git a/target/classes/com/glxp/mipsdl/res/ucloud/UCustmandocResponse$ParentvoBean.class b/target/classes/com/glxp/mipsdl/res/ucloud/UCustmandocResponse$ParentvoBean.class new file mode 100644 index 0000000..3c33c00 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/res/ucloud/UCustmandocResponse$ParentvoBean.class differ diff --git a/target/classes/com/glxp/mipsdl/res/ucloud/UCustmandocResponse.class b/target/classes/com/glxp/mipsdl/res/ucloud/UCustmandocResponse.class new file mode 100644 index 0000000..cf85dd9 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/res/ucloud/UCustmandocResponse.class differ diff --git a/target/classes/com/glxp/mipsdl/res/ucloud/UInvmandocQueryResponse$ParentvoBean$InvbasVoBean.class b/target/classes/com/glxp/mipsdl/res/ucloud/UInvmandocQueryResponse$ParentvoBean$InvbasVoBean.class new file mode 100644 index 0000000..2e9e097 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/res/ucloud/UInvmandocQueryResponse$ParentvoBean$InvbasVoBean.class differ diff --git a/target/classes/com/glxp/mipsdl/res/ucloud/UInvmandocQueryResponse$ParentvoBean$InvmanVoBean.class b/target/classes/com/glxp/mipsdl/res/ucloud/UInvmandocQueryResponse$ParentvoBean$InvmanVoBean.class new file mode 100644 index 0000000..bed6b34 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/res/ucloud/UInvmandocQueryResponse$ParentvoBean$InvmanVoBean.class differ diff --git a/target/classes/com/glxp/mipsdl/res/ucloud/UInvmandocQueryResponse$ParentvoBean.class b/target/classes/com/glxp/mipsdl/res/ucloud/UInvmandocQueryResponse$ParentvoBean.class new file mode 100644 index 0000000..c864c2c Binary files /dev/null and b/target/classes/com/glxp/mipsdl/res/ucloud/UInvmandocQueryResponse$ParentvoBean.class differ diff --git a/target/classes/com/glxp/mipsdl/res/ucloud/UInvmandocQueryResponse.class b/target/classes/com/glxp/mipsdl/res/ucloud/UInvmandocQueryResponse.class new file mode 100644 index 0000000..3e8f610 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/res/ucloud/UInvmandocQueryResponse.class differ diff --git a/target/classes/com/glxp/mipsdl/res/ucloud/UOnhandQueryResponse.class b/target/classes/com/glxp/mipsdl/res/ucloud/UOnhandQueryResponse.class new file mode 100644 index 0000000..105583f Binary files /dev/null and b/target/classes/com/glxp/mipsdl/res/ucloud/UOnhandQueryResponse.class differ diff --git a/target/classes/com/glxp/mipsdl/res/ucloud/UPurchaseinQueryResponse$ChildrenvoBean.class b/target/classes/com/glxp/mipsdl/res/ucloud/UPurchaseinQueryResponse$ChildrenvoBean.class new file mode 100644 index 0000000..176ebde Binary files /dev/null and b/target/classes/com/glxp/mipsdl/res/ucloud/UPurchaseinQueryResponse$ChildrenvoBean.class differ diff --git a/target/classes/com/glxp/mipsdl/res/ucloud/UPurchaseinQueryResponse$ParentvoBean.class b/target/classes/com/glxp/mipsdl/res/ucloud/UPurchaseinQueryResponse$ParentvoBean.class new file mode 100644 index 0000000..c6555ed Binary files /dev/null and b/target/classes/com/glxp/mipsdl/res/ucloud/UPurchaseinQueryResponse$ParentvoBean.class differ diff --git a/target/classes/com/glxp/mipsdl/res/ucloud/UPurchaseinQueryResponse.class b/target/classes/com/glxp/mipsdl/res/ucloud/UPurchaseinQueryResponse.class new file mode 100644 index 0000000..75d651e Binary files /dev/null and b/target/classes/com/glxp/mipsdl/res/ucloud/UPurchaseinQueryResponse.class differ diff --git a/target/classes/com/glxp/mipsdl/res/ucloud/USaleoutQueryResponse$ChildrenvoBean.class b/target/classes/com/glxp/mipsdl/res/ucloud/USaleoutQueryResponse$ChildrenvoBean.class new file mode 100644 index 0000000..5edad31 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/res/ucloud/USaleoutQueryResponse$ChildrenvoBean.class differ diff --git a/target/classes/com/glxp/mipsdl/res/ucloud/USaleoutQueryResponse$ParentvoBean.class b/target/classes/com/glxp/mipsdl/res/ucloud/USaleoutQueryResponse$ParentvoBean.class new file mode 100644 index 0000000..0f0e2b8 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/res/ucloud/USaleoutQueryResponse$ParentvoBean.class differ diff --git a/target/classes/com/glxp/mipsdl/res/ucloud/USaleoutQueryResponse.class b/target/classes/com/glxp/mipsdl/res/ucloud/USaleoutQueryResponse.class new file mode 100644 index 0000000..9f0e972 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/res/ucloud/USaleoutQueryResponse.class differ diff --git a/target/classes/com/glxp/mipsdl/res/udiwms/UdiwmsBusTypeResponse.class b/target/classes/com/glxp/mipsdl/res/udiwms/UdiwmsBusTypeResponse.class new file mode 100644 index 0000000..ae97cc2 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/res/udiwms/UdiwmsBusTypeResponse.class differ diff --git a/target/classes/com/glxp/mipsdl/res/udiwms/UdiwmsInvProductResponse.class b/target/classes/com/glxp/mipsdl/res/udiwms/UdiwmsInvProductResponse.class new file mode 100644 index 0000000..9981727 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/res/udiwms/UdiwmsInvProductResponse.class differ diff --git a/target/classes/com/glxp/mipsdl/res/udiwms/UdiwmsOnhandResponse.class b/target/classes/com/glxp/mipsdl/res/udiwms/UdiwmsOnhandResponse.class new file mode 100644 index 0000000..b358a97 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/res/udiwms/UdiwmsOnhandResponse.class differ diff --git a/target/classes/com/glxp/mipsdl/res/udiwms/UdiwmsOrderResponse$SubErpOrder.class b/target/classes/com/glxp/mipsdl/res/udiwms/UdiwmsOrderResponse$SubErpOrder.class new file mode 100644 index 0000000..c5d3544 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/res/udiwms/UdiwmsOrderResponse$SubErpOrder.class differ diff --git a/target/classes/com/glxp/mipsdl/res/udiwms/UdiwmsOrderResponse.class b/target/classes/com/glxp/mipsdl/res/udiwms/UdiwmsOrderResponse.class new file mode 100644 index 0000000..f79ad3a Binary files /dev/null and b/target/classes/com/glxp/mipsdl/res/udiwms/UdiwmsOrderResponse.class differ diff --git a/target/classes/com/glxp/mipsdl/res/udiwms/UdiwmsProductInfoResponse$UdiwmsProductInfoResponseBuilder.class b/target/classes/com/glxp/mipsdl/res/udiwms/UdiwmsProductInfoResponse$UdiwmsProductInfoResponseBuilder.class new file mode 100644 index 0000000..71caa00 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/res/udiwms/UdiwmsProductInfoResponse$UdiwmsProductInfoResponseBuilder.class differ diff --git a/target/classes/com/glxp/mipsdl/res/udiwms/UdiwmsProductInfoResponse.class b/target/classes/com/glxp/mipsdl/res/udiwms/UdiwmsProductInfoResponse.class new file mode 100644 index 0000000..8716f19 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/res/udiwms/UdiwmsProductInfoResponse.class differ diff --git a/target/classes/com/glxp/mipsdl/res/udiwms/UdiwmsUnitResponse.class b/target/classes/com/glxp/mipsdl/res/udiwms/UdiwmsUnitResponse.class new file mode 100644 index 0000000..ebd6c6a Binary files /dev/null and b/target/classes/com/glxp/mipsdl/res/udiwms/UdiwmsUnitResponse.class differ diff --git a/target/classes/com/glxp/mipsdl/res/udiwms/UdiwmsWarehouseDetail$SubWarehouse.class b/target/classes/com/glxp/mipsdl/res/udiwms/UdiwmsWarehouseDetail$SubWarehouse.class new file mode 100644 index 0000000..e5af5e1 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/res/udiwms/UdiwmsWarehouseDetail$SubWarehouse.class differ diff --git a/target/classes/com/glxp/mipsdl/res/udiwms/UdiwmsWarehouseDetail.class b/target/classes/com/glxp/mipsdl/res/udiwms/UdiwmsWarehouseDetail.class new file mode 100644 index 0000000..56289c4 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/res/udiwms/UdiwmsWarehouseDetail.class differ diff --git a/target/classes/com/glxp/mipsdl/res/udiwms/UdiwmsWarehouseResponse.class b/target/classes/com/glxp/mipsdl/res/udiwms/UdiwmsWarehouseResponse.class new file mode 100644 index 0000000..541518e Binary files /dev/null and b/target/classes/com/glxp/mipsdl/res/udiwms/UdiwmsWarehouseResponse.class differ diff --git a/target/classes/com/glxp/mipsdl/service/auth/AuthWarehouseService.class b/target/classes/com/glxp/mipsdl/service/auth/AuthWarehouseService.class new file mode 100644 index 0000000..7a585d0 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/service/auth/AuthWarehouseService.class differ diff --git a/target/classes/com/glxp/mipsdl/service/file/UdiInfoUploadService.class b/target/classes/com/glxp/mipsdl/service/file/UdiInfoUploadService.class new file mode 100644 index 0000000..33b160a Binary files /dev/null and b/target/classes/com/glxp/mipsdl/service/file/UdiInfoUploadService.class differ diff --git a/target/classes/com/glxp/mipsdl/service/system/SysErpLogService.class b/target/classes/com/glxp/mipsdl/service/system/SysErpLogService.class new file mode 100644 index 0000000..c35ccaa Binary files /dev/null and b/target/classes/com/glxp/mipsdl/service/system/SysErpLogService.class differ diff --git a/target/classes/com/glxp/mipsdl/service/thrsys/ThrCorpService.class b/target/classes/com/glxp/mipsdl/service/thrsys/ThrCorpService.class new file mode 100644 index 0000000..4a93010 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/service/thrsys/ThrCorpService.class differ diff --git a/target/classes/com/glxp/mipsdl/service/thrsys/ThrProductService.class b/target/classes/com/glxp/mipsdl/service/thrsys/ThrProductService.class new file mode 100644 index 0000000..f11fce9 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/service/thrsys/ThrProductService.class differ diff --git a/target/classes/com/glxp/mipsdl/service/thrsys/ThrSysBusTypeService.class b/target/classes/com/glxp/mipsdl/service/thrsys/ThrSysBusTypeService.class new file mode 100644 index 0000000..c046f51 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/service/thrsys/ThrSysBusTypeService.class differ diff --git a/target/classes/com/glxp/mipsdl/service/thrsys/ThrSystemDetailService.class b/target/classes/com/glxp/mipsdl/service/thrsys/ThrSystemDetailService.class new file mode 100644 index 0000000..669ef1c Binary files /dev/null and b/target/classes/com/glxp/mipsdl/service/thrsys/ThrSystemDetailService.class differ diff --git a/target/classes/com/glxp/mipsdl/util/DateUtil.class b/target/classes/com/glxp/mipsdl/util/DateUtil.class new file mode 100644 index 0000000..dd22dbc Binary files /dev/null and b/target/classes/com/glxp/mipsdl/util/DateUtil.class differ diff --git a/target/classes/com/glxp/mipsdl/util/DictUtl.class b/target/classes/com/glxp/mipsdl/util/DictUtl.class new file mode 100644 index 0000000..c822187 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/util/DictUtl.class differ diff --git a/target/classes/com/glxp/mipsdl/util/ExcelUtil.class b/target/classes/com/glxp/mipsdl/util/ExcelUtil.class new file mode 100644 index 0000000..ae8229e Binary files /dev/null and b/target/classes/com/glxp/mipsdl/util/ExcelUtil.class differ diff --git a/target/classes/com/glxp/mipsdl/util/ExecutorUtil.class b/target/classes/com/glxp/mipsdl/util/ExecutorUtil.class new file mode 100644 index 0000000..8874774 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/util/ExecutorUtil.class differ diff --git a/target/classes/com/glxp/mipsdl/util/ResultVOUtils.class b/target/classes/com/glxp/mipsdl/util/ResultVOUtils.class new file mode 100644 index 0000000..119e270 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/util/ResultVOUtils.class differ diff --git a/target/classes/com/glxp/mipsdl/util/SubmitOrderUtil.class b/target/classes/com/glxp/mipsdl/util/SubmitOrderUtil.class new file mode 100644 index 0000000..dd3296c Binary files /dev/null and b/target/classes/com/glxp/mipsdl/util/SubmitOrderUtil.class differ diff --git a/target/classes/com/glxp/mipsdl/util/http/UHttpUtils.class b/target/classes/com/glxp/mipsdl/util/http/UHttpUtils.class new file mode 100644 index 0000000..ce622d1 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/util/http/UHttpUtils.class differ diff --git a/target/classes/com/glxp/mipsdl/vo/ErpOrderEntity.class b/target/classes/com/glxp/mipsdl/vo/ErpOrderEntity.class new file mode 100644 index 0000000..11895e1 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/vo/ErpOrderEntity.class differ diff --git a/target/classes/com/glxp/mipsdl/vo/file/phxyy/PhxyyCorpEntity.class b/target/classes/com/glxp/mipsdl/vo/file/phxyy/PhxyyCorpEntity.class new file mode 100644 index 0000000..ae1e68f Binary files /dev/null and b/target/classes/com/glxp/mipsdl/vo/file/phxyy/PhxyyCorpEntity.class differ diff --git a/target/classes/com/glxp/mipsdl/vo/file/phxyy/PhxyyProductEntity.class b/target/classes/com/glxp/mipsdl/vo/file/phxyy/PhxyyProductEntity.class new file mode 100644 index 0000000..0d516e7 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/vo/file/phxyy/PhxyyProductEntity.class differ diff --git a/target/classes/com/glxp/mipsdl/vo/file/yxzyy/YxzyyProductEntity.class b/target/classes/com/glxp/mipsdl/vo/file/yxzyy/YxzyyProductEntity.class new file mode 100644 index 0000000..2d417ca Binary files /dev/null and b/target/classes/com/glxp/mipsdl/vo/file/yxzyy/YxzyyProductEntity.class differ diff --git a/target/classes/com/glxp/mipsdl/vo/file/yyu8v31/ErpOrderEntity.class b/target/classes/com/glxp/mipsdl/vo/file/yyu8v31/ErpOrderEntity.class new file mode 100644 index 0000000..fd5c05e Binary files /dev/null and b/target/classes/com/glxp/mipsdl/vo/file/yyu8v31/ErpOrderEntity.class differ diff --git a/target/classes/com/glxp/mipsdl/vo/file/yyu8v31/ErpStockEntity.class b/target/classes/com/glxp/mipsdl/vo/file/yyu8v31/ErpStockEntity.class new file mode 100644 index 0000000..db9ee45 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/vo/file/yyu8v31/ErpStockEntity.class differ diff --git a/target/classes/com/glxp/mipsdl/vo/file/zazyy/ZyCorpEntity.class b/target/classes/com/glxp/mipsdl/vo/file/zazyy/ZyCorpEntity.class new file mode 100644 index 0000000..1204593 Binary files /dev/null and b/target/classes/com/glxp/mipsdl/vo/file/zazyy/ZyCorpEntity.class differ diff --git a/target/classes/com/glxp/mipsdl/vo/file/zazyy/ZyProductEntity.class b/target/classes/com/glxp/mipsdl/vo/file/zazyy/ZyProductEntity.class new file mode 100644 index 0000000..c6587fc Binary files /dev/null and b/target/classes/com/glxp/mipsdl/vo/file/zazyy/ZyProductEntity.class differ diff --git a/target/classes/hosp_dict.json b/target/classes/hosp_dict.json new file mode 100644 index 0000000..95096a2 --- /dev/null +++ b/target/classes/hosp_dict.json @@ -0,0 +1,10 @@ +[ + {"code": "100000", "name": "自定义规范标准"}, + {"code": "100001", "name": "测试接口"}, + {"code": "100002", "name": "用友3.1版本,片仔癀诊断"}, + {"code": "100003", "name": "智业V1,诏安医院"}, + {"code": "100004", "name": "阳光采购平台"}, + {"code": "100005", "name": "平和县医院"}, + {"code": "100006", "name": "东山县医院"}, + {"code": "100007", "name": "云霄中医院"} +] \ No newline at end of file diff --git a/target/classes/logback-spring.xml b/target/classes/logback-spring.xml new file mode 100644 index 0000000..403fc91 --- /dev/null +++ b/target/classes/logback-spring.xml @@ -0,0 +1,145 @@ + + + logback + + + + + + %d{HH:mm:ss.SSS} %contextName [%thread] %-5level %logger{36} - %msg%n + + + + + + + + + + ${log.path}/debug.log + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + UTF-8 + + + + + ${log.path}/web-debug-%d{yyyy-MM-dd}.%i.log + + 20MB + + + 15 + + + + debug + ACCEPT + DENY + + + + + + + ${log.path}/info.log + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + UTF-8 + + + + + ${log.path}/web-info-%d{yyyy-MM-dd}.%i.log + + 20MB + + + 15 + + + + info + ACCEPT + DENY + + + + + + + ${log.path}/warn.log + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + UTF-8 + + + + ${log.path}/web-warn-%d{yyyy-MM-dd}.%i.log + + 20MB + + + 15 + + + + warn + ACCEPT + DENY + + + + + + + ${log.path}/error.log + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + UTF-8 + + + + ${log.path}/web-error-%d{yyyy-MM-dd}.%i.log + + 20MB + + + 15 + + + + ERROR + ACCEPT + DENY + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/target/classes/mybatis/mapper/auth/AuthLicenseDao.xml b/target/classes/mybatis/mapper/auth/AuthLicenseDao.xml new file mode 100644 index 0000000..0216d04 --- /dev/null +++ b/target/classes/mybatis/mapper/auth/AuthLicenseDao.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + id, appid, `name`, apikey, secretkey, createDate, customerId, companyName + + \ No newline at end of file diff --git a/target/classes/mybatis/mapper/auth/AuthUserDao.xml b/target/classes/mybatis/mapper/auth/AuthUserDao.xml new file mode 100644 index 0000000..9949199 --- /dev/null +++ b/target/classes/mybatis/mapper/auth/AuthUserDao.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + id, userName, `passWord`, lastLoginIp, createTime, userFlag, lastModifyTime, comments, + employeeName, CustomerId, lastLoginTime, locDeptCode, locInvCode + + \ No newline at end of file diff --git a/target/classes/mybatis/mapper/auth/AuthWarehouseDao.xml b/target/classes/mybatis/mapper/auth/AuthWarehouseDao.xml new file mode 100644 index 0000000..1a55020 --- /dev/null +++ b/target/classes/mybatis/mapper/auth/AuthWarehouseDao.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + id, code, `name`, parentId, remark, defaultInv, thirdId, thirdId1, thirdId2, thirdId3, + thirdId4, parentCode + + \ No newline at end of file diff --git a/target/classes/mybatis/mapper/basic/BasicBussinessTypeDao.xml b/target/classes/mybatis/mapper/basic/BasicBussinessTypeDao.xml new file mode 100644 index 0000000..62be94c --- /dev/null +++ b/target/classes/mybatis/mapper/basic/BasicBussinessTypeDao.xml @@ -0,0 +1,130 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + id, + mainAction, + `action`, + `name`, + `enable`, + remark, + thirdSysFk, + genUnit, + innerOrder, + secCheckEnable, + checkEnable, + checkUdims, + checkPdaEd, + checkPdaUn, + checkPc, + checkWebNew, + checkSp, + checkChange, + secCheckUdims, + secCheckPdaEd, + secCheckPdaUn, + secCheckPc, + secCheckWebNew, + secCheckChange, + secCheckSp, + corpType, + supplementOrderType, + checkBalance, + secCheckBalance, + useDyCount, + expireTip, + updateTime, + defaultUnit, + `prefix`, + outToSpms, + ullageFill, + scanPreIn, + vailInv, + entrutSpms, + codeFillCheck, + defaultSubInv, + defaultInv, + orderVisibleType, + checkCopy, + secCheckCopy, + originAction, + advanceType, + changeEnable, + spUse, + preIn, + supplementAll, + `createUser`, + createTime, + updateUser + + + + + \ No newline at end of file diff --git a/target/classes/mybatis/mapper/basic/BasicCorpDao.xml b/target/classes/mybatis/mapper/basic/BasicCorpDao.xml new file mode 100644 index 0000000..57abc32 --- /dev/null +++ b/target/classes/mybatis/mapper/basic/BasicCorpDao.xml @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + id, + erpId, + `name`, + spell, + addr, + `status`, + `type`, + contact, + mobile, + creditNo, + thirdId, + thirdId1, + thirdId2, + thirdId3, + thirdId4, + thirdName, + thirdName1, + thirdName2, + thirdName3, + thirdName4, + corpType, + outType, + `createUser`, + createTime, + updateUser, + updateTime, + remark + + + + + \ No newline at end of file diff --git a/target/classes/mybatis/mapper/basic/BasicProductsDao.xml b/target/classes/mybatis/mapper/basic/BasicProductsDao.xml new file mode 100644 index 0000000..0635f75 --- /dev/null +++ b/target/classes/mybatis/mapper/basic/BasicProductsDao.xml @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + id, uuid, originUuid, nameCode, deviceRecordKey, packRatio, packUnit, packLevel, + bhxjsl, bhzxxsbzsl, zxxsbzbhsydysl, bhxjcpbm, bzcj, cpmctymc, cplb, flbm, ggxh, qxlb, + tyshxydm, ylqxzcrbarmc, zczbhhzbapzbh, ylqxzcrbarywmc, sydycpbs, sjcpbm, versionNumber, + diType, ybbm, sptm, manufactory, measname, productType, scbssfbhph, scbssfbhxlh, + scbssfbhscrq, scbssfbhsxrq, cpms, allowNoBatch, allowNoExpire, allowNoProduct, spmc, + cplx, hchzsb, cpdls, price, basicPrductRemak1, basicPrductRemak2, basicPrductRemak3, + basicPrductRemak4, basicPrductRemak5, basicPrductRemak6, basicPrductRemak7, basicPrductRemak8, + createTime, updateTime, `createUser`, updateUser, remark + + \ No newline at end of file diff --git a/target/classes/mybatis/mapper/basic/BasicUdirelDao.xml b/target/classes/mybatis/mapper/basic/BasicUdirelDao.xml new file mode 100644 index 0000000..bfa5fdc --- /dev/null +++ b/target/classes/mybatis/mapper/basic/BasicUdirelDao.xml @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + id, uuid, mainId, thirdId, thirdId1, thirdId2, thirdId3, thirdId4, udplatCode, isUseDy, + isDisable, isLock, lockStatus, isAdavence, useMuti, useNum, supName, createTime, + updateTime, modifyTime, `createUser`, updateUser, remark + + \ No newline at end of file diff --git a/target/classes/mybatis/mapper/inout/IoCodeDao.xml b/target/classes/mybatis/mapper/inout/IoCodeDao.xml new file mode 100644 index 0000000..1f06c3c --- /dev/null +++ b/target/classes/mybatis/mapper/inout/IoCodeDao.xml @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + id, code, mainAction, `action`, orderId, corpOrderId, nameCode, batchNo, produceDate, + expireDate, serialNo, packageLevel, supId, relId, `count`, reCount, deptCode, invCode, + warehouseCode, updateTime, createTime + + \ No newline at end of file diff --git a/target/classes/mybatis/mapper/inout/IoCodeTempDao.xml b/target/classes/mybatis/mapper/inout/IoCodeTempDao.xml new file mode 100644 index 0000000..02c21f1 --- /dev/null +++ b/target/classes/mybatis/mapper/inout/IoCodeTempDao.xml @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + id, code, mainAction, `action`, orderId, corpOrderId, nameCode, batchNo, produceDate, + expireDate, serialNo, packageLevel, supId, relId, `count`, reCount, deptCode, invCode, + warehouseCode, updateTime, createTime + + \ No newline at end of file diff --git a/target/classes/mybatis/mapper/inout/IoOrderDao.xml b/target/classes/mybatis/mapper/inout/IoOrderDao.xml new file mode 100644 index 0000000..ec14b33 --- /dev/null +++ b/target/classes/mybatis/mapper/inout/IoOrderDao.xml @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + id, billNo, corpOrderId, mainAction, `action`, fromCorp, fromDeptCode, fromInvCode, + fromType, `status`, dealStatus, `createUser`, createTime, updateUser, updateTime, + reviewUser, auditTime, customerId, deptCode, invCode, outChangeEnable, originUllageSupNo, + ullageSupNo, supplementNo, thirdBillNo, replicateNo, preOutBillNo, preInBillNo, errMsg, + printRemark, remark, orderType, entrustEnd + + \ No newline at end of file diff --git a/target/classes/mybatis/mapper/inout/IoOrderDetailBizDao.xml b/target/classes/mybatis/mapper/inout/IoOrderDetailBizDao.xml new file mode 100644 index 0000000..0d33397 --- /dev/null +++ b/target/classes/mybatis/mapper/inout/IoOrderDetailBizDao.xml @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + id, orderIdFk, bindRlFk, uuidFk, nameCode, batchNo, productDate, expireDate, coName, + certCode, ylqxzcrbarmc, manufacturer, measname, spec, price, secSalesListNo, firstSalesInvNo, + secSalesInvNo, invoiceDate, supId, bindSupStatus, `count`, reCount, remark, remark1, + remark2, remark3, remark4, remark5 + + \ No newline at end of file diff --git a/target/classes/mybatis/mapper/inout/IoOrderDetailCodeDao.xml b/target/classes/mybatis/mapper/inout/IoOrderDetailCodeDao.xml new file mode 100644 index 0000000..86bd65b --- /dev/null +++ b/target/classes/mybatis/mapper/inout/IoOrderDetailCodeDao.xml @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + id, orderIdFk, bindRlFk, uuidFk, nameCode, batchNo, productDate, expireDate, coName, + certCode, ylqxzcrbarmc, manufacturer, measname, spec, price, secSalesListNo, firstSalesInvNo, + secSalesInvNo, invoiceDate, supId, bindSupStatus, `count`, reCount, remark, remark1, + remark2, remark3, remark4, remark5 + + \ No newline at end of file diff --git a/target/classes/mybatis/mapper/inout/IoOrderDetailResultDao.xml b/target/classes/mybatis/mapper/inout/IoOrderDetailResultDao.xml new file mode 100644 index 0000000..cc50da0 --- /dev/null +++ b/target/classes/mybatis/mapper/inout/IoOrderDetailResultDao.xml @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + id, orderIdFk, bindRlFk, uuidFk, nameCode, batchNo, productDate, expireDate, coName, + certCode, ylqxzcrbarmc, manufacturer, measname, spec, price, secSalesListNo, firstSalesInvNo, + secSalesInvNo, invoiceDate, supId, bindSupStatus, `count`, reCount, remark, remark1, + remark2, remark3, remark4, remark5 + + \ No newline at end of file diff --git a/target/classes/mybatis/mapper/inout/IoOrderUploadLogDao.xml b/target/classes/mybatis/mapper/inout/IoOrderUploadLogDao.xml new file mode 100644 index 0000000..cd8bdb9 --- /dev/null +++ b/target/classes/mybatis/mapper/inout/IoOrderUploadLogDao.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + id, billNo, billDate, billType, thrBillNo, submitTime, `status`, `result`, fromType + + \ No newline at end of file diff --git a/target/classes/mybatis/mapper/pzhzd/YyUcloudV31SetDao.xml b/target/classes/mybatis/mapper/pzhzd/YyUcloudV31SetDao.xml new file mode 100644 index 0000000..9a39e83 --- /dev/null +++ b/target/classes/mybatis/mapper/pzhzd/YyUcloudV31SetDao.xml @@ -0,0 +1,17 @@ + + + + + + + \ No newline at end of file diff --git a/target/classes/mybatis/mapper/system/SysErpLogDao.xml b/target/classes/mybatis/mapper/system/SysErpLogDao.xml new file mode 100644 index 0000000..e4b235a --- /dev/null +++ b/target/classes/mybatis/mapper/system/SysErpLogDao.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/target/classes/mybatis/mapper/system/SysHospConfigDao.xml b/target/classes/mybatis/mapper/system/SysHospConfigDao.xml new file mode 100644 index 0000000..97c1a73 --- /dev/null +++ b/target/classes/mybatis/mapper/system/SysHospConfigDao.xml @@ -0,0 +1,12 @@ + + + + + + + + + code, + name + + \ No newline at end of file diff --git a/target/classes/mybatis/mapper/system/SysScheduledDao.xml b/target/classes/mybatis/mapper/system/SysScheduledDao.xml new file mode 100644 index 0000000..c3ac860 --- /dev/null +++ b/target/classes/mybatis/mapper/system/SysScheduledDao.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + id, cronName, cron, customerId, remark + + \ No newline at end of file diff --git a/target/classes/mybatis/mapper/system/SysThirdSysApiDao.xml b/target/classes/mybatis/mapper/system/SysThirdSysApiDao.xml new file mode 100644 index 0000000..0f55f3b --- /dev/null +++ b/target/classes/mybatis/mapper/system/SysThirdSysApiDao.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + id, `name`, apiUrl, guideUrl, remark, `type` + + \ No newline at end of file diff --git a/target/classes/mybatis/mapper/thrsys/ThrBustypeOriginDao.xml b/target/classes/mybatis/mapper/thrsys/ThrBustypeOriginDao.xml new file mode 100644 index 0000000..97a275b --- /dev/null +++ b/target/classes/mybatis/mapper/thrsys/ThrBustypeOriginDao.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + id, + `name`, + `action`, + thirdSys, + `enable`, + inoutType, + updateTime, + remark, + `createUser`, + updateUser, + createTime + + + + \ No newline at end of file diff --git a/target/classes/mybatis/mapper/thrsys/ThrCorpDao.xml b/target/classes/mybatis/mapper/thrsys/ThrCorpDao.xml new file mode 100644 index 0000000..df08981 --- /dev/null +++ b/target/classes/mybatis/mapper/thrsys/ThrCorpDao.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + id, unitId, spell, addr, creditNo, contact, mobile, thirdSysFk, `name`, `createUser`, + createTime, updateUser, updateTime, remark + + \ No newline at end of file diff --git a/target/classes/mybatis/mapper/thrsys/ThrDeptDao.xml b/target/classes/mybatis/mapper/thrsys/ThrDeptDao.xml new file mode 100644 index 0000000..858cd66 --- /dev/null +++ b/target/classes/mybatis/mapper/thrsys/ThrDeptDao.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + id, pId, code, `name`, advanceType, isDefault, `status`, updateTime, remark, `level`, + pcode, thirdSysFk + + \ No newline at end of file diff --git a/target/classes/mybatis/mapper/thrsys/ThrInvWarehouseDao.xml b/target/classes/mybatis/mapper/thrsys/ThrInvWarehouseDao.xml new file mode 100644 index 0000000..1d98ca3 --- /dev/null +++ b/target/classes/mybatis/mapper/thrsys/ThrInvWarehouseDao.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + id, code, `name`, parentId, remark, thirdSysFk + + \ No newline at end of file diff --git a/target/classes/mybatis/mapper/thrsys/ThrProductsDao.xml b/target/classes/mybatis/mapper/thrsys/ThrProductsDao.xml new file mode 100644 index 0000000..9aa4f9f --- /dev/null +++ b/target/classes/mybatis/mapper/thrsys/ThrProductsDao.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + id, code, `name`, measname, spec, registerNo, manufactory, thirdSysFk, cplb, flbm, + qxlb, ybbm, sptm, tyshxydm, zczbhhzbapzbh, ylqxzcrbarmc, ylqxzcrbarywmc, cpms, updateTime, + supName, model, `standard`, qtbm, zczyxqz, remark, remark1, remark2, remark3, price, + `createUser`, createTime, updateUser + + \ No newline at end of file diff --git a/target/classes/mybatis/mapper/thrsys/ThrSystemBusApiDao.xml b/target/classes/mybatis/mapper/thrsys/ThrSystemBusApiDao.xml new file mode 100644 index 0000000..20683d7 --- /dev/null +++ b/target/classes/mybatis/mapper/thrsys/ThrSystemBusApiDao.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + id, code, `name`, thirdBuyName, thirdBuyCode, thirdSys, url, `type`, remark, filed, + filed1, filed2, filed3, filed4 + + \ No newline at end of file diff --git a/target/classes/mybatis/mapper/thrsys/ThrSystemDao.xml b/target/classes/mybatis/mapper/thrsys/ThrSystemDao.xml new file mode 100644 index 0000000..0e18484 --- /dev/null +++ b/target/classes/mybatis/mapper/thrsys/ThrSystemDao.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + id, thirdId, thirdName, apikey, secretkey, mainSys, enabled, thridUrl, thirdSysUrl, + guideUrl, remark + + + \ No newline at end of file diff --git a/target/classes/mybatis/mapper/thrsys/ThrSystemDetailDao.xml b/target/classes/mybatis/mapper/thrsys/ThrSystemDetailDao.xml new file mode 100644 index 0000000..8042ebc --- /dev/null +++ b/target/classes/mybatis/mapper/thrsys/ThrSystemDetailDao.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + id, `name`, `key`, `value`, enabled, guideUrl, remark, thirdSysFk, itrCache, fromType + + + + \ No newline at end of file diff --git a/udi-erp-sync-java.iml b/udi-erp-sync-java.iml new file mode 100644 index 0000000..9a3ddc0 --- /dev/null +++ b/udi-erp-sync-java.iml @@ -0,0 +1,133 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/第三方接口文档23022401修订版.docx b/第三方接口文档23022401修订版.docx new file mode 100644 index 0000000..dfe8666 --- /dev/null +++ b/第三方接口文档23022401修订版.docx @@ -0,0 +1,2172 @@ + + + + UDI管理系统 + 第三方接口说明文档 + + + + 版本号<3.0> + 发布时间<20200506> + 初稿编写人<翟润虎> + 修订人<吴毅鹏,叶文杰> + 版本管理 + 版本号 + 操作者 + 内容 + 操作日期 + 审批者 + 审批日期 + 2.0 +翟闰虎 +第三方接口需求 +2022-05-06 +叶文杰 +2022-05-08 + 3.0 +叶文杰 +第三方接口需求 +2022-09-15 +吴毅鹏 +2022-09-18 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 目录 + 1 公共参数 6 +2 接口调用方式 6 +3 接口需求列表 6 + 3.1 A001单位往来信息查询 9 + 3.1.1 接口说明 9 + 3.1.2 使用场景 9 + 3.1.3 输入参数说明 10 + 3.1.4 输入参数示例 10 + 3.1.5 返回说明 10 + 3.1.6 返回示例 10 + 3.2 A002产品信息查询 11 + 3.2.1 接口说明 11 + 3.2.2 使用场景 12 + 3.2.3 输入参数说明 12 + 3.2.4 输入参数示例 12 + 3.2.5 返回说明 12 + 3.2.6 返回示例 13 + 2.3 A003仓库(科室)信息查询 15 + 3.3.1 接口说明 15 + 3.2.2 使用场景 15 + 3.3.3 输入参数示例 15 + 3.3.4 输入参数说明 15 + 3.3.5 返回说明 16 + 3.3.6 返回示例 16 + 3.4 A004单据类型信息查询 17 + 3.4.1 接口说明 17 + 3.4.2 使用场景 17 + 3.4.3 输入参数说明 18 + 3.4.4 输入参数示例 18 + 3.4.5 返回说明 18 + 3.4.6 返回示例 18 + 2.5 A005单据(订单)信息查询 19 + 3.5.1 接口说明 19 + 3.5.2 使用场景 20 + 3.5.3 输入参数说明 20 + 3.5.5 输入参数示例 20 + 3.5.6 返回说明 20 + 3.5.7 返回示例 21 + 3.6 A006产品库存信息查询 24 + 3.6.1 接口说明 24 + 3.6.2 使用场景 24 + 3.6.3 输入参数示例 24 + 3.6.4 参数说明 25 + 3.6.5 返回说明 25 + 3.6.6 返回示例 26 + 3.7 A007患者信息查询 28 + 3.7.1 接口说明 28 + 3.7.2 使用场景 28 + 3.8 B001接收新增产品信息 28 + 3.8.1 接口说明 28 + 3.8.2 使用场景 28 + 3.8.3 输入参数示例 28 + 3.8.4 输入参数说明 29 + 3.8.5 返回说明 30 + 3.8.6 返回示例 30 + 3.9 B002接收新增往来单位信息 31 + 3.9.1 接口说明 31 + 3.9.2 使用场景 31 + 3.9.3 输入参数示例 31 + 3.9.4 输入参数说明 32 + 3.9.5 返回说明 32 + 3.8.6 返回示例 32 + 3.10 B003接收单据(订单)信息 32 + 3.10.1 接口说明 32 + 3.10.2 使用场景 33 + 3.10.3 输入参数示例 33 + 3.10.4 输入参数说明 35 + 3.10.5 返回说明 36 + 3.10.6 返回示例 36 + 3.11 C001产品库存信息查询 37 + 3.11.1 接口说明 37 + 3.11.2 使用场景 37 + 3.11.3 输入参数示例 37 + 3.11.4 参数说明 37 + 3.11.5 返回说明 37 + 3.11.6 返回示例 38 + + + + + + + + + + + + + + + + + + +名词解释 +"第三方系统":一般是指医院已经在使用的其它系统,如:物资管理系统、HIS系统、试剂管理系统、结算系统、医保系统等等。 +"往来单位":是供应商、客户等的统称。 +"统一编码":是指院内各第三方系统(物资系统、HIS系统等)采用相同耗材字典、供应商字典等。 +单据类型:进行出入库作业的单据类型,如采购入库单、临床使用出库单、调拨出库单、调拨入库单等等。 + +公共参数 + 公共参数(api_key和secret_key)是"医院第三方系统"根据系统安全需要,可以提供给"医院UDI管理系统"调用接口时需要安全认证的信息,接口权限验证使用头部参数校验,"医院UDI管理系统"在发起调用时将接口授权参数携带在请求头(Header)中发送。 + 参数名称 + 是否必填 + 示例 + 参数说明 + api_key + 是 + ewKD2Cyr + + secret_key + 是 + rO4nDvNWKJ1uNuQQBnECPjnpDv4w6nh8 + +接口调用方式 +接口统一采用HTTP协议,调用时需要在请求头部中传递公共参数。 +接口地址为"服务地址 + 接口方法名"组成,接口参数要求参考对应接口参数说明。 + 3 接口需求列表 + "医院UDI管理系统"支持多系统数据交互服务,第三方服务模块提供公开的数据主动推送、主动查询和被查询服务,满足医院实际业务作业需要,"医院第三方系统"需要根据下表接口需求,具体实现接口。一般医院耗材流通包括以下环节: + 耗材采购 -- > 科室领用 -- > 临床使用 -- > 费用结算 + 注意,如果院内有多套第三方系统需要和UDI管理系统进行互联互通,并且这多套系统基础数据编码不统一,那么基础数据编码不统一的院内第三方系统需要分别实现接口需求列表中的部分或全部接口。 + + 提供被查询接口:由院内第三方系统各相关业务系统具体实现的被查询接口,各相关业务系统包括但不限于物资管理系统、试剂管理系统、HIS系统、结算系统、医保、集采等系统。 +编号 + 接口名称 + 使用场景描述 +A001 +单位往来信息查询 +(供应商信息查询) + 医院第三方系统提供往来单位信息查询接口,UDI管理系统通过此接口获取院内第三方系统的往来单位信息。当UDI管理系统和院内第三方系统的业务数据(接口A005、B002和B003)需要交互时,UDI管理系统能够自动把往来单位编码转换为符合双方系统的编码,再进行提交或保存。院内管理采购的系统(物资管理系统)必须实现本接口。 +A002 +产品信息查询 +(耗材字典查询) + 医院第三方系统提供产品信息查询接口,UDI管理系统通过此接口获取院内第三方系统的产品信息。当UDI管理系统和院内第三方系统的业务数据(接口A005、B001和B003)需要交互时,UDI管理系统能够自动把产品信息编码转换为符合双方系统的编码,再进行提交或保存。因此,除了院内管理采购的系统(物资管理系统)必须实现本接口外,其它需要进行出入库作业的各相关第三方系统通常也需要实现本接口,除非院内各第三方系统已经实现统一编码管理,其它业务系统则无需再实现此接口。 +A003 +仓库/科室信息查询 + 医院第三方系统提供的仓库/科室信息查询接口,UDI管理系统通过此接口获取院内第三方系统的仓库/科室信息。当UDI管理系统和院内第三方系统的业务单据信息(接口A005和B003)交互时,提交或获取的单据信息如果包含仓库/科室信息,则院内各相关第三方系统必须实现本接口。 +A004 +单据类型信息查询 + 医院第三方系统提供的单据类型信息查询接口,UDI管理系统通过此接口获取院内第三方系统的单据类型信息。当UDI管理系统需要和院内第三方目标系统交换业务单据信息(接口A005和B003)时,则院内各相关第三方目标系统必须实现本接口。 +A005 +单据(订单)信息查询 + 医院第三方系统提供的单据(订单)信息查询接口,UDI管理系统通过此接口获取院内第三方系统的单据(订单)信息。由院内第三方目标系统发起相关的业务,如采购订单、调拨(领用)单等,并需要把相关业务单据信息推送给UDI管理系统,则院内各相关第三方目标系统必须实现本接口。 +A006 +产品库存信息查询 + 医院第三方系统提供的产品库存信息查询接口,UDI管理系统通过此接口获取院内第三方仓库管理系统的产品库存信息,进行相关业务处理。当院内第三方系统需要对库存进行实时校验或定期扫码盘点时,院内各相关第三方系统必须实现本接口。 +A007 +患者信息查询 + 医院第三方系统提供的患者信息查询接口,UDI管理系统通过此接口获取院内第三方医嘱(HIS)系统的患者相关信息(病历、医嘱、处方)。UDI管理系统可以根据取得的患者信息,临床使用出库信息,统计患者耗材使用情况详细信息,可追溯溯源至耗材的单品或批次。 + 提供接收接口 +编号 + 接口名称 + 使用场景描述 +B001 +接收新增产品信息 + 医院第三方系统提供的接收新增产品信息接口,UDI管理系统通过此接口把供应商新增的配送产品信息推送至院内第三方系统(一般指物资管理系统),新增的产品信息为未审核状态。院内采购入库的第三方系统可以实现本接口,简化操作人员基础数据录入。 +B002 +接收新增往来单位信息 + 医院第三方系统提供的接收新增往来单位信息接口,UDI管理系统通过此接口把医院新增的合格往来单位(供应商)信息推送至院内第三方系统(一般指物资管理系统),新增的往来单位信息为未审核状态。院内采购入库的第三方系统可以实现本接口,简化操作人员基础数据录入。 +B003 +接收单据(订单)信息 + 医院第三方系统提供的接收单据(订单)信息接口,UDI管理系统通过此接口把现场出入库扫码生成的业务单据信息推送至院内第三方系统。院内采购入库、临床使用出库和出库结算的各相关第三方系统必须实现本接口。 + 主动查询接口 +编号 + 接口名称 + 使用场景描述 +C001 +产品库存信息查询 + UDI管理系统提供产品库存查询接口,院内第三方系统可以通过此接口查询产品库存信息,产品库存信息包含产品信息、批次号、生产日期、失效日期、数量、计量单位等信息。可以方便院内第三方系统业务开单出库前查询相关产品库存情况,如HIS系统中医生给患者开处方前查看特定耗材库存情况。 + + 3.1 A001单位往来信息查询 + 3.1.1 接口说明 +url + +协议 +http +请求方式 +POST +说明 +请求参数放在body中,以json格式传递 + 3.1.2 使用场景 + 医院第三方系统提供往来单位信息查询接口,UDI管理系统通过此接口获取院内第三方系统的往来单位信息。当UDI管理系统和院内第三方系统的业务数据(接口A005、B002和B003)需要交互时,UDI管理系统能够自动把往来单位编码转换为符合双方系统的编码,再进行提交或保存。院内管理采购的系统(物资管理系统)必须实现本接口。 + + 3.1.3 输入参数说明 + 参数名称 + 是否必填 + 类型 + 示例 + 参数说明 + lastUpdateTime + 否 + String + 2020-01-05 12:00:00 +最后更新时间 + unitId + 否 + String + 1673 +往来单位编码,支持模糊查询 + name + 否 + String + 福建省诏安县医院 +往来单位名称,支持模糊查询 + page + 是 + Integer + 1 + 页码 + limit + 是 + Integer + 50 + 条数 + 3.1.4 输入参数示例 +{ + "lastUpdateTime": "2020-01-05 12:00:00", + "unitId": "1673", + "name": "福建省诏安县医院", + "page": "1", + "limit": "50" +} + 3.1.5 返回说明 + 参数名称 + 类型 +是否必填 + 示例 + 描述 + unitId + String + 是 + 1673 +往来单位ID + name + String + 是 + 福建省诏安县医院 +往来单位名称 + lastUpdateTime + String + 是 + 2020-01-05 12:00:00 +最后更新时间 + addr + String + 是 + 诏安县南诏镇江厝前路65号 +地址 + creditNo + String + 是 + 123506244897495930 +社会信用号 + contact + String + 是 + 沈主任 +联系人 + mobile + String + 是 + 13300000000 +联系电话 + 3.1.6 返回示例 +成功 +{ + "code": 20000, + "message": "success", + "data": { + "total": 300, + "list": [ + { + "unitId": "2468", + "name": "福建省诏安县医院", + "addr": "诏安县南诏镇江厝前路65号", + "creditNo": "123506244897495930", + "contact": "沈主任", + "mobile": "1330000000" + }, + { + "unitId": "2469", + "name": "福建省诏安县医院11", + "addr": "诏安县南诏镇江厝前路65号", + "creditNo": "123506244897495930", + "contact": "沈主任", + "mobile": "1330000000" + } + ] + } +} +失败 +{ + "code": 500, + "message": "错误原因", + "data": {} +} + 3.2 A002产品信息查询 + 3.2.1 接口说明 +url + +协议 +http +请求方式 +POST +说明 +请求参数放在body中,以json格式传递 + 3.2.2 使用场景 + 医院第三方系统提供产品信息查询接口,UDI管理系统通过此接口获取院内第三方系统的产品信息。当UDI管理系统和院内第三方系统的业务数据(接口A005、B001和B003)需要交互时,UDI管理系统能够自动把产品信息编码转换为符合双方系统的编码,再进行提交或保存。因此,除了院内管理采购的系统(物资管理系统)必须实现本接口外,其它需要进行出入库作业的各相关第三方系统通常也需要实现本接口,除非院内各第三方系统已经实现统一编码管理,其它业务系统则无需再实现此接口。 + 3.2.3 输入参数说明 + 参数名称 + 是否必填 + 类型 + 示例 + 参数说明 + lastUpdateTime + 否 + String + +最后更新时间 + code + 否 + String + +产品编码,支持模糊查询 + name + 否 + String + +器械通用名,支持模糊查询 + standard + 否 + String + +规格型号,支持模糊查询 + registerNo + 否 + String + +注册/备案号,支持模糊查询 + manufactory + 否 + String + +生产厂家 + ybbm + 否 + String + +医保编码 + page + 是 + Integer + +页码 + limit + 是 + Integer + +条数 + 3.2.4 输入参数示例 +{ + "lastUpdateTime": "2020-01-05 12:00:00", + "code": "6555", + "name": "下肢直型锁定", + "standard": "12孔", + "registerNo": "20153461024", + "manufactory": "江苏艾迪尔", + "ybbm": "32543534534", + "page": "1", + "limit": "50" +} + 3.2.5 返回说明 + 参数名称 + 类型 +是否必填 + 示例 + 描述 + lastUpdateTime + String + 是 + +最后更新时间 + code + String + 是 + +产品编码 + name + String + 是 + +产品名称 + measname + String + 是 + +计量单位 + standard + String + 是 + +规格型号 + registerNo + String + 是 + +注册/备案号 + manufactoryCode + String + 是 + +生产厂家编码 + manufactory + String + 是 + +生产厂家 + supCode + String + 是 + +配送企业编码 + supName + String + 是 + +配送企业 + cplb + String + 是 + +产品类别 + flbm + String + 是 + +分类编码 + qxlb + String + 是 + +器械类别 + ybbm + String + 是 + +医保编码 + sptm + String + 是 + +商品条码 + tyshxydm + String + 是 + +注册人社会信用号 + ylqxzcrbarmc + String + 是 + +注册人/备案人名称 + ylqxzcrbarywmc + String + 是 + +注册人/备案人英文名称 + cpms + String + 是 + +产品描述 + spmc + String + 是 + +商品名称 + qtbm + String + 是 + +其他编码 + zczyxqz + String + 是 + +注册证有效期截止时间 + price + String + 是 + +产品价格 + remark + String + 否 + +4个备注字段,需要提供的字段在列表中不存在,可以使用备注字段 + remark1 + String + 否 + + + remark2 + String + 否 + + + remark3 + String + 否 + + + 3.2.6 返回示例 +成功 +{ + "code": 20000, + "message": "success", + "data": { + "total": 100, + "list": [ + { + "code": "6555", + "name": "下肢直型锁定钢板", + "measname": "块", + "spec": "12孔", + "registerNo": "20153461024", + "manufactoryCode": "9000006836", + "manufactory": "江苏艾迪尔", + "supCode": "9000009163", + "supName": "南昌必理商贸有限公司", + " lastUpdateTime": "2022-03-26 09:03:36", + "cplb": "产品类别", + "flbm": "分类编码", + "qxlb": "器械类别", + "ybbm": "医保编码", + "sptm": "商品条码", + "tyshxydm": "注册人社会信用号", + "ylqxzcrbarmc": "注册/备案人名称", + "ylqxzcrbarywmc": "注册/备案人英文名称", + "cpms": "产品描述", + "model": "12孔", + "standard": null, + "spmc": "商品名称", + "qtbm": "其他编码", + "zczyxqz": "注册证有效期截止时间", + "remark":"进口代理商", + "remark1": null, + "remark2": null, + "remark3": null, + "supName ": "配送企业", + "price": "价格", + } + ] + } +} +失败 +{ + "code": 500, + "message": "错误原因", + "data": {} +} + A003仓库(科室)信息查询 + 3.3.1 接口说明 +url + +协议 +http +请求方式 +POST +说明 +请求参数放在body中,以json格式传递 + 3.2.2 使用场景 + 医院第三方系统提供的仓库/科室信息查询接口,UDI管理系统通过此接口获取院内第三方系统的仓库/科室信息。当UDI管理系统和院内第三方系统的业务单据信息(接口A005和B003)交互时,提交或获取的单据信息如果包含仓库/科室信息,则院内各相关第三方系统必须实现本接口。 + 3.3.3 输入参数示例 +{ + "inventoryCode": "1001", + "warehouseCode": "1001001", + "page": "1", + "limit": "50" +} + 3.3.4 输入参数说明 + 参数名称 + 是否必填 + 类型 + 示例 + 参数说明 + inventoryCode + 否 + String + + 仓库号,支持模糊查询 + warehouseCode + 否 + String + + 货位号,支持模糊查询 + page + 是 + Integer + 1 + 页码 + limit + 是 + Integer + 50 + 条数 + 3.3.5 返回说明 +参数名称 +是否必填 +类型 +示例 +参数说明 +code +是 +String + +仓库号 +name +是 +String + +仓库名称 +remark +否 +String + +备注 +details +是 +List +见下表 +单据详情数组 +单据明细表 + 参数名称 + 是否必填 + 类型 + 示例 + 参数说明 + code + 是 + String + +货位号 + name + 是 + String + +货位名称 + remark + 否 + String + +备注 + 3.3.6 返回示例 +成功 +{ + "code": 20000, + "message": "success", + "data": { + "total": 100, + "list": [ + { + "code": "1001", + "name": "仓库1", + "remark": "", + "details": [ + { + "code": "1001001", + "name": "货位1", + "remark": "" + } + ] + }, + { + "code": "1002", + "name": "仓库2", + "remark": "", + "details": [ + { + "code": "1001002", + "name": "货位1", + "remark": "" + } + ] + } + ] + } +} +失败 +{ + "code": 500, + "message": "错误原因", + "data": {} +} + 3.4 A004单据类型信息查询 + 3.4.1 接口说明 +url + +协议 +http +请求方式 +POST +说明 +请求参数放在body中,以json格式传递 + 3.4.2 使用场景 + 医院第三方系统提供的单据类型信息查询接口,UDI管理系统通过此接口获取院内第三方系统的单据类型信息。当UDI管理系统需要和院内第三方目标系统交换业务单据信息(接口A005和B003)时,则院内各相关第三方目标系统必须实现本接口。 + 3.4.3 输入参数说明 + 参数名称 + 是否必填 + 类型 + 示例 + 参数说明 + code + 否 + String + + 单据类型编码 + name + 否 + String + 采购入库 + 单据类型名称 + page + 是 + Integer + 1 + 页码 + limit + 是 + Integer + 10 + 条数 + 3.4.4 输入参数示例 +{ + "code": "cark", + "name": "采购入库", + "page": "1", + "limit": "50" + +} + + 3.4.5 返回说明 + 参数名称 + 类型 +是否必填 + 示例 + 描述 + code + String + 是 + cgrk +单据类型编码 + name + String + 是 + 采购入库单 +单据类型名称 + inoutType + Int + 是 + 出库 +1:入库,2:出库 + remark + String + 否 + +备注 + 3.4.6 返回示例 +成功 +{ + "code": 20000, + "message": "success", + "data": { + "total": 100, + "list": [ + { + "code": "cgrk", + "name": "采购入库单", + "remark": "测试" + }, + { + "code": "syck", + "name": "使用出库单", + "remark": "测试" + }, + { + "code": "cgrk", + "name": "采购入库单", + "remark": "测试" + }, + { + "code": "syck", + "name": "使用出库单", + "remark": "测试" + } + ] + } +} +失败 +{ + "code": 500, + "message": "错误原因", + "data": {} +} + A005单据(订单)信息查询 + 3.5.1 接口说明 +url + +协议 +http +请求方式 +POST +说明 +请求参数放在body中,以json格式传递 + 3.5.2 使用场景 + 医院第三方系统提供的单据(订单)信息查询接口,UDI管理系统通过此接口获取院内第三方系统的单据(订单)信息。由院内第三方目标系统发起相关的业务,如采购订单、调拨(领用)单等,并需要把相关业务单据信息推送给UDI管理系统,则院内各相关第三方目标系统必须实现本接口。 + 3.5.3 输入参数说明 + 参数名称 + 是否必填 + 类型 + 示例 + 参数说明 + lastUpdateTime + 是 + String + + 最后更新时间 + billNo + 否 + String + + 单据号 + corpName + 否 + String + + 往来单位 + billType + 否 + String + + 单据类型 + page + 是 + Int + 1 + 页码 + limit + 是 + Int + 50 + 条数 + 3.5.5 输入参数示例 +{ + "lastUpdateTime": "2022-03-13 00:00:00", + "billNo": "SP2022031376813", + "corpName": "片仔癀诊断", + "billType": "采购入库", + "page": "1", + "limit": "50" +} + 3.5.6 返回说明 +单据主表 + 参数名称 + 类型 +是否必填 + 示例 + 描述 + billNo + String + 是 + SP2022030 +单据号 + billFlag + String + 是 + +单据状态 + billdate + String + 是 + 2022-03-04 +单据日期 + billType + String + 是 + +单据类型 + corpId + String + 是 + +往来单位id + inoutType + Int + 是 + +1:入库,2:出库 + corpName + String + 是 + +单据往来单位名称 + createUser + String + 是 + +创建人 + reviewUser + String + 是 + +审核人 + address + String + 是 + +地址 + linkMan + String + 是 + +联系人 + linkTel + String + 是 + +电话 + remark + String + 是 + +备注 + detailList + List + 是 + 见下表 +订单详情数组 + +单据明细表 + 参数名称 + 类型 +是否必填 + 示例 + 描述 + detailId + String + 是 + +单据号 + productId + String + 是 + 6533 +产品编码 + count + Integer + 是 + +单据数量 + batchNo + String + 是 + 202203 +批次号 + expireDate + String + 是 + +失效日期 + productDate + String + 是 + +生产日期 + reCount + Integer + 是 + +实际数量 + price + BigDecimal + 是 + 20.20 +单价 + productName + String + 是 + +产品名称 + standard + String + 是 + +规格型号 + measname + String + 是 + +计量单位 + registerNo + String + 是 + +注册/备案凭证号 + manufactory + String + 是 + +生产厂家 + remark + String + 否 + +备注 + remark1 + String + 否 + +备注1 + remark2 + String + 否 + +备注2 + remark3 + String + 否 + +备注3 + 3.5.7 返回示例 +成功 +{ + "code": 20000, + "message": "success", + "data": { + "total": 100, + "list": [ + { + "billNo": "SP2022031376813", + "billdate": "2022-03-13 00:00:00", + "corpId": null, + "corpName": null, + "billType": "ST54467264148", + "billFlag": "单据状态", + "createUser": "沈先生", + "reviewUser": "沈先生", + "address": "福建省厦门市集美区", + "linkMan": "沈先生", + "linkTel": "13306961860", + "inoutType": 1, + "remark": null, + "detailList": [ + { + "detailId": "29607390140", + "productId": "6555", + "productName": null, + "standard": null, + "batchNo": "202203", + "expireDate": "2022-03-27", + "productDate": "2022-03-25", + "measname": "克", + "count": 10, + "reCount": 0, + "corpName": "福建片仔癀诊断技术有限公司", + "price": 10, + "registerNo": "32423424242", + "manufactory": "大博医疗", + "remark": null, + "remark1": null, + "remark2": null, + "remark3": null + }, + { + "detailId": "29607390214", + "productId": "6555", + "productName": null, + "standard": null, + "batchNo": "202203", + "expireDate": "2022-03-27", + "productDate": "2022-03-25", + "measname": "克", + "count": 10, + "reCount": 0, + "corpName": "福建片仔癀诊断技术有限公司", + "price": 10, + "registerNo": "32423424242", + "manufactory": "大博医疗", + "remark": null, + "remark1": null, + "remark2": null, + "remark3": null + } + ] + } + ] + } +} +失败 +{ + "code": 500, + "message": "错误原因", + "data": {} +} + 3.6 A006产品库存信息查询 + 3.6.1 接口说明 +url + +协议 +http +请求方式 +POST +说明 +请求参数放在body中,以json格式传递 + 3.6.2 使用场景 + 医院第三方系统提供的产品库存信息查询接口,UDI管理系统通过此接口获取院内第三方仓库管理系统的产品库存信息,进行相关业务处理。当院内第三方系统需要对库存进行实时校验或定期扫码盘点时,院内各相关第三方系统必须实现本接口。 + 3.6.3 输入参数示例 +{ + "warehouseCode": "1001", + "warehouseName": "货位1", + "inventoryCode": "1", + "inventoryName": "总库", + "productName": "下肢直型锁定钢板", + "productId": "6555", + "standard": "12孔", + "registerNo": "20153461024", + "manufactory": "江苏艾迪尔", + "supName": "南昌必理商贸有限公司", + "page": 1, + "limit": 50 +} + 3.6.4 参数说明 + 参数名称 + 是否必填 + 类型 + 示例 + 参数说明 + inventoryCode + 否 + String + +仓库编号,支持模糊查询 + inventoryName + 否 + String + +仓库名称,支持模糊查询 + warehouseCode + 否 + String + +货位编号,支持模糊查询 + warehouseName + 否 + String + +货位名称,支持模糊查询 + productId + 否 + String + +产品编号,支持模糊查询 + productName + 否 + String + +产品名称,支持模糊查询 + standard + 否 + String + +规格型号,支持模糊查询 + registerNo + 否 + String + +注册/备案证号,支持模糊查询 + manufactory + 否 + String + +生产厂家 + supName + 否 + String + +供应商名称(配送企业),支持模糊查询 + page + 是 + Integer + 1 + 页码 + limit + 是 + Integer + 50 + 条数 + 3.6.5 返回说明 + 参数名称 + 类型 +是否必填 + 示例 + 描述 + inventoryCode + String + 是 + 1 +仓库号 + inventoryName + String + 是 + 总库 +仓库名称 + warehouseCode + String + 是 + 1001 +货位号 + warehouseName + String + 是 + 货位1 +货位名称 + productId + String + 是 + +产品ID + batchNo + String + 是 + 202203 +批次号 + productDate + String + 是 + +生产日期 + expireDate + String + 是 + +失效日期 + count + String + 是 + +数量 + productName + String + 是 + +产品名称 + standard + String + 是 + +规格型号 + registerNo + String + 是 + +注册/备案证号 + measname + String + 是 + +计量单位 + manufactory + String + 是 + +生产厂家 + supId + String + 是 + +供应商ID(配送企业) + supName + String + 是 + +配送企业名称 + 3.6.6 返回示例 +成功 +{ + "code": 20000, + "message": "success", + "data": { + "total": 100, + "list":[ { + "batchNo": "202203", + "warehouseCode": "1001", + "warehouseName": "货位1", + "count": 10, + "inventoryCode": "1", + "inventoryName": "总库", + "productName": "下肢直型锁定钢板", + "productDate": "2022-03-25", + "expireDate": "2022-03-27", + "productId": "6555", + "standard": "12孔", + "registerNo": "20153461024", + "manufactory": "江苏艾迪尔", + "measname": "盒", + "supId": "2001", + "supName": "南昌必理商贸有限公司" + }, + { + "batchNo": "202203", + "warehouseCode": "1001", + "warehouseName": "货位1", + "count": 10, + "inventoryCode": "1", + "inventoryName": "总库", + "productName": "下肢直型锁定钢板", + "productDate": "2022-03-25", + "expireDate": "2022-03-27", + "productId": "6555", + "standard": "12孔", + "registerNo": "20153461024", + "manufactory": "江苏艾迪尔", + "measname": "盒", + "supId": "2001", + "supName": "南昌必理商贸有限公司" + } +] +} +} +失败 +{ + "code": 500, + "message": "错误原因", + "data": {} +} + + 3.7 A007患者信息查询 + 3.7.1 接口说明 +url + +协议 +http +请求方式 +POST +说明 +请求参数放在body中,以json格式传递 + 3.7.2 使用场景 + 医院第三方系统提供的患者信息查询接口,UDI管理系统通过此接口获取院内第三方医嘱(HIS)系统的患者相关信息(病历、医嘱、处方)。UDI管理系统可以根据取得的患者信息,临床使用出库信息,统计患者耗材使用情况详细信息,可追溯溯源至耗材的单品或批次。。 +3.8.3 输入参数示例 + + 3.8 B001接收新增产品信息 + 3.8.1 接口说明 +url + +协议 +http +请求方式 +POST +说明 +请求参数放在body中,以json格式传递 + 3.8.2 使用场景 + 医院第三方系统提供的接收新增产品信息接口,UDI管理系统通过此接口把供应商新增的配送产品信息推送至院内第三方系统(一般指物资管理系统),新增的产品信息为未审核状态。院内采购入库的第三方系统可以实现本接口,简化操作人员基础数据录入。 + 3.8.3 输入参数示例 + + { + "code": "6555", + "name": "下肢直型锁定钢板", + "measname": "块", + "spec": "12孔", + "registerNo": "20153461024", + "manufactory": "江苏艾迪尔", + "cplb": "产品类别", + "flbm": "分类编码", + "qxlb": "器械类别", + "ybbm": "医保编码", + "sptm": "商品条码", + "tyshxydm": "注册人社会信用号", + "ylqxzcrbarmc": "注册/备案人名称", + "ylqxzcrbarywmc": "注册/备案人英文名称", + "cpms": "产品描述", + "model": "12孔", + "standard": null, + "spmc": "商品名称", + "qtbm": "其他编码", + "zczyxqz": "注册证有效期截止时间", + "remark": null, + "remark1": null, + "remark2": null, + "remark3": null, + "supName ": "配送企业", + "price": "价格" + } + + 3.8.4 输入参数说明 + 参数名称 + 类型 +是否必填 + 示例 + 描述 + code + String + 是 + +产品编码 + name + String + 是 + +产品名称 + measname + String + 否 + +计量单位 + standard + String + 否 + +规格型号 + registerNo + String + 否 + +注册/备案号 + manufactory + String + 否 + +生产厂家 + supName + String + 否 + +配送企业 + cplb + String + 否 + +产品类别 + flbm + String + 否 + +分类编码 + qxlb + String + 否 + +器械类别 + ybbm + String + 否 + +医保编码 + sptm + String + 否 + +商品条码 + tyshxydm + String + 否 + +注册人社会信用号 + ylqxzcrbarmc + String + 否 + +注册人/备案人名称 + ylqxzcrbarywmc + String + 否 + +注册人/备案人英文名称 + cpms + String + 否 + +产品描述 + spmc + String + 否 + +商品名称 + qtbm + String + 否 + +其他编码 + zczyxqz + String + 否 + +注册证有效期截止时间 + price + String + 否 + +产品价格 + remark + String + 否 + +备注 + remark1 + String + 否 + +备注1 + remark2 + String + 否 + +备注2 + remark3 + String + 否 + +备注3 + + + + + 3.8.5 返回说明 + 参数名称 + 类型 +是否必填 + 示例 + 描述 + code + String + 是 + 001 +添加成功后返回院内产品编码 + + + + 3.8.6 返回示例 +成功 +{ + "code": 20000, + "message": "success", +"data": { +"code":100 +} +} +失败 +{ + "code": 500, + "message": "错误原因", + "data": {} +} + 3.9 B002接收新增往来单位信息 + 3.9.1 接口说明 +url + +协议 +http +请求方式 +POST +说明 +请求参数放在body中,以json格式传递 + 3.9.2 使用场景 + 医院第三方系统提供的接收新增往来单位信息接口,UDI管理系统通过此接口把医院新增的合格往来单位(供应商)信息推送至院内第三方系统(一般指物资管理系统),新增的往来单位信息为未审核状态。院内采购入库的第三方系统可以实现本接口,简化操作人员基础数据录入。 + 3.9.3 输入参数示例 + { + "unitId": "2469", + "name": "福建省诏安县医院", + "addr": "诏安县南诏镇江厝前路65号", + "creditNo": "123506244897495930", + "contact": "沈主任", + "mobile": "1330000000" + } + + + 3.9.4 输入参数说明 + 参数名称 + 类型 +是否必填 + 示例 + 描述 + unitId + String + 是 + 1673 +往来单位ID + name + String + 是 + 福建省诏安县医院 +往来单位名称 + addr + String + 否 + 诏安县南诏镇江厝前路65号 +地址 + creditNo + String + 否 + 123506244897495930 +社会信用号 + contact + String + 否 + 沈主任 +联系人 + mobile + String + 否 + 13300000000 +联系电话 + 3.9.5 返回说明 + 参数名称 + 类型 +是否必填 + 示例 + 描述 + unitId + String + 是 + 001 +添加成功后返回院内往来信息编码编码 + + + + 3.8.6 返回示例 +成功 +{ + "code": 20000, + "message": "success", + "data":{" unitId ":"001"} +} +失败 +{ + "code": 500, + "message": "错误原因", + "data": {} +} + 3.10 B003接收单据(订单)信息 + 3.10.1 接口说明 +url + +协议 +http +请求方式 +POST +说明 +请求参数放在body中,以json格式传递 + 3.10.2 使用场景 + 医院第三方系统提供的接收单据(订单)信息接口,UDI管理系统通过此接口把现场出入库扫码生成的业务单据信息推送至院内第三方系统。院内采购入库、临床使用出库和出库结算的各相关第三方系统必须实现本接口。 + + 3.10.3 输入参数示例 +{ + "billNo": "ZY202205070001", + "billdate": "2022-05-07", + "corpId": "65119908299161", + "corpName": "福建片仔癀诊断技术有限公司", + "billType": "采购入库", + "billFlag": 1, + "thirdSys": "thirdId", + "locInvCode": "11001", + "locInvName": "总仓库", + "inoutType": "1", + "remark": "", + "item": [ + { + "billNo": "ZY202205070001", + "productId": "7864", + "productName": "通用脊柱内固定器-6.0连接棒", + "standard": "70-450mm/理贝尔", + "expireDate": "2025-01-03", + "productDate": "2021-03-01", + "batchNo": "202003", + "count": "10", + "measname":"计量单位", + "registerNo": "国食药监械(准)字2006第3460057号", + "price": 10.0, + "secSalesInvNo": "21232424", + "invoiceDate": "2323243", + "secSalesListNo": "42342", + "firstSalesInvNo": "423424", + "remark": "", + "remakr1": "", + "remakr2": "", + "codeList": [ + { + "code": "01069125473843801121041410210290075", + "nameCode": "06912547384380", + "count": 1 + } + ] + }, + { + "productId": "7901", + "productName": "亲水性丙烯酸折叠式人工晶状体Hydrophilic Acrylic Foldable Intraocular Lens", + "standard": "S1AW00", + "batchNo": "202103", + "expireDate": "2025-01-03", + "productDate": "2021-03-01", + "count": "10", + "measname":"计量单位", + "registerNo": "国械注进20153162635", + "price": 10.0, + "secSalesInvNo": "21232424", + "invoiceDate": "2323243", + "secSalesListNo": "42342", + "firstSalesInvNo": "423424", + "remark": "", + "remakr1": "", + "remakr2": "", + "codeList": [ + { + "code": "01069125473843801121041410210290075", + "nameCode": "06912547384380", + "count": 1 + } + ] + } + ] +} + + 3.10.4 输入参数说明 +参数名称 +是否必填 +类型 +示例 +参数说明 +billNo +是 +String +ZY202205070001 +单据号 +billDate +是 +String +2022-03-04 +单据日期 +corpId +是 +String + +往来单位ID +corpName +否 +String + +往来单位名称 +billType +是 +String + +单据类型/业务类型 +inoutType +是 +Integer + +出入库类型:1:入库,2:出库 +billFlag +否 +String + +单据状态 +remark +否 +String + +备注 +item + +List +见下表 +单据详情数组 +单据明细表 + 参数名称 + 是否必填 + 类型 + 示例 + 参数说明 + billNo + 是 + String + ZY202205070001 +单据号 + productId + 是 + String + 7864 +产品ID + batchNo + 是 + String + +批次号 + productDate + 是 + String + +生产日期 + expireDate + 是 + String + +失效日期 + count + 是 + Integer + 10 +数量 + price + 是 + BigDecimal + 20.20 +单价 + secSalesInvNo + 是 + String + +销售发票号(第二票) + invoiceDate + 是 + String + +发票日期 + secSalesListNo + 是 + String + +第二票销售清单号 + firstSalesInvNo + 是 + String + +销售发票号(第一票) + productName + 否 + String + +产品名称 + standard + 否 + String + +规格型号 + registerNo + 否 + String + +注册/备案证号 + manufactory + 否 + String + +生产厂家 + remark + 否 + String + +备注 + remakr1 + 否 + String + +备注1 + remakr2 + 否 + String + +备注2 + remakr3 + 否 + String + +备注3 + 3.10.5 返回说明 + 参数名称 + 类型 +是否必填 + 示例 + 描述 + billNo + String + 是 + SP2022030417981 +单据号 + + + + 3.10.6 返回示例 +成功 +{ + "code": 20000, + "message": "success", + "data": "29587734565" +} +失败 +{ + "code": 500, + "message": "错误原因", + "data": {} +} + 3.11 C001产品库存信息查询 + 3.11.1 接口说明 +url +/udiwms/inv/products/filter +协议 +http +请求方式 +POST +说明 +请求参数放在body中,以json格式传递 + 3.11.2 使用场景 + UDI管理系统提供产品库存查询接口,院内第三方系统可以通过此接口查询产品库存信息,产品库存信息包含产品信息、批次号、生产日期、失效日期、数量、计量单位等信息。可以方便院内第三方系统业务开单出库前查询相关产品库存情况,如HIS系统中医生给患者开处方前查看特定耗材库存情况。 + 3.11.3 输入参数示例 +{ + "diCode": "10848782020505", + "productName": "可吸收免打结外科缝线", + "batchNo": "202006", + "supName": "片仔癀诊断", + "page": 1, + "limit": 50 +} + 3.11.4 参数说明 + 参数名称 + 是否必填 + 类型 + 示例 + 参数说明 + diCode + 否 + String + +DI产品标识 + productName + 否 + String + +产品名称 + batchNo + 否 + String + +批次号 + supName + 否 + String + +配送商名称 + page + 是 + Integer + 1 + 页码 + limit + 是 + Integer + 50 + 条数 + 3.11.5 返回说明 + 参数名称 + 类型 +是否必填 + 示例 + 描述 + id + String + 是 + +Id主键 + productName + String + 是 + +产品名称 + diCode + String + 是 + +DI产品标识 + spec + String + 否 + +规格型号 + batchNo + String + 否 + +批次号 + productionDate + String + 否 + +生产日期 + expireDate + String + 否 + +失效日 + registerCompany + String + 否 + +注册备案人名称 + registerCert + String + 否 + +注册备案证 + inCount + String + 是 + +入库数量 + outCount + String + 是 + +出库数量 + supName + String + 否 + +配送商名称 + invStorageCode + String + 否 + +所在仓库编号 + invStorageName + String + 否 + +所在仓库名称 + invSubStorageName + String + 否 + +所在分库名称 + invWarehouseCode + String + 否 + +所在分库编码 + 3.11.6 返回示例 +成功 +{ + "code": 20000, + "message": "success", + "data": { + "total": 1, + "list": [ + { + "id": 153, + "productName": "椎体成形球囊导管及组件", + "diCode": "06941332222033", + "spec": "QJ902;Φ2.9x15", + "batchNo": "212599012", + "productionDate": "210608", + "expireDate": "240608", + "registerCompany ": "浙江科惠医疗器械股份有限公司", + "registerCert": "国械注准20173040809", + "inCount": 2, + "outCount": 5, + "supName": "福建国药器械有限公司漳州分公司", + "invStorageCode": "1000", + "invStorageName": "总库", + "invSubStorageName": "骨科、试剂耗材库", + "invWarehouseCode": "1000000" + } + ] + } +} +失败 +{ + "code": 500, + "message": "错误原因", + "data": {} +} + + +