소스 검색

1.查履约步骤增加超期天数字段(overdays)

zou.yingbin 4 년 전
부모
커밋
fb6aad0a47
4개의 변경된 파일13개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      docs/docs.go
  2. 4 0
      docs/swagger.json
  3. 3 0
      docs/swagger.yaml
  4. 2 0
      models/wrTrade2.go

+ 4 - 0
docs/docs.go

@@ -30768,6 +30768,10 @@ var doc = `{
                     "description": "选择项比较串【{选择项ID}+{冒号}+选择项值 } ,逗号分隔,头尾加逗号】-- 所有选择项拼接,用于比较",
                     "type": "string"
                 },
+                "overdays": {
+                    "description": "超期天数 = 当前时间(数据库时间) - 结束日期",
+                    "type": "integer"
+                },
                 "performancestepid": {
                     "description": "履约步骤ID(131+Unix秒时间戳(10位)+xxxxxx)",
                     "type": "string"

+ 4 - 0
docs/swagger.json

@@ -30752,6 +30752,10 @@
                     "description": "选择项比较串【{选择项ID}+{冒号}+选择项值 } ,逗号分隔,头尾加逗号】-- 所有选择项拼接,用于比较",
                     "type": "string"
                 },
+                "overdays": {
+                    "description": "超期天数 = 当前时间(数据库时间) - 结束日期",
+                    "type": "integer"
+                },
                 "performancestepid": {
                     "description": "履约步骤ID(131+Unix秒时间戳(10位)+xxxxxx)",
                     "type": "string"

+ 3 - 0
docs/swagger.yaml

@@ -14107,6 +14107,9 @@ definitions:
       optioncompare:
         description: 选择项比较串【{选择项ID}+{冒号}+选择项值 } ,逗号分隔,头尾加逗号】-- 所有选择项拼接,用于比较
         type: string
+      overdays:
+        description: 超期天数 = 当前时间(数据库时间) - 结束日期
+        type: integer
       performancestepid:
         description: 履约步骤ID(131+Unix秒时间戳(10位)+xxxxxx)
         type: string

+ 2 - 0
models/wrTrade2.go

@@ -1829,6 +1829,7 @@ type WrPerformancePlanStep struct {
 	STEPREMARK        string  `json:"stepremark"  xorm:"STEPREMARK" form:"stepremark"`              // 步骤备注
 	STEPTYPENAME      string  `json:"steptypename"  xorm:"'STEPTYPENAME'"`                          // 步骤名称
 	RELATEDORDERID    string  `json:"relatedorderid"  xorm:"'RELATEDORDERID'"`                      // 关联单号
+	OVERDAYS          int32   `json:"overdays"  xorm:"'OVERDAYS'"`                                  // 超期天数 = 当前时间(数据库时间) - 结束日期
 	Wr2FactorType     `xorm:"extends"`
 }
 
@@ -1878,6 +1879,7 @@ func (r *WrPerformancePlanStep) buildSql() string {
 		"       t.EXECUTESIDE," +
 		"       to_char(t.STARTTIME, 'yyyy-mm-dd hh24:mi:ss') STARTTIME," +
 		"       to_char(t.ENDTIME, 'yyyy-mm-dd hh24:mi:ss') ENDTIME," +
+		"       nvl(trunc(sysdate) - trunc(t.endtime), 0) overdays," +
 		"       t.REMARK," +
 		"       t.STEPREMARK," +
 		"       s.steptypename," +