<?xml version="1.0" encoding="UTF-8"?>
<jmeterTestPlan version="1.2" properties="5.0" jmeter="5.4.3">
  <hashTree>
    <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="顺德WMS@入库之验收提交(立体库)" enabled="true">
      <stringProp name="TestPlan.comments"></stringProp>
      <boolProp name="TestPlan.functional_mode">false</boolProp>
      <boolProp name="TestPlan.tearDown_on_shutdown">true</boolProp>
      <boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
      <elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
        <collectionProp name="Arguments.arguments"/>
      </elementProp>
      <stringProp name="TestPlan.user_define_classpath"></stringProp>
    </TestPlan>
    <hashTree>
      <Arguments guiclass="ArgumentsPanel" testclass="Arguments" testname="环境变量-本地环境" enabled="false">
        <collectionProp name="Arguments.arguments">
          <elementProp name="thread_count" elementType="Argument">
            <stringProp name="Argument.name">thread_count</stringProp>
            <stringProp name="Argument.value">100</stringProp>
            <stringProp name="Argument.metadata">=</stringProp>
          </elementProp>
          <elementProp name="server" elementType="Argument">
            <stringProp name="Argument.name">server</stringProp>
            <stringProp name="Argument.value">127.0.0.1</stringProp>
            <stringProp name="Argument.metadata">=</stringProp>
          </elementProp>
          <elementProp name="port" elementType="Argument">
            <stringProp name="Argument.name">port</stringProp>
            <stringProp name="Argument.value">8085</stringProp>
            <stringProp name="Argument.metadata">=</stringProp>
          </elementProp>
          <elementProp name="wh_id" elementType="Argument">
            <stringProp name="Argument.name">wh_id</stringProp>
            <stringProp name="Argument.value">1000001</stringProp>
            <stringProp name="Argument.metadata">=</stringProp>
          </elementProp>
          <elementProp name="owner_id" elementType="Argument">
            <stringProp name="Argument.name">owner_id</stringProp>
            <stringProp name="Argument.value">1096478673436938240</stringProp>
            <stringProp name="Argument.metadata">=</stringProp>
          </elementProp>
          <elementProp name="system_key" elementType="Argument">
            <stringProp name="Argument.name">system_key</stringProp>
            <stringProp name="Argument.value">eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJ5dmFuLXNlY3VyaXR5IiwiX191aWQiOiIzMTUwNzI4MTM1MDc1NDMwNDUiLCJhdWQiOiJ5dmFuLSoiLCJzdWIiOiJhZG1pbiIsImxvZ2luX2lkIjozMTYzNTczNDM4MTE5OTM2MDksImV4cCI6MTcyNTk5NzUwMCwiaWF0IjoxNzIzNDQ3NTA5LCJqdGkiOiI0MjczNTg1NTc3MjY4NDAzNjQifQ.g5JO8RAqDcipomhOs9pmpfuz-b_nznlssihFY0pCpSPBpkd3L6dr6_FAX8g-oD_EpBoK3Ng_Lh9eqI06Wg2LftxzPn0AagQHmKVtUlY_vDJOQweAmoZRGSFL57xV-UVGI2pgY47nWZVbWS0iFu8s5LgzbvfZABNKfiYYR8VlfN7xL63jfxyjX1uCKxLvGWtzpxDnKWtxJshpBazxyR1qgUci1s2Q_mD9Ljxc2hiwopaizhCuIVytBjAvwS6nYKGqGbyKEdnFt5SFu5EctYkwrEjuk8wtAlGgAiUoT1wb2_JwiS9d_zh24CFYchjiAWrKgmHRSeWekRlszJV_se-Mtw</stringProp>
            <stringProp name="Argument.metadata">=</stringProp>
          </elementProp>
        </collectionProp>
      </Arguments>
      <hashTree/>
      <Arguments guiclass="ArgumentsPanel" testclass="Arguments" testname="环境变量-SD测试" enabled="true">
        <collectionProp name="Arguments.arguments">
          <elementProp name="server" elementType="Argument">
            <stringProp name="Argument.name">server</stringProp>
            <stringProp name="Argument.value">wms-system.test.sdl.com</stringProp>
            <stringProp name="Argument.metadata">=</stringProp>
          </elementProp>
          <elementProp name="port" elementType="Argument">
            <stringProp name="Argument.name">port</stringProp>
            <stringProp name="Argument.value">8000</stringProp>
            <stringProp name="Argument.metadata">=</stringProp>
          </elementProp>
          <elementProp name="wh_id" elementType="Argument">
            <stringProp name="Argument.name">wh_id</stringProp>
            <stringProp name="Argument.value">1000001</stringProp>
            <stringProp name="Argument.metadata">=</stringProp>
          </elementProp>
          <elementProp name="system_key" elementType="Argument">
            <stringProp name="Argument.name">system_key</stringProp>
            <stringProp name="Argument.value">eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJ5dmFuLXNlY3VyaXR5IiwiX191aWQiOiIzMTUwNzI4MTM1MDc1NDMwNDUiLCJhdWQiOiJ5dmFuLSoiLCJzdWIiOiJhZG1pbiIsImxvZ2luX2lkIjozMTYzNTczNDM4MTE5OTM2MDksImV4cCI6MTcyNjg2MTUwMCwiaWF0IjoxNzI0MzEyMDgxLCJqdGkiOiI0MzQ2MTExMDkwMTkyNjA0NzgifQ.Vor5psK98IdvpxcN1LNV2L0bXNnLHx6b5R4cKS2VwbywoWyfaUtHCXh1xv3qeCphy5GuSeXrvepTsQdXkt81l7Gx_4Lg-qUXs32mYhaclpFlvjhprcAx6cKm8_PgtSNWSEiWZ5gKP5dH3GWlaSxNQPviIY1SXIGdChUGkhwlFN-EXBBQTtJbMYHxhXjJwd3HCKfyH6qP1RYK4MN_lFd_mQRWnS3lCFrU4pd1aWaeqCowy8PNP4alAnzYQRbVL9yL8gItp2i6hIJggtDG83T5tBBE6euamN3jvXOM8O0tflxDL5oRVCX2I59Qo_F-LkrWsmm5pqBlegaWdlG8Ue1aEg</stringProp>
            <stringProp name="Argument.metadata">=</stringProp>
          </elementProp>
          <elementProp name="poLineNum" elementType="Argument">
            <stringProp name="Argument.name">poLineNum</stringProp>
            <stringProp name="Argument.value">200</stringProp>
            <stringProp name="Argument.metadata">=</stringProp>
          </elementProp>
          <elementProp name="sequence_start_value" elementType="Argument">
            <stringProp name="Argument.name">sequence_start_value</stringProp>
            <stringProp name="Argument.value">20000</stringProp>
            <stringProp name="Argument.metadata">=</stringProp>
          </elementProp>
        </collectionProp>
      </Arguments>
      <hashTree/>
      <Arguments guiclass="ArgumentsPanel" testclass="Arguments" testname="环境变量-测试环境" enabled="false">
        <collectionProp name="Arguments.arguments">
          <elementProp name="thread_count" elementType="Argument">
            <stringProp name="Argument.name">thread_count</stringProp>
            <stringProp name="Argument.value">100</stringProp>
            <stringProp name="Argument.metadata">=</stringProp>
          </elementProp>
          <elementProp name="server" elementType="Argument">
            <stringProp name="Argument.name">server</stringProp>
            <stringProp name="Argument.value">122.9.140.63</stringProp>
            <stringProp name="Argument.metadata">=</stringProp>
          </elementProp>
          <elementProp name="port" elementType="Argument">
            <stringProp name="Argument.name">port</stringProp>
            <stringProp name="Argument.value">8006</stringProp>
            <stringProp name="Argument.metadata">=</stringProp>
          </elementProp>
          <elementProp name="wh_id" elementType="Argument">
            <stringProp name="Argument.name">wh_id</stringProp>
            <stringProp name="Argument.value">1000001</stringProp>
            <stringProp name="Argument.metadata">=</stringProp>
          </elementProp>
          <elementProp name="system_key" elementType="Argument">
            <stringProp name="Argument.name">system_key</stringProp>
            <stringProp name="Argument.value">eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJ5dmFuLXNlY3VyaXR5IiwiX191aWQiOiIzMTUwNzI4MTM1MDc1NDMwNDUiLCJhdWQiOiJ5dmFuLSoiLCJzdWIiOiJhZG1pbiIsImxvZ2luX2lkIjozMTYzNTczNDM4MTE5OTM2MDksImV4cCI6MTcyNTk5NzUwMCwiaWF0IjoxNzIzNDQ3NTA5LCJqdGkiOiI0MjczNTg1NTc3MjY4NDAzNjQifQ.g5JO8RAqDcipomhOs9pmpfuz-b_nznlssihFY0pCpSPBpkd3L6dr6_FAX8g-oD_EpBoK3Ng_Lh9eqI06Wg2LftxzPn0AagQHmKVtUlY_vDJOQweAmoZRGSFL57xV-UVGI2pgY47nWZVbWS0iFu8s5LgzbvfZABNKfiYYR8VlfN7xL63jfxyjX1uCKxLvGWtzpxDnKWtxJshpBazxyR1qgUci1s2Q_mD9Ljxc2hiwopaizhCuIVytBjAvwS6nYKGqGbyKEdnFt5SFu5EctYkwrEjuk8wtAlGgAiUoT1wb2_JwiS9d_zh24CFYchjiAWrKgmHRSeWekRlszJV_se-Mtw</stringProp>
            <stringProp name="Argument.metadata">=</stringProp>
          </elementProp>
        </collectionProp>
      </Arguments>
      <hashTree/>
      <kg.apc.jmeter.threads.SteppingThreadGroup guiclass="kg.apc.jmeter.threads.SteppingThreadGroupGui" testclass="kg.apc.jmeter.threads.SteppingThreadGroup" testname="入库之验收提交(立体库)" enabled="true">
        <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
        <stringProp name="ThreadGroup.num_threads">100</stringProp>
        <stringProp name="Threads initial delay">0</stringProp>
        <stringProp name="Start users count">10</stringProp>
        <stringProp name="Start users count burst">0</stringProp>
        <stringProp name="Start users period">30</stringProp>
        <stringProp name="Stop users count">5</stringProp>
        <stringProp name="Stop users period">1</stringProp>
        <stringProp name="flighttime">60</stringProp>
        <stringProp name="rampUp">5</stringProp>
        <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
          <boolProp name="LoopController.continue_forever">false</boolProp>
          <intProp name="LoopController.loops">-1</intProp>
        </elementProp>
      </kg.apc.jmeter.threads.SteppingThreadGroup>
      <hashTree>
        <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
          <boolProp name="ResultCollector.error_logging">false</boolProp>
          <objProp>
            <name>saveConfig</name>
            <value class="SampleSaveConfiguration">
              <time>true</time>
              <latency>true</latency>
              <timestamp>true</timestamp>
              <success>true</success>
              <label>true</label>
              <code>true</code>
              <message>true</message>
              <threadName>true</threadName>
              <dataType>true</dataType>
              <encoding>false</encoding>
              <assertions>true</assertions>
              <subresults>true</subresults>
              <responseData>false</responseData>
              <samplerData>false</samplerData>
              <xml>false</xml>
              <fieldNames>true</fieldNames>
              <responseHeaders>false</responseHeaders>
              <requestHeaders>false</requestHeaders>
              <responseDataOnError>false</responseDataOnError>
              <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
              <assertionsResultsToSave>0</assertionsResultsToSave>
              <bytes>true</bytes>
              <sentBytes>true</sentBytes>
              <url>true</url>
              <threadCounts>true</threadCounts>
              <idleTime>true</idleTime>
              <connectTime>true</connectTime>
            </value>
          </objProp>
          <stringProp name="filename"></stringProp>
        </ResultCollector>
        <hashTree/>
        <ResultCollector guiclass="RespTimeGraphVisualizer" testclass="ResultCollector" testname="Response Time Graph" enabled="true">
          <boolProp name="ResultCollector.error_logging">false</boolProp>
          <objProp>
            <name>saveConfig</name>
            <value class="SampleSaveConfiguration">
              <time>true</time>
              <latency>true</latency>
              <timestamp>true</timestamp>
              <success>true</success>
              <label>true</label>
              <code>true</code>
              <message>true</message>
              <threadName>true</threadName>
              <dataType>true</dataType>
              <encoding>false</encoding>
              <assertions>true</assertions>
              <subresults>true</subresults>
              <responseData>false</responseData>
              <samplerData>false</samplerData>
              <xml>false</xml>
              <fieldNames>true</fieldNames>
              <responseHeaders>false</responseHeaders>
              <requestHeaders>false</requestHeaders>
              <responseDataOnError>false</responseDataOnError>
              <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
              <assertionsResultsToSave>0</assertionsResultsToSave>
              <bytes>true</bytes>
              <sentBytes>true</sentBytes>
              <url>true</url>
              <threadCounts>true</threadCounts>
              <idleTime>true</idleTime>
              <connectTime>true</connectTime>
            </value>
          </objProp>
          <stringProp name="filename"></stringProp>
        </ResultCollector>
        <hashTree/>
        <ResultCollector guiclass="StatVisualizer" testclass="ResultCollector" testname="Aggregate Report" enabled="true">
          <boolProp name="ResultCollector.error_logging">false</boolProp>
          <objProp>
            <name>saveConfig</name>
            <value class="SampleSaveConfiguration">
              <time>true</time>
              <latency>true</latency>
              <timestamp>true</timestamp>
              <success>true</success>
              <label>true</label>
              <code>true</code>
              <message>true</message>
              <threadName>true</threadName>
              <dataType>true</dataType>
              <encoding>false</encoding>
              <assertions>true</assertions>
              <subresults>true</subresults>
              <responseData>false</responseData>
              <samplerData>false</samplerData>
              <xml>false</xml>
              <fieldNames>true</fieldNames>
              <responseHeaders>false</responseHeaders>
              <requestHeaders>false</requestHeaders>
              <responseDataOnError>false</responseDataOnError>
              <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
              <assertionsResultsToSave>0</assertionsResultsToSave>
              <bytes>true</bytes>
              <sentBytes>true</sentBytes>
              <url>true</url>
              <threadCounts>true</threadCounts>
              <idleTime>true</idleTime>
              <connectTime>true</connectTime>
            </value>
          </objProp>
          <stringProp name="filename"></stringProp>
        </ResultCollector>
        <hashTree/>
        <ResultCollector guiclass="SummaryReport" testclass="ResultCollector" testname="Summary Report" enabled="true">
          <boolProp name="ResultCollector.error_logging">false</boolProp>
          <objProp>
            <name>saveConfig</name>
            <value class="SampleSaveConfiguration">
              <time>true</time>
              <latency>true</latency>
              <timestamp>true</timestamp>
              <success>true</success>
              <label>true</label>
              <code>true</code>
              <message>true</message>
              <threadName>true</threadName>
              <dataType>true</dataType>
              <encoding>false</encoding>
              <assertions>true</assertions>
              <subresults>true</subresults>
              <responseData>false</responseData>
              <samplerData>false</samplerData>
              <xml>false</xml>
              <fieldNames>true</fieldNames>
              <responseHeaders>false</responseHeaders>
              <requestHeaders>false</requestHeaders>
              <responseDataOnError>false</responseDataOnError>
              <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
              <assertionsResultsToSave>0</assertionsResultsToSave>
              <bytes>true</bytes>
              <sentBytes>true</sentBytes>
              <url>true</url>
              <threadCounts>true</threadCounts>
              <idleTime>true</idleTime>
              <connectTime>true</connectTime>
            </value>
          </objProp>
          <stringProp name="filename"></stringProp>
        </ResultCollector>
        <hashTree/>
        <kg.apc.jmeter.vizualizers.CorrectedResultCollector guiclass="kg.apc.jmeter.vizualizers.ThreadsStateOverTimeGui" testclass="kg.apc.jmeter.vizualizers.CorrectedResultCollector" testname="jp@gc - Active Threads Over Time" enabled="true">
          <boolProp name="ResultCollector.error_logging">false</boolProp>
          <objProp>
            <name>saveConfig</name>
            <value class="SampleSaveConfiguration">
              <time>true</time>
              <latency>true</latency>
              <timestamp>true</timestamp>
              <success>true</success>
              <label>true</label>
              <code>true</code>
              <message>true</message>
              <threadName>true</threadName>
              <dataType>true</dataType>
              <encoding>false</encoding>
              <assertions>true</assertions>
              <subresults>true</subresults>
              <responseData>false</responseData>
              <samplerData>false</samplerData>
              <xml>false</xml>
              <fieldNames>true</fieldNames>
              <responseHeaders>false</responseHeaders>
              <requestHeaders>false</requestHeaders>
              <responseDataOnError>false</responseDataOnError>
              <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
              <assertionsResultsToSave>0</assertionsResultsToSave>
              <bytes>true</bytes>
              <sentBytes>true</sentBytes>
              <url>true</url>
              <threadCounts>true</threadCounts>
              <idleTime>true</idleTime>
              <connectTime>true</connectTime>
            </value>
          </objProp>
          <stringProp name="filename"></stringProp>
          <longProp name="interval_grouping">500</longProp>
          <boolProp name="graph_aggregated">false</boolProp>
          <stringProp name="include_sample_labels"></stringProp>
          <stringProp name="exclude_sample_labels"></stringProp>
          <stringProp name="start_offset"></stringProp>
          <stringProp name="end_offset"></stringProp>
          <boolProp name="include_checkbox_state">false</boolProp>
          <boolProp name="exclude_checkbox_state">false</boolProp>
        </kg.apc.jmeter.vizualizers.CorrectedResultCollector>
        <hashTree/>
        <kg.apc.jmeter.vizualizers.CorrectedResultCollector guiclass="kg.apc.jmeter.vizualizers.ResponseTimesOverTimeGui" testclass="kg.apc.jmeter.vizualizers.CorrectedResultCollector" testname="jp@gc - Response Times Over Time" enabled="true">
          <boolProp name="ResultCollector.error_logging">false</boolProp>
          <objProp>
            <name>saveConfig</name>
            <value class="SampleSaveConfiguration">
              <time>true</time>
              <latency>true</latency>
              <timestamp>true</timestamp>
              <success>true</success>
              <label>true</label>
              <code>true</code>
              <message>true</message>
              <threadName>true</threadName>
              <dataType>true</dataType>
              <encoding>false</encoding>
              <assertions>true</assertions>
              <subresults>true</subresults>
              <responseData>false</responseData>
              <samplerData>false</samplerData>
              <xml>false</xml>
              <fieldNames>true</fieldNames>
              <responseHeaders>false</responseHeaders>
              <requestHeaders>false</requestHeaders>
              <responseDataOnError>false</responseDataOnError>
              <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
              <assertionsResultsToSave>0</assertionsResultsToSave>
              <bytes>true</bytes>
              <sentBytes>true</sentBytes>
              <url>true</url>
              <threadCounts>true</threadCounts>
              <idleTime>true</idleTime>
              <connectTime>true</connectTime>
            </value>
          </objProp>
          <stringProp name="filename"></stringProp>
          <longProp name="interval_grouping">500</longProp>
          <boolProp name="graph_aggregated">false</boolProp>
          <stringProp name="include_sample_labels"></stringProp>
          <stringProp name="exclude_sample_labels"></stringProp>
          <stringProp name="start_offset"></stringProp>
          <stringProp name="end_offset"></stringProp>
          <boolProp name="include_checkbox_state">false</boolProp>
          <boolProp name="exclude_checkbox_state">false</boolProp>
        </kg.apc.jmeter.vizualizers.CorrectedResultCollector>
        <hashTree/>
        <kg.apc.jmeter.vizualizers.CorrectedResultCollector guiclass="kg.apc.jmeter.vizualizers.TransactionsPerSecondGui" testclass="kg.apc.jmeter.vizualizers.CorrectedResultCollector" testname="jp@gc - Transactions per Second" enabled="true">
          <boolProp name="ResultCollector.error_logging">false</boolProp>
          <objProp>
            <name>saveConfig</name>
            <value class="SampleSaveConfiguration">
              <time>true</time>
              <latency>true</latency>
              <timestamp>true</timestamp>
              <success>true</success>
              <label>true</label>
              <code>true</code>
              <message>true</message>
              <threadName>true</threadName>
              <dataType>true</dataType>
              <encoding>false</encoding>
              <assertions>true</assertions>
              <subresults>true</subresults>
              <responseData>false</responseData>
              <samplerData>false</samplerData>
              <xml>false</xml>
              <fieldNames>true</fieldNames>
              <responseHeaders>false</responseHeaders>
              <requestHeaders>false</requestHeaders>
              <responseDataOnError>false</responseDataOnError>
              <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
              <assertionsResultsToSave>0</assertionsResultsToSave>
              <bytes>true</bytes>
              <sentBytes>true</sentBytes>
              <url>true</url>
              <threadCounts>true</threadCounts>
              <idleTime>true</idleTime>
              <connectTime>true</connectTime>
            </value>
          </objProp>
          <stringProp name="filename"></stringProp>
          <longProp name="interval_grouping">1000</longProp>
          <boolProp name="graph_aggregated">false</boolProp>
          <stringProp name="include_sample_labels"></stringProp>
          <stringProp name="exclude_sample_labels"></stringProp>
          <stringProp name="start_offset"></stringProp>
          <stringProp name="end_offset"></stringProp>
          <boolProp name="include_checkbox_state">false</boolProp>
          <boolProp name="exclude_checkbox_state">false</boolProp>
        </kg.apc.jmeter.vizualizers.CorrectedResultCollector>
        <hashTree/>
        <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
          <collectionProp name="HeaderManager.headers">
            <elementProp name="" elementType="Header">
              <stringProp name="Header.name">whId</stringProp>
              <stringProp name="Header.value">${wh_id}</stringProp>
            </elementProp>
            <elementProp name="" elementType="Header">
              <stringProp name="Header.name">systemkey</stringProp>
              <stringProp name="Header.value">${system_key}</stringProp>
            </elementProp>
          </collectionProp>
        </HeaderManager>
        <hashTree/>
        <CSVDataSet guiclass="TestBeanGUI" testclass="CSVDataSet" testname="CSV Data Set Config" enabled="true">
          <stringProp name="delimiter">,</stringProp>
          <stringProp name="fileEncoding">UTF-8</stringProp>
          <stringProp name="filename">./02_顺德WMS@入库之验收提交CSV.csv</stringProp>
          <boolProp name="ignoreFirstLine">false</boolProp>
          <boolProp name="quotedData">true</boolProp>
          <boolProp name="recycle">false</boolProp>
          <stringProp name="shareMode">shareMode.group</stringProp>
          <boolProp name="stopThread">true</boolProp>
          <stringProp name="variableNames">inspect_id</stringProp>
        </CSVDataSet>
        <hashTree/>
        <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Acceptance@queryInspectItem" enabled="true">
          <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
          <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
            <collectionProp name="Arguments.arguments">
              <elementProp name="" elementType="HTTPArgument">
                <boolProp name="HTTPArgument.always_encode">false</boolProp>
                <stringProp name="Argument.value">{&#xd;
  &quot;args&quot;: [&#xd;
    {&#xd;
      &quot;path&quot;: &quot;/com/galaxis/wms/inbound/acceptance/Acceptance&quot;,&#xd;
      &quot;pagination&quot;: true,&#xd;
      &quot;sqlId&quot;: &quot;tab1_grid2QueryData&quot;,&#xd;
      &quot;limit&quot;: 1000,&#xd;
      &quot;page&quot;: 1,&#xd;
      &quot;start&quot;: 0,&#xd;
      &quot;inspect_id&quot;: &quot;${inspect_id}&quot;,&#xd;
      &quot;condition&quot;: []&#xd;
    }&#xd;
  ]&#xd;
}</stringProp>
                <stringProp name="Argument.metadata">=</stringProp>
              </elementProp>
            </collectionProp>
          </elementProp>
          <stringProp name="HTTPSampler.domain">${server}</stringProp>
          <stringProp name="HTTPSampler.port">${port}</stringProp>
          <stringProp name="HTTPSampler.protocol"></stringProp>
          <stringProp name="HTTPSampler.contentEncoding">UTF-8</stringProp>
          <stringProp name="HTTPSampler.path">/api/com/galaxis/wms/Dev@executeSQL?path=/com/galaxis/wms/inbound/acceptance/Acceptance@tab1_grid2QueryData</stringProp>
          <stringProp name="HTTPSampler.method">POST</stringProp>
          <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
          <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
          <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
          <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
          <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
          <stringProp name="HTTPSampler.implementation">HttpClient4</stringProp>
          <stringProp name="HTTPSampler.connect_timeout">1500</stringProp>
          <stringProp name="HTTPSampler.response_timeout">15000</stringProp>
        </HTTPSamplerProxy>
        <hashTree>
          <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="success" enabled="true">
            <stringProp name="JSON_PATH">$.success</stringProp>
            <stringProp name="EXPECTED_VALUE">true</stringProp>
            <boolProp name="JSONVALIDATION">true</boolProp>
            <boolProp name="EXPECT_NULL">false</boolProp>
            <boolProp name="INVERT">false</boolProp>
            <boolProp name="ISREGEX">false</boolProp>
          </JSONPathAssertion>
          <hashTree/>
          <JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="Inspect Item Extractor" enabled="true">
            <stringProp name="JSONPostProcessor.referenceNames">inspect_item_list</stringProp>
            <stringProp name="JSONPostProcessor.jsonPathExprs">$.data.[*]</stringProp>
            <stringProp name="JSONPostProcessor.match_numbers">-1</stringProp>
          </JSONPostProcessor>
          <hashTree/>
        </hashTree>
        <ForeachController guiclass="ForeachControlPanel" testclass="ForeachController" testname="Acceptance ForEach" enabled="true">
          <stringProp name="ForeachController.inputVal">inspect_item_list</stringProp>
          <stringProp name="ForeachController.returnVal">inspect_item</stringProp>
          <boolProp name="ForeachController.useSeparator">true</boolProp>
          <stringProp name="ForeachController.startIndex">0</stringProp>
          <stringProp name="ForeachController.endIndex">${inspect_item_list_matchNr}</stringProp>
        </ForeachController>
        <hashTree>
          <CSVDataSet guiclass="TestBeanGUI" testclass="CSVDataSet" testname="Container Data Config" enabled="true">
            <stringProp name="delimiter">,</stringProp>
            <stringProp name="fileEncoding">UTF-8</stringProp>
            <stringProp name="filename">./1005_container_data_config.csv</stringProp>
            <boolProp name="ignoreFirstLine">false</boolProp>
            <boolProp name="quotedData">true</boolProp>
            <boolProp name="recycle">false</boolProp>
            <stringProp name="shareMode">shareMode.group</stringProp>
            <boolProp name="stopThread">true</boolProp>
            <stringProp name="variableNames">containerCode</stringProp>
          </CSVDataSet>
          <hashTree/>
          <BeanShellSampler guiclass="BeanShellSamplerGui" testclass="BeanShellSampler" testname="QueryPutIntent Param Sampler" enabled="false">
            <stringProp name="BeanShellSampler.query">import java.math.BigDecimal;
import java.math.RoundingMode;

com.JMeterUtil util = com.Yvan.init(vars, log, ctx);

Map inspectItem = util.parseJson(vars.get(&quot;inspect_item&quot;), Map.class);

// 质检数量
BigDecimal qty = new BigDecimal(inspectItem.get(&quot;qty&quot;));
// 已质检数量
BigDecimal inspectQty = new BigDecimal(inspectItem.get(&quot;inspect_qty&quot;));
// 已拒收数量
BigDecimal receiptQty = new BigDecimal(inspectItem.get(&quot;reject_qty&quot;));

// 需质检数量 = 质检数量 - 已质检数量 - 已拒收数量
BigDecimal qualityQty = qty.subtract(inspectQty).subtract(receiptQty);

// 包装数量
BigDecimal packMeas = new BigDecimal(String.valueOf(inspectItem.get(&quot;pack_meas&quot;)));

// 质检整件数
BigDecimal qualityWholeQty = qualityQty.divide(packMeas, 0, RoundingMode.FLOOR);
// 质检零散数
BigDecimal qualityLessQty = qualityQty.subtract(qualityWholeQty.multiply(packMeas));


vars.put(&quot;qualityWholeQty&quot;, qualityWholeQty.toString());
vars.put(&quot;qualityLessQty&quot;, qualityLessQty.toString());

//inspectItem.put(&quot;quality_less_qty&quot;, qualityLessQty.toString());
//inspectItem.put(&quot;quality_whole_qty&quot;, qualityWholeQty.toString());
//inspectItem.put(&quot;quality_qty&quot;, qualityQty.toString());
//inspectItem.put(&quot;put_intent_less&quot;, &quot;0001&quot;);
//inspectItem.put(&quot;put_intent_whole&quot;, &quot;0001&quot;);
//inspectItem.put(&quot;quality_assert&quot;, &quot;0001&quot;);
//inspectItem.put(&quot;quality_staff_id1&quot;, &quot;315072813507543045&quot;);

Map saveInspectParam = new HashMap();
//saveInspectParam.put(&quot;inspect_id&quot;, String.valueOf(inspectItem.get(&quot;inspect_id&quot;)));
//saveInspectParam.put(&quot;inspect_line_nos&quot;, String.valueOf(inspectItem.get(&quot;inspect_line_nos&quot;)));
saveInspectParam.put(&quot;item_id&quot;, String.valueOf(inspectItem.get(&quot;item_id&quot;)));
saveInspectParam.put(&quot;pack_id&quot;, String.valueOf(inspectItem.get(&quot;pack_id&quot;)));
saveInspectParam.put(&quot;lot_id&quot;, String.valueOf(inspectItem.get(&quot;lot_id&quot;)));
saveInspectParam.put(&quot;quality_reject_qty&quot;, &quot;0&quot;);
saveInspectParam.put(&quot;order_biz_type&quot;, &quot;C&quot;);
//saveInspectParam.put(&quot;order_type&quot;, String.valueOf(inspectItem.get(&quot;order_type&quot;));
//saveInspectParam.put(&quot;order_biz_type&quot;, String.valueOf(inspectItem.get(&quot;order_biz_type&quot;));

saveInspectParam.put(&quot;quality_less_qty&quot;, qualityLessQty.toString());
saveInspectParam.put(&quot;quality_whole_qty&quot;, qualityWholeQty.toString());
saveInspectParam.put(&quot;quality_qty&quot;, qualityQty.toString());
//saveInspectParam.put(&quot;put_intent_less&quot;, &quot;0001&quot;);
//saveInspectParam.put(&quot;put_intent_whole&quot;, &quot;0001&quot;);
//saveInspectParam.put(&quot;quality_assert&quot;, &quot;0001&quot;);
//saveInspectParam.put(&quot;quality_staff_id1&quot;, &quot;315072813507543045&quot;);
//saveInspectParam.put(&quot;quality_staff_id1&quot;, vars.get(&quot;staff_id&quot;));

vars.put(&quot;queryPutIntentParam&quot;, util.toJson(saveInspectParam));</stringProp>
            <stringProp name="BeanShellSampler.filename"></stringProp>
            <stringProp name="BeanShellSampler.parameters"></stringProp>
            <boolProp name="BeanShellSampler.resetInterpreter">false</boolProp>
          </BeanShellSampler>
          <hashTree/>
          <BeanShellSampler guiclass="BeanShellSamplerGui" testclass="BeanShellSampler" testname="QueryPutIntent Param Sampler" enabled="false">
            <stringProp name="BeanShellSampler.query">import java.math.BigDecimal;
import java.math.RoundingMode;

com.JMeterUtil util = com.Yvan.init(vars, log, ctx);

Map inspectItem = util.parseJson(vars.get(&quot;inspect_item&quot;), Map.class);

// 质检数量
BigDecimal qty = new BigDecimal(inspectItem.get(&quot;qty&quot;));
// 已质检数量
BigDecimal inspectQty = new BigDecimal(inspectItem.get(&quot;inspect_qty&quot;));
// 已拒收数量
BigDecimal receiptQty = new BigDecimal(inspectItem.get(&quot;reject_qty&quot;));

// 需质检数量 = 质检数量 - 已质检数量 - 已拒收数量
BigDecimal qualityQty = qty.subtract(inspectQty).subtract(receiptQty);

// 包装数量
BigDecimal packMeas = new BigDecimal(String.valueOf(inspectItem.get(&quot;pack_meas&quot;)));

// 质检整件数
BigDecimal qualityWholeQty = qualityQty.divide(packMeas, 0, RoundingMode.FLOOR);
// 质检零散数
BigDecimal qualityLessQty = qualityQty.subtract(qualityWholeQty.multiply(packMeas));

//inspectItem.put(&quot;quality_less_qty&quot;, qualityLessQty.toString());
//inspectItem.put(&quot;quality_whole_qty&quot;, qualityWholeQty.toString());
//inspectItem.put(&quot;quality_qty&quot;, qualityQty.toString());
//inspectItem.put(&quot;put_intent_less&quot;, &quot;0001&quot;);
//inspectItem.put(&quot;put_intent_whole&quot;, &quot;0001&quot;);
//inspectItem.put(&quot;quality_assert&quot;, &quot;0001&quot;);
//inspectItem.put(&quot;quality_staff_id1&quot;, &quot;315072813507543045&quot;);

Map saveInspectParam = new HashMap();
//saveInspectParam.put(&quot;inspect_id&quot;, String.valueOf(inspectItem.get(&quot;inspect_id&quot;)));
//saveInspectParam.put(&quot;inspect_line_nos&quot;, String.valueOf(inspectItem.get(&quot;inspect_line_nos&quot;)));
saveInspectParam.put(&quot;item_id&quot;, String.valueOf(inspectItem.get(&quot;item_id&quot;)));
saveInspectParam.put(&quot;pack_id&quot;, String.valueOf(inspectItem.get(&quot;pack_id&quot;)));
saveInspectParam.put(&quot;lot_id&quot;, String.valueOf(inspectItem.get(&quot;lot_id&quot;)));
saveInspectParam.put(&quot;quality_reject_qty&quot;, &quot;0&quot;);
saveInspectParam.put(&quot;order_biz_type&quot;, &quot;C&quot;);
//saveInspectParam.put(&quot;order_type&quot;, String.valueOf(inspectItem.get(&quot;order_type&quot;));
//saveInspectParam.put(&quot;order_biz_type&quot;, String.valueOf(inspectItem.get(&quot;order_biz_type&quot;));

saveInspectParam.put(&quot;quality_less_qty&quot;, &quot;1&quot;);
//saveInspectParam.put(&quot;quality_less_qty&quot;, qualityLessQty.toString());
saveInspectParam.put(&quot;quality_whole_qty&quot;, &quot;0&quot;);
//saveInspectParam.put(&quot;quality_qty&quot;, qualityQty.toString());
//saveInspectParam.put(&quot;put_intent_less&quot;, &quot;0001&quot;);
//saveInspectParam.put(&quot;put_intent_whole&quot;, &quot;0001&quot;);
//saveInspectParam.put(&quot;quality_assert&quot;, &quot;0001&quot;);
//saveInspectParam.put(&quot;quality_staff_id1&quot;, &quot;315072813507543045&quot;);
//saveInspectParam.put(&quot;quality_staff_id1&quot;, vars.get(&quot;staff_id&quot;));

vars.put(&quot;queryPutIntentParam&quot;, util.toJson(saveInspectParam));</stringProp>
            <stringProp name="BeanShellSampler.filename"></stringProp>
            <stringProp name="BeanShellSampler.parameters"></stringProp>
            <boolProp name="BeanShellSampler.resetInterpreter">false</boolProp>
          </BeanShellSampler>
          <hashTree/>
          <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Less Acceptance@queryPutIntent" enabled="false">
            <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
            <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
              <collectionProp name="Arguments.arguments">
                <elementProp name="" elementType="HTTPArgument">
                  <boolProp name="HTTPArgument.always_encode">false</boolProp>
                  <stringProp name="Argument.value">{&#xd;
  &quot;args&quot;: [&#xd;
    {&#xd;
      &quot;row_data&quot;: ${queryPutIntentParam}&#xd;
    }&#xd;
  ]&#xd;
}</stringProp>
                  <stringProp name="Argument.metadata">=</stringProp>
                </elementProp>
              </collectionProp>
            </elementProp>
            <stringProp name="HTTPSampler.domain">${server}</stringProp>
            <stringProp name="HTTPSampler.port">${port}</stringProp>
            <stringProp name="HTTPSampler.protocol"></stringProp>
            <stringProp name="HTTPSampler.contentEncoding">UTF-8</stringProp>
            <stringProp name="HTTPSampler.path">/api/com/galaxis/wms/inbound/acceptance/Acceptance@queryPutIntent</stringProp>
            <stringProp name="HTTPSampler.method">POST</stringProp>
            <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
            <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
            <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
            <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
            <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
            <stringProp name="HTTPSampler.implementation">HttpClient4</stringProp>
            <stringProp name="HTTPSampler.connect_timeout">1500</stringProp>
            <stringProp name="HTTPSampler.response_timeout">15000</stringProp>
          </HTTPSamplerProxy>
          <hashTree>
            <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="success" enabled="true">
              <stringProp name="JSON_PATH">$.success</stringProp>
              <stringProp name="EXPECTED_VALUE">true</stringProp>
              <boolProp name="JSONVALIDATION">true</boolProp>
              <boolProp name="EXPECT_NULL">false</boolProp>
              <boolProp name="INVERT">false</boolProp>
              <boolProp name="ISREGEX">false</boolProp>
            </JSONPathAssertion>
            <hashTree/>
            <JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="Less Put Intent Extractor" enabled="true">
              <stringProp name="JSONPostProcessor.referenceNames">lessPutIntent</stringProp>
              <stringProp name="JSONPostProcessor.jsonPathExprs">$.data</stringProp>
              <stringProp name="JSONPostProcessor.match_numbers">1</stringProp>
            </JSONPostProcessor>
            <hashTree/>
          </hashTree>
          <IfController guiclass="IfControllerPanel" testclass="IfController" testname="Has Less Quality Qty Controller" enabled="false">
            <stringProp name="IfController.condition">${__jexl3(${qualityLessQty} &gt; 0)}</stringProp>
            <boolProp name="IfController.evaluateAll">false</boolProp>
            <boolProp name="IfController.useExpression">true</boolProp>
          </IfController>
          <hashTree>
            <BeanShellSampler guiclass="BeanShellSamplerGui" testclass="BeanShellSampler" testname="QueryPutIntent Param Sampler" enabled="true">
              <stringProp name="BeanShellSampler.query">import java.math.BigDecimal;
import java.math.RoundingMode;

com.JMeterUtil util = com.Yvan.init(vars, log, ctx);

Map inspectItem = util.parseJson(vars.get(&quot;inspect_item&quot;), Map.class);

// 质检数量
BigDecimal qty = new BigDecimal(inspectItem.get(&quot;qty&quot;));
// 已质检数量
BigDecimal inspectQty = new BigDecimal(inspectItem.get(&quot;inspect_qty&quot;));
// 已拒收数量
BigDecimal receiptQty = new BigDecimal(inspectItem.get(&quot;reject_qty&quot;));

// 需质检数量 = 质检数量 - 已质检数量 - 已拒收数量
BigDecimal qualityQty = qty.subtract(inspectQty).subtract(receiptQty);

// 包装数量
BigDecimal packMeas = new BigDecimal(String.valueOf(inspectItem.get(&quot;pack_meas&quot;)));

// 质检整件数
BigDecimal qualityWholeQty = qualityQty.divide(packMeas, 0, RoundingMode.FLOOR);
// 质检零散数
BigDecimal qualityLessQty = qualityQty.subtract(qualityWholeQty.multiply(packMeas));

//inspectItem.put(&quot;quality_less_qty&quot;, qualityLessQty.toString());
//inspectItem.put(&quot;quality_whole_qty&quot;, qualityWholeQty.toString());
//inspectItem.put(&quot;quality_qty&quot;, qualityQty.toString());
//inspectItem.put(&quot;put_intent_less&quot;, &quot;0001&quot;);
//inspectItem.put(&quot;put_intent_whole&quot;, &quot;0001&quot;);
//inspectItem.put(&quot;quality_assert&quot;, &quot;0001&quot;);
//inspectItem.put(&quot;quality_staff_id1&quot;, &quot;315072813507543045&quot;);

Map saveInspectParam = new HashMap();
//saveInspectParam.put(&quot;inspect_id&quot;, String.valueOf(inspectItem.get(&quot;inspect_id&quot;)));
//saveInspectParam.put(&quot;inspect_line_nos&quot;, String.valueOf(inspectItem.get(&quot;inspect_line_nos&quot;)));
saveInspectParam.put(&quot;item_id&quot;, String.valueOf(inspectItem.get(&quot;item_id&quot;)));
saveInspectParam.put(&quot;pack_id&quot;, String.valueOf(inspectItem.get(&quot;pack_id&quot;)));
saveInspectParam.put(&quot;lot_id&quot;, String.valueOf(inspectItem.get(&quot;lot_id&quot;)));
saveInspectParam.put(&quot;quality_reject_qty&quot;, &quot;0&quot;);
saveInspectParam.put(&quot;order_biz_type&quot;, &quot;C&quot;);
//saveInspectParam.put(&quot;order_type&quot;, String.valueOf(inspectItem.get(&quot;order_type&quot;));
//saveInspectParam.put(&quot;order_biz_type&quot;, String.valueOf(inspectItem.get(&quot;order_biz_type&quot;));

saveInspectParam.put(&quot;quality_less_qty&quot;, qualityLessQty.toString());
saveInspectParam.put(&quot;quality_whole_qty&quot;, &quot;0&quot;);
//saveInspectParam.put(&quot;quality_qty&quot;, qualityQty.toString());
//saveInspectParam.put(&quot;put_intent_less&quot;, &quot;0001&quot;);
//saveInspectParam.put(&quot;put_intent_whole&quot;, &quot;0001&quot;);
//saveInspectParam.put(&quot;quality_assert&quot;, &quot;0001&quot;);
//saveInspectParam.put(&quot;quality_staff_id1&quot;, &quot;315072813507543045&quot;);
//saveInspectParam.put(&quot;quality_staff_id1&quot;, vars.get(&quot;staff_id&quot;));

vars.put(&quot;queryPutIntentParam&quot;, util.toJson(saveInspectParam));</stringProp>
              <stringProp name="BeanShellSampler.filename"></stringProp>
              <stringProp name="BeanShellSampler.parameters"></stringProp>
              <boolProp name="BeanShellSampler.resetInterpreter">false</boolProp>
            </BeanShellSampler>
            <hashTree/>
            <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Less Acceptance@queryPutIntent" enabled="true">
              <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
              <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
                <collectionProp name="Arguments.arguments">
                  <elementProp name="" elementType="HTTPArgument">
                    <boolProp name="HTTPArgument.always_encode">false</boolProp>
                    <stringProp name="Argument.value">{&#xd;
  &quot;args&quot;: [&#xd;
    {&#xd;
      &quot;row_data&quot;: ${queryPutIntentParam}&#xd;
    }&#xd;
  ]&#xd;
}</stringProp>
                    <stringProp name="Argument.metadata">=</stringProp>
                  </elementProp>
                </collectionProp>
              </elementProp>
              <stringProp name="HTTPSampler.domain">${server}</stringProp>
              <stringProp name="HTTPSampler.port">${port}</stringProp>
              <stringProp name="HTTPSampler.protocol"></stringProp>
              <stringProp name="HTTPSampler.contentEncoding">UTF-8</stringProp>
              <stringProp name="HTTPSampler.path">/api/com/galaxis/wms/inbound/acceptance/Acceptance@queryPutIntent</stringProp>
              <stringProp name="HTTPSampler.method">POST</stringProp>
              <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
              <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
              <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
              <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
              <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
              <stringProp name="HTTPSampler.implementation">HttpClient4</stringProp>
              <stringProp name="HTTPSampler.connect_timeout">1500</stringProp>
              <stringProp name="HTTPSampler.response_timeout">15000</stringProp>
            </HTTPSamplerProxy>
            <hashTree>
              <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="success" enabled="true">
                <stringProp name="JSON_PATH">$.success</stringProp>
                <stringProp name="EXPECTED_VALUE">true</stringProp>
                <boolProp name="JSONVALIDATION">true</boolProp>
                <boolProp name="EXPECT_NULL">false</boolProp>
                <boolProp name="INVERT">false</boolProp>
                <boolProp name="ISREGEX">false</boolProp>
              </JSONPathAssertion>
              <hashTree/>
              <JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="Less Put Intent Extractor" enabled="true">
                <stringProp name="JSONPostProcessor.referenceNames">lessPutIntent</stringProp>
                <stringProp name="JSONPostProcessor.jsonPathExprs">$.data</stringProp>
                <stringProp name="JSONPostProcessor.match_numbers">1</stringProp>
              </JSONPostProcessor>
              <hashTree/>
            </hashTree>
          </hashTree>
          <IfController guiclass="IfControllerPanel" testclass="IfController" testname="Has Whole Quality Qty Controller" enabled="false">
            <stringProp name="IfController.condition">${__jexl3(${qualityWholeQty} &gt; 0)}</stringProp>
            <boolProp name="IfController.evaluateAll">false</boolProp>
            <boolProp name="IfController.useExpression">true</boolProp>
          </IfController>
          <hashTree>
            <BeanShellSampler guiclass="BeanShellSamplerGui" testclass="BeanShellSampler" testname="QueryPutIntent Param Sampler" enabled="true">
              <stringProp name="BeanShellSampler.query">import java.math.BigDecimal;
import java.math.RoundingMode;

com.JMeterUtil util = com.Yvan.init(vars, log, ctx);

Map inspectItem = util.parseJson(vars.get(&quot;inspect_item&quot;), Map.class);

// 质检数量
BigDecimal qty = new BigDecimal(inspectItem.get(&quot;qty&quot;));
// 已质检数量
BigDecimal inspectQty = new BigDecimal(inspectItem.get(&quot;inspect_qty&quot;));
// 已拒收数量
BigDecimal receiptQty = new BigDecimal(inspectItem.get(&quot;reject_qty&quot;));

// 需质检数量 = 质检数量 - 已质检数量 - 已拒收数量
BigDecimal qualityQty = qty.subtract(inspectQty).subtract(receiptQty);

// 包装数量
BigDecimal packMeas = new BigDecimal(String.valueOf(inspectItem.get(&quot;pack_meas&quot;)));

// 质检整件数
BigDecimal qualityWholeQty = qualityQty.divide(packMeas, 0, RoundingMode.FLOOR);
// 质检零散数
BigDecimal qualityLessQty = qualityQty.subtract(qualityWholeQty.multiply(packMeas));

//inspectItem.put(&quot;quality_less_qty&quot;, qualityLessQty.toString());
//inspectItem.put(&quot;quality_whole_qty&quot;, qualityWholeQty.toString());
//inspectItem.put(&quot;quality_qty&quot;, qualityQty.toString());
//inspectItem.put(&quot;put_intent_less&quot;, &quot;0001&quot;);
//inspectItem.put(&quot;put_intent_whole&quot;, &quot;0001&quot;);
//inspectItem.put(&quot;quality_assert&quot;, &quot;0001&quot;);
//inspectItem.put(&quot;quality_staff_id1&quot;, &quot;315072813507543045&quot;);

Map saveInspectParam = new HashMap();
//saveInspectParam.put(&quot;inspect_id&quot;, String.valueOf(inspectItem.get(&quot;inspect_id&quot;)));
//saveInspectParam.put(&quot;inspect_line_nos&quot;, String.valueOf(inspectItem.get(&quot;inspect_line_nos&quot;)));
saveInspectParam.put(&quot;item_id&quot;, String.valueOf(inspectItem.get(&quot;item_id&quot;)));
saveInspectParam.put(&quot;pack_id&quot;, String.valueOf(inspectItem.get(&quot;pack_id&quot;)));
saveInspectParam.put(&quot;lot_id&quot;, String.valueOf(inspectItem.get(&quot;lot_id&quot;)));
saveInspectParam.put(&quot;quality_reject_qty&quot;, &quot;0&quot;);
saveInspectParam.put(&quot;order_biz_type&quot;, &quot;C&quot;);
//saveInspectParam.put(&quot;order_type&quot;, String.valueOf(inspectItem.get(&quot;order_type&quot;));
//saveInspectParam.put(&quot;order_biz_type&quot;, String.valueOf(inspectItem.get(&quot;order_biz_type&quot;));

saveInspectParam.put(&quot;quality_less_qty&quot;, &quot;&quot;);
saveInspectParam.put(&quot;quality_whole_qty&quot;, qualityWholeQty.toString());
//saveInspectParam.put(&quot;quality_qty&quot;, qualityQty.toString());
//saveInspectParam.put(&quot;put_intent_less&quot;, &quot;0001&quot;);
//saveInspectParam.put(&quot;put_intent_whole&quot;, &quot;0001&quot;);
//saveInspectParam.put(&quot;quality_assert&quot;, &quot;0001&quot;);
//saveInspectParam.put(&quot;quality_staff_id1&quot;, &quot;315072813507543045&quot;);
//saveInspectParam.put(&quot;quality_staff_id1&quot;, vars.get(&quot;staff_id&quot;));

vars.put(&quot;queryPutIntentParam&quot;, util.toJson(saveInspectParam));</stringProp>
              <stringProp name="BeanShellSampler.filename"></stringProp>
              <stringProp name="BeanShellSampler.parameters"></stringProp>
              <boolProp name="BeanShellSampler.resetInterpreter">false</boolProp>
            </BeanShellSampler>
            <hashTree/>
            <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Whole Acceptance@queryPutIntent" enabled="true">
              <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
              <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
                <collectionProp name="Arguments.arguments">
                  <elementProp name="" elementType="HTTPArgument">
                    <boolProp name="HTTPArgument.always_encode">false</boolProp>
                    <stringProp name="Argument.value">{&#xd;
  &quot;args&quot;: [&#xd;
    {&#xd;
      &quot;row_data&quot;: ${queryPutIntentParam}&#xd;
    }&#xd;
  ]&#xd;
}</stringProp>
                    <stringProp name="Argument.metadata">=</stringProp>
                  </elementProp>
                </collectionProp>
              </elementProp>
              <stringProp name="HTTPSampler.domain">${server}</stringProp>
              <stringProp name="HTTPSampler.port">${port}</stringProp>
              <stringProp name="HTTPSampler.protocol"></stringProp>
              <stringProp name="HTTPSampler.contentEncoding">UTF-8</stringProp>
              <stringProp name="HTTPSampler.path">/api/com/galaxis/wms/inbound/acceptance/Acceptance@queryPutIntent</stringProp>
              <stringProp name="HTTPSampler.method">POST</stringProp>
              <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
              <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
              <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
              <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
              <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
              <stringProp name="HTTPSampler.implementation">HttpClient4</stringProp>
              <stringProp name="HTTPSampler.connect_timeout">1500</stringProp>
              <stringProp name="HTTPSampler.response_timeout">15000</stringProp>
            </HTTPSamplerProxy>
            <hashTree>
              <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="success" enabled="true">
                <stringProp name="JSON_PATH">$.success</stringProp>
                <stringProp name="EXPECTED_VALUE">true</stringProp>
                <boolProp name="JSONVALIDATION">true</boolProp>
                <boolProp name="EXPECT_NULL">false</boolProp>
                <boolProp name="INVERT">false</boolProp>
                <boolProp name="ISREGEX">false</boolProp>
              </JSONPathAssertion>
              <hashTree/>
              <JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="Whole Put Intent Extractor" enabled="true">
                <stringProp name="JSONPostProcessor.referenceNames">wholePutIntent</stringProp>
                <stringProp name="JSONPostProcessor.jsonPathExprs">$.data</stringProp>
                <stringProp name="JSONPostProcessor.match_numbers">1</stringProp>
              </JSONPostProcessor>
              <hashTree/>
            </hashTree>
          </hashTree>
          <BeanShellSampler guiclass="BeanShellSamplerGui" testclass="BeanShellSampler" testname="Acceptance Param Sampler" enabled="true">
            <stringProp name="BeanShellSampler.query">import java.math.BigDecimal;
import java.math.RoundingMode;

com.JMeterUtil util = com.Yvan.init(vars, log, ctx);

Map inspectItem = util.parseJson(vars.get(&quot;inspect_item&quot;), Map.class);
log.info(&quot;inspect_id = &quot; + String.valueOf(inspectItem.get(&quot;inspect_id&quot;)));

// 质检数量
BigDecimal qty = new BigDecimal(inspectItem.get(&quot;qty&quot;));
// 已质检数量
BigDecimal inspectQty = new BigDecimal(inspectItem.get(&quot;inspect_qty&quot;));
// 已拒收数量
BigDecimal receiptQty = new BigDecimal(inspectItem.get(&quot;reject_qty&quot;));

// 需质检数量 = 质检数量 - 已质检数量 - 已拒收数量
BigDecimal qualityQty = qty.subtract(inspectQty).subtract(receiptQty);

// 包装数量
BigDecimal packMeas = new BigDecimal(String.valueOf(inspectItem.get(&quot;pack_meas&quot;)));

// 质检整件数
BigDecimal qualityWholeQty = qualityQty.divide(packMeas, 0, RoundingMode.FLOOR);
// 质检零散数
BigDecimal qualityLessQty = qualityQty.subtract(qualityWholeQty.multiply(packMeas));

//inspectItem.put(&quot;quality_less_qty&quot;, qualityLessQty.toString());
//inspectItem.put(&quot;quality_whole_qty&quot;, qualityWholeQty.toString());
//inspectItem.put(&quot;quality_qty&quot;, qualityQty.toString());
//inspectItem.put(&quot;put_intent_less&quot;, &quot;0001&quot;);
//inspectItem.put(&quot;put_intent_whole&quot;, &quot;0001&quot;);
//inspectItem.put(&quot;quality_assert&quot;, &quot;0001&quot;);
//inspectItem.put(&quot;quality_staff_id1&quot;, &quot;315072813507543045&quot;);

Map saveInspectParam = new HashMap();
saveInspectParam.put(&quot;inspect_id&quot;, String.valueOf(inspectItem.get(&quot;inspect_id&quot;)));
saveInspectParam.put(&quot;inspect_line_nos&quot;, String.valueOf(inspectItem.get(&quot;inspect_line_nos&quot;)));
saveInspectParam.put(&quot;item_id&quot;, String.valueOf(inspectItem.get(&quot;item_id&quot;)));
saveInspectParam.put(&quot;pack_id&quot;, String.valueOf(inspectItem.get(&quot;pack_id&quot;)));
saveInspectParam.put(&quot;lot_id&quot;, String.valueOf(inspectItem.get(&quot;lot_id&quot;)));
saveInspectParam.put(&quot;quality_reject_qty&quot;, &quot;0&quot;);
// 入立体库 需要容器号
saveInspectParam.put(&quot;container_code&quot;, vars.get(&quot;containerCode&quot;));
//saveInspectParam.put(&quot;is_chinese_medicine&quot;, String.valueOf(inspectItem.get(&quot;is_chinese_medicine&quot;)));
//saveInspectParam.put(&quot;order_type&quot;, String.valueOf(inspectItem.get(&quot;order_type&quot;));
//saveInspectParam.put(&quot;order_biz_type&quot;, String.valueOf(inspectItem.get(&quot;order_biz_type&quot;));
saveInspectParam.put(&quot;quality_less_qty&quot;, &quot;0&quot;);
//saveInspectParam.put(&quot;quality_less_qty&quot;, qualityLessQty.toString());
saveInspectParam.put(&quot;quality_whole_qty&quot;, &quot;1&quot;);
//saveInspectParam.put(&quot;quality_whole_qty&quot;, qualityWholeQty.toString());
saveInspectParam.put(&quot;quality_qty&quot;, packMeas.toString());
//saveInspectParam.put(&quot;quality_qty&quot;, qualityQty.toString());
//saveInspectParam.put(&quot;put_intent_less&quot;, vars.get(&quot;lessPutIntent&quot;));
saveInspectParam.put(&quot;put_intent_less&quot;, &quot;0001&quot;);
saveInspectParam.put(&quot;put_intent_whole&quot;, &quot;0003&quot;);
//saveInspectParam.put(&quot;put_intent_whole&quot;, vars.get(&quot;wholePutIntent&quot;));
saveInspectParam.put(&quot;quality_assert&quot;, &quot;0001&quot;);
saveInspectParam.put(&quot;quality_staff_id1&quot;, &quot;315072813507543045&quot;);
//saveInspectParam.put(&quot;quality_staff_id1&quot;, vars.get(&quot;staff_id&quot;));

vars.put(&quot;saveInspectParam&quot;, util.toJson(saveInspectParam));
</stringProp>
            <stringProp name="BeanShellSampler.filename"></stringProp>
            <stringProp name="BeanShellSampler.parameters"></stringProp>
            <boolProp name="BeanShellSampler.resetInterpreter">false</boolProp>
          </BeanShellSampler>
          <hashTree/>
          <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Acceptance@inspectSave" enabled="true">
            <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
            <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
              <collectionProp name="Arguments.arguments">
                <elementProp name="" elementType="HTTPArgument">
                  <boolProp name="HTTPArgument.always_encode">false</boolProp>
                  <stringProp name="Argument.value">{&#xd;
  &quot;args&quot;: [&#xd;
    {&#xd;
      &quot;form_data&quot;: ${saveInspectParam}&#xd;
    }&#xd;
  ]&#xd;
}</stringProp>
                  <stringProp name="Argument.metadata">=</stringProp>
                </elementProp>
              </collectionProp>
            </elementProp>
            <stringProp name="HTTPSampler.domain">${server}</stringProp>
            <stringProp name="HTTPSampler.port">${port}</stringProp>
            <stringProp name="HTTPSampler.protocol"></stringProp>
            <stringProp name="HTTPSampler.contentEncoding">UTF-8</stringProp>
            <stringProp name="HTTPSampler.path">api/com/galaxis/wms/inbound/acceptance/Acceptance@inspectSave</stringProp>
            <stringProp name="HTTPSampler.method">POST</stringProp>
            <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
            <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
            <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
            <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
            <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
            <stringProp name="HTTPSampler.implementation">HttpClient4</stringProp>
            <stringProp name="HTTPSampler.connect_timeout">1500</stringProp>
            <stringProp name="HTTPSampler.response_timeout">15000</stringProp>
          </HTTPSamplerProxy>
          <hashTree>
            <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="success" enabled="true">
              <stringProp name="JSON_PATH">$.success</stringProp>
              <stringProp name="EXPECTED_VALUE">true</stringProp>
              <boolProp name="JSONVALIDATION">true</boolProp>
              <boolProp name="EXPECT_NULL">false</boolProp>
              <boolProp name="INVERT">false</boolProp>
              <boolProp name="ISREGEX">false</boolProp>
            </JSONPathAssertion>
            <hashTree/>
          </hashTree>
        </hashTree>
      </hashTree>
    </hashTree>
  </hashTree>
</jmeterTestPlan>
