{
  "codename" : "InitResourceAmount",
  "psdelogicname" : "计算资源金额",
  "logicholder" : 1,
  "logictype" : "DELOGIC",
  "createdate" : "2021-02-28 16:49:18",
  "psdelogiclinks" : [ {
    "defaultlink" : 0,
    "srcpsdelogicnodeid" : "<PSDELOGIC>/Begin",
    "srcendpoint" : "BottomCenter",
    "dstpsdelogicnodeid" : "<PSDELOGIC>/Rawsqlcall3",
    "linkinfo" : "连接7585:100",
    "psdelogiclinkname" : "连接7585",
    "createdate" : "2021-02-28 16:55:30",
    "ordervalue" : 100,
    "dstendpoint" : "Top"
  }, {
    "defaultlink" : 0,
    "srcpsdelogicnodeid" : "<PSDELOGIC>/Rawsqlcall1",
    "srcendpoint" : "BottomCenter",
    "dstpsdelogicnodeid" : "<PSDELOGIC>/Rawsqlcall2",
    "linkinfo" : "连接2426:100",
    "psdelogiclinkname" : "连接2426",
    "createdate" : "2021-02-28 17:01:42",
    "ordervalue" : 100,
    "dstendpoint" : "Top"
  }, {
    "defaultlink" : 0,
    "srcpsdelogicnodeid" : "<PSDELOGIC>/Rawsqlcall3",
    "srcendpoint" : "BottomCenter",
    "dstpsdelogicnodeid" : "<PSDELOGIC>/Rawsqlcall1",
    "linkinfo" : "连接6955:100",
    "psdelogiclinkname" : "连接6955",
    "createdate" : "2021-03-09 13:35:09",
    "ordervalue" : 100,
    "dstendpoint" : "Top"
  } ],
  "psdelogicnodes" : [ {
    "leftpos" : 322,
    "codename" : "Begin",
    "paralleloutput" : 1,
    "psdelogicnodename" : "开始",
    "createdate" : "2021-02-28 16:49:18",
    "logicnodetype" : "BEGIN",
    "toppos" : 75
  }, {
    "leftpos" : 322,
    "param4" : "select (totalprice/8)*(case when ?>8 then 8 else ? end ) as AMOUNT\nfrom PSAPROJECTRECPRICE t,resource t1 \nwhere t.resourcetypeid=t1.resourcetypeid \nand t.psaprojectid=? and t1.resourceid=?",
    "param9" : 1,
    "param7" : 1,
    "codename" : "Rawsqlcall1",
    "paralleloutput" : 1,
    "psdelogicnodename" : "计算资源金额",
    "createdate" : "2021-02-28 16:55:30",
    "logicnodetype" : "RAWSQLCALL",
    "toppos" : 420,
    "dstpsdlparamid" : "<PSDELOGIC>/Default",
    "dstpsdlparamname" : "Default",
    "psdelnparams" : [ {
      "srcpsdlparamid" : "<PSDELOGIC>/Default",
      "srcpsdlparamname" : "Default",
      "customsrcparam" : "ACTUALHOURS",
      "ordervalue" : 100,
      "srcvaluetype" : "SRCDLPARAM",
      "paramtype" : "SQLPARAM",
      "psdelnparamname" : "Default[ACTUALHOURS]",
      "createdate" : "2021-02-28 16:55:30"
    }, {
      "srcpsdlparamid" : "<PSDELOGIC>/Default",
      "srcpsdlparamname" : "Default",
      "customsrcparam" : "ACTUALHOURS",
      "ordervalue" : 200,
      "srcvaluetype" : "SRCDLPARAM",
      "paramtype" : "SQLPARAM",
      "psdelnparamname" : "Default[ACTUALHOURS]",
      "createdate" : "2021-02-28 16:55:30"
    }, {
      "srcpsdlparamid" : "<PSDELOGIC>/Default",
      "srcpsdlparamname" : "Default",
      "customsrcparam" : "PSAPROJECTID",
      "ordervalue" : 300,
      "srcvaluetype" : "SRCDLPARAM",
      "paramtype" : "SQLPARAM",
      "psdelnparamname" : "Default[PSAPROJECTID]",
      "createdate" : "2021-02-28 16:55:30"
    }, {
      "srcpsdlparamid" : "<PSDELOGIC>/Default",
      "srcpsdlparamname" : "Default",
      "customsrcparam" : "RESOURCEID",
      "ordervalue" : 400,
      "srcvaluetype" : "SRCDLPARAM",
      "paramtype" : "SQLPARAM",
      "psdelnparamname" : "Default[RESOURCEID]",
      "createdate" : "2021-02-28 16:55:30"
    } ]
  }, {
    "leftpos" : 322,
    "param4" : "select PSAPROJECTID from resourcebill where resourcebillid=?",
    "param9" : 1,
    "param7" : 1,
    "codename" : "Rawsqlcall3",
    "paralleloutput" : 1,
    "psdelogicnodename" : "设置项目ID",
    "createdate" : "2021-03-09 13:35:09",
    "logicnodetype" : "RAWSQLCALL",
    "toppos" : 247,
    "dstpsdlparamid" : "<PSDELOGIC>/Default",
    "dstpsdlparamname" : "Default",
    "psdelnparams" : [ {
      "srcpsdlparamid" : "<PSDELOGIC>/Default",
      "srcpsdlparamname" : "Default",
      "customsrcparam" : "RESOURCEBILLID",
      "ordervalue" : 100,
      "srcvaluetype" : "SRCDLPARAM",
      "paramtype" : "SQLPARAM",
      "psdelnparamname" : "Default[RESOURCEBILLID]",
      "createdate" : "2021-03-09 13:35:09"
    } ]
  }, {
    "leftpos" : 326,
    "param4" : "select psaprojectrecid from psaprojectrec t\nwhere  t.psaprojectid=? and t.resourceid=?\n",
    "param9" : 1,
    "param7" : 1,
    "codename" : "Rawsqlcall2",
    "paralleloutput" : 1,
    "psdelogicnodename" : "设置项目资源ID",
    "createdate" : "2021-02-28 17:01:41",
    "logicnodetype" : "RAWSQLCALL",
    "toppos" : 573,
    "dstpsdlparamid" : "<PSDELOGIC>/Default",
    "dstpsdlparamname" : "Default",
    "psdelnparams" : [ {
      "srcpsdlparamid" : "<PSDELOGIC>/Default",
      "srcpsdlparamname" : "Default",
      "customsrcparam" : "PSAPROJECTID",
      "ordervalue" : 100,
      "srcvaluetype" : "SRCDLPARAM",
      "paramtype" : "SQLPARAM",
      "psdelnparamname" : "Default[PSAPROJECTID]",
      "createdate" : "2021-02-28 17:01:41"
    }, {
      "srcpsdlparamid" : "<PSDELOGIC>/Default",
      "srcpsdlparamname" : "Default",
      "customsrcparam" : "RESOURCEID",
      "ordervalue" : 200,
      "srcvaluetype" : "SRCDLPARAM",
      "paramtype" : "SQLPARAM",
      "psdelnparamname" : "Default[RESOURCEID]",
      "createdate" : "2021-02-28 17:01:41"
    } ]
  } ],
  "psdelogicparams" : [ {
    "parampsdeid" : "<PSDATAENTITY>",
    "globalparam" : 0,
    "defaultparam" : 1,
    "logicname" : "传入变量",
    "psdelogicparamname" : "Default",
    "createdate" : "2021-02-28 16:49:18"
  } ]
}