Commit f1fe4497 authored by xiao-hesheng's avatar xiao-hesheng
Browse files

脚本优化

parent 40f5ba04
......@@ -621,7 +621,7 @@ class delData(object):
#删除院区产品表和部门产品表多余的数据
sql1 = "delete from mcms_branch_goods_info where hos_goods_id not in(select id from mcms_goods_info);"
sql2 = "delete from mcms_branch_goods_info where branch_id not in(%s);" % branch_id
sql3 = "delete mcms_dept_goods_info where hos_goods_id not in(select id from mcms_goods_info);"
sql3 = "delete from mcms_dept_goods_info where hos_goods_id not in(select id from mcms_goods_info);"
sql4 = "delete from mcms_dept_goods_info where branch_id not in(%s);"%branch_id
cursor.execute(sql1)
cursor.execute(sql2)
......@@ -801,3 +801,4 @@ class delData(object):
# delData().Delete_business_Data_All()
# delData().Delete_business_Data_All2()
# delData().check_goods_info()
delData().Delete_business_Data_All()
\ No newline at end of file
采购计划单号高值:
orderNo1: PLAN2024070230930
orderNo2: PLAN2024070230930
orderNo1: PLAN2024070230933
orderNo2: PLAN2024070230933
条码信息:
list_a:
- &id001
- id: UT240702000204
lastModified:
version:
createTime: '2024-07-02 11:05:19'
createUser:
lastModifiedUser:
snCode: UT240702000204
hosId: h0347
branchId:
stockId: fe0b489d59cd48d08960e5096a714487
areaCode: areah03472553
areaName: 自动化测试
shelfCode: areah03472553-2-01-01
codeType: 16
tagType: 0
hosGoodsId: h034700004353
mdmGoodsCode: '11661306'
goodsCode: '00004353'
goodsDi: '37120000043530'
barName: 100支/100
batchCode: '333'
expdtDate: '2025-01-08'
productDate: '2024-07-02'
mfrCode:
mfrCodeSee:
pkgCode: "013712000004353010333\x1D112407021725010821UT240702000204"
pkgCodeSee: 013712000004353010333112407021725010821UT240702000204
ssccCode: '010839000186587824'
extInfo:
outId:
tbStatus: 20
goodsCodeDi:
barcodeId:
ext:
pkgDefId: ee7fb81570664e758bd2642f4dab3ed3
pkgDefQty: 100
purBillId: CG2024070220251
pkgDefName: '100'
distrBillId: PSh0347202407020009
inStockTime: '2024-07-02 11:13:44'
distrDetailId: '03839046'
certificateCode: ''
sourceDetailId:
purMode: 10
purModes:
price:
pid:
goodsMfrsName: 德国歌德公司 Geuder AG
mfrsName:
goodsSpec: G-31891
unit:
goodsName: 一次性注射器_低值NaZMe
pkgDefId: ee7fb81570664e758bd2642f4dab3ed3
pkgDefQty: 100
defaultPkgDefQty:
defaultQty:
defaultSurplusQty:
defaultPkgDefId:
purDetailId:
pkgDefName: '100'
printNum: 0
deptId:
deptName:
billId:
taskId:
made: 德国
provId: p1e2e8
provName: 国药集团公司kGTpV
subProvId: p1e2e8
subProvName: 国药集团公司kGTpV
provHosGoodsId:
sourceType:
taskDate:
sourceOrderNo:
taskType:
detailId:
branchGoodsPkgDefList:
unitName:
areaCodeList:
diType:
mdmGoodsSpecCode:
hosGoodsCode: '00004353'
supplyId:
inSettlement:
spdGoodsCode:
codeKind:
brand:
miCode:
transferRatio: 1.0
miDjmc:
tbStatusList:
purModeText:
stockName:
tbStatusText:
pkgType:
bottleId:
pkgStatus:
qty:
packUnit:
minSaleQty:
rfidFlag:
mfrCodeFlag:
scanStatus:
scanId:
multiChargeFlag:
useFrequency:
chargeUnit:
lockStatus:
remark:
hosBatchId:
settleFlag:
inStockTime:
subSendFlag: 10
id: UT240702000703
snCode: UT240702000703
ssccCode: '010839000186667724'
pkgCodeSee: 0137120000043540104444112407021725010821UT240702000703
hosGoodsId: h034700004354
hosGoodsCode: '00004354'
goodsCode: '00004354'
goodsName: 新型冠状病毒检测试剂j(r&Q
goodsSpec: G-31891
goodsMfrsName: 德国歌德公司 Geuder AG
unit:
purMode: 60
batchCode: '4444'
productDate: '2024-07-02'
expdtDate: '2025-01-08'
pkgDefName: '100'
pkgDefQty: 100.0
stockId: fe0b489d59cd48d08960e5096a714487
stockName: 东土城路院区$!ZNd中心库房
areaName: 自动化测试
areaCode: areah03472553
lockStatus: 0
unitName: 100支/100
shelfCode: areah03472553-2-01-01
shelfNo: 自动化测试-2-01-01
pkgDefId: 96c4ca2199a14150a1cdabff56136aaf
extInfo: '{"pkgDefId": "96c4ca2199a14150a1cdabff56136aaf", "pkgDefQty": 100, "purBillId":
"CG2024070220277", "pkgDefName": "100", "distrBillId": "PSh0347202407020017",
"inStockTime": "2024-07-02 11:13:19", "distrDetailId": "03839054", "certificateCode":
""}'
bottleId:
pkgType: '66'
miDjmc: ''
miCode: ''
transferRatio: 1.0
qty: 1
shelfKind: 0
shelfKindName: 普通货位
provName: 国药集团公司kGTpV
provId: p1e2e8
inStockDate:
mfrCode:
made: 德国
price:
barName: 100支/100
purModeText: 检验试剂
codeType: 66
list_b:
- *id001
list_c:
......
二级库请领产品信息:
list_a:
- &id001
- hosGoodsId: h034700004353
purMode: 10
- hosGoodsId: h034700004354
purMode: 60
grantRule:
id:
goodsName: 一次性注射器_低值NaZMe
goodsName: 新型冠状病毒检测试剂j(r&Q
goodsSpec: G-31891
mdmGoodsCode: '11661306'
goodsCode: '00004353'
mdmGoodsCode: '11661307'
goodsCode: '00004354'
unit:
goodsMfrsName: 德国歌德公司 Geuder AG
miDjmc: ''
......@@ -16,9 +16,9 @@
pkgDefName: '100'
pkgDefQty: 100.0
pkgQty:
qty: 0
qty: 100.0
goodsImg: []
pkgDefId: ee7fb81570664e758bd2642f4dab3ed3
pkgDefId: 96c4ca2199a14150a1cdabff56136aaf
buyPkgQty:
unitName: 100支/100
price: 99.9999
......@@ -34,14 +34,14 @@
targetStockName: 东土城路院区$!ZNd中心库房
purchaseFlag: 1
tempFlag: 0
grantWay: 1
grantWay: 3
deptGoodsStatus:
codingType: 0
purModeText: 低值耗材
goodsGeneralName: 一次性注射器
purModeText: 检验试剂
goodsGeneralName: 检测试剂
provName: 国药集团公司kGTpV
noRecPkgQty: 7.0
noRecQty: 700.0
noRecPkgQty: 8.0
noRecQty: 800.0
autoUnpack: 0
consumeQty:
consumePkgQty:
......
......@@ -75,9 +75,9 @@ setInterval(updateTime, 1000); // 每秒更新一次时间
</tr>
<tr width="600">
<td class='details-col-elapsed'>1</td>
<td class='details-col-elapsed'>9</td>
<td class='details-col-elapsed'>0</td>
<td class='details-col-elapsed'>3分34</td>
<td class='details-col-elapsed'>14分10</td>
<td class="details-col-elapsed">0.0%</td>
</tr>
</table>
......@@ -93,9 +93,65 @@ setInterval(updateTime, 1000); // 每秒更新一次时间
</tr>
<tr width="600">
<td class="details-col-elapsed"><a href='../log/a_b2流程请领业务流_二级库向中心库/log.html' target='_blank'>a_b2流程请领业务流_二级库向中心库</a></td>
<td class="details-col-elapsed"><a href='../log/a_b3流程请领业务流_二级库向边仓/log.html' target='_blank'>a_b3流程请领业务流_二级库向边仓</a></td>
<td class="fail">失败</td>
<td class="details-col-elapsed">213.982</td>
<td class="details-col-elapsed">66.478</td>
<td class="details-col-elapsed">xiaohesheng</td>
</tr>
<tr width="600">
<td class="details-col-elapsed"><a href='../log/a_b4流程十一请领业务流_二级库向直送/log.html' target='_blank'>a_b4流程十一请领业务流_二级库向直送</a></td>
<td class="fail">失败</td>
<td class="details-col-elapsed">781.789</td>
<td class="details-col-elapsed">xiaohesheng</td>
</tr>
<tr width="600">
<td class="details-col-elapsed"><a href='../log/a_b5流程十二请领业务流_二级库向二级库/log.html' target='_blank'>a_b5流程十二请领业务流_二级库向二级库</a></td>
<td class="fail">失败</td>
<td class="details-col-elapsed">1.043</td>
<td class="details-col-elapsed">xiaohesheng</td>
</tr>
<tr width="600">
<td class="details-col-elapsed"><a href='../log/a_b6流程十三请领业务流_三级库向二级库/log.html' target='_blank'>a_b6流程十三请领业务流_三级库向二级库</a></td>
<td class="fail">失败</td>
<td class="details-col-elapsed">0.181</td>
<td class="details-col-elapsed">xiaohesheng</td>
</tr>
<tr width="600">
<td class="details-col-elapsed"><a href='../log/a_b7流程十四退库业务_消耗退库/log.html' target='_blank'>a_b7流程十四退库业务_消耗退库</a></td>
<td class="fail">失败</td>
<td class="details-col-elapsed">0.137</td>
<td class="details-col-elapsed">xiaohesheng</td>
</tr>
<tr width="600">
<td class="details-col-elapsed"><a href='../log/a_b8流程十五退库业务_三级库向二级库退库/log.html' target='_blank'>a_b8流程十五退库业务_三级库向二级库退库</a></td>
<td class="fail">失败</td>
<td class="details-col-elapsed">0.149</td>
<td class="details-col-elapsed">xiaohesheng</td>
</tr>
<tr width="600">
<td class="details-col-elapsed"><a href='../log/a_b9流程十六退库业务_二级库向一级库退库/log.html' target='_blank'>a_b9流程十六退库业务_二级库向一级库退库</a></td>
<td class="fail">失败</td>
<td class="details-col-elapsed">0.586</td>
<td class="details-col-elapsed">xiaohesheng</td>
</tr>
<tr width="600">
<td class="details-col-elapsed"><a href='../log/a_c0流程十七退货业务 中心库退供应商/log.html' target='_blank'>a_c0流程十七退货业务 中心库退供应商</a></td>
<td class="fail">失败</td>
<td class="details-col-elapsed">0.148</td>
<td class="details-col-elapsed">xiaohesheng</td>
</tr>
<tr width="600">
<td class="details-col-elapsed"><a href='../log/a_c1流程十八中心库业务_拆包功能/log.html' target='_blank'>a_c1流程十八中心库业务_拆包功能</a></td>
<td class="fail">失败</td>
<td class="details-col-elapsed">0.153</td>
<td class="details-col-elapsed">xiaohesheng</td>
</tr>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment