Accept Merge Request #1307: (feature/优化制造功能 -> develop)

Merge Request: 增加拉取文件之前的检查

Created By: @马广威
Accepted By: @马广威
URL: https://jikimo-hn.coding.net/p/jikimo_sfs/d/jikimo_sf/git/merge/1307?initial=true
This commit is contained in:
马广威
2024-09-14 14:34:02 +08:00
committed by Coding

View File

@@ -426,7 +426,7 @@ class ResMrpWorkOrder(models.Model):
logging.info('local_file_path:%s' % local_file_path)
remote_path = '/home/ftp/ftp_root/ThreeTest/XT/Before/' + local_filename
logging.info('remote_path:%s' % remote_path)
# if not ftp.file_exists(remote_path):
if not ftp.file_exists(remote_path):
paload_data = {
"filename": local_filename
}