Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
procone.py -- OMUD
09-25-2020, 01:31 AM
Post: #2
RE: procone.py -- OMUD
(09-25-2020 01:15 AM)zhihao Wrote:  deleteIfMatch()
Code:
deleteIfMatch() {
    if $reqcaseid matches $caseid
        rid --insitu insert.json
        create file insert.json with request template which has empty value
}

根据要求修改逻辑
Quote:After the match-and-delete, we should generate a result file to report the result of the deletion. If there is no match and no deletion, the result file is a nil file -- a file with zero bytes.

设计如下:
Code:
deleteIfMatch() {
    if $reqcaseid matches $caseid
        rid --insitu insert.json
        create file insert.json with request template which has empty value
        generate result file
    else
        create empty result file
}
Quote this message in a reply
Post Reply 


Messages In This Thread
procone.py -- OMUD - zhihao - 09-25-2020, 01:15 AM
RE: procone.py -- OMUD - zhihao - 09-25-2020 01:31 AM
RE: procone.py -- OMUD - lingu - 09-26-2020, 12:38 PM
RE: procone.py -- OMUD - zhihao - 09-26-2020, 04:34 PM
RE: procone.py -- OMUD - lingu - 09-26-2020, 06:27 PM
RE: procone.py -- OMUD - zhihao - 09-26-2020, 07:05 PM
RE: procone.py -- OMUD - lingu - 11-30-2020, 01:13 PM
RE: procone.py -- OMUD - zhihao - 08-12-2021, 11:43 AM
RE: procone.py -- OMUD - zhihao - 08-10-2021, 01:58 PM
RE: procone.py -- OMUD - lingu - 08-11-2021, 06:57 PM
RE: procone.py -- OMUD - zhihao - 08-12-2021, 11:32 AM
RE: procone.py -- OMUD - zhihao - 08-11-2021, 08:24 PM
RE: procone.py -- OMUD - zhihao - 08-12-2021, 11:28 AM
RE: procone.py -- OMUD - zhihao - 08-12-2021, 12:14 PM
RE: procone.py -- OMUD - lingu - 08-14-2021, 12:35 AM
RE: procone.py -- OMUD - zhihao - 08-14-2021, 01:04 PM
RE: procone.py -- OMUD - zhihao - 08-13-2021, 07:36 PM
RE: procone.py -- OMUD - lingu - 08-14-2021, 12:37 AM
RE: procone.py -- OMUD - zhihao - 08-14-2021, 06:30 PM

Forum Jump: