|
@@ -19,6 +19,7 @@ type SafeService interface {
|
|
|
Post(data models.CmSafe) error
|
|
|
Del(id int) error
|
|
|
GetDetail(id int, pid int) viewmodels.SafeDetail
|
|
|
+ GetSurvey(projectId int, bidsectionId int)
|
|
|
ValidRule(ctx iris.Context) (viewmodels.Safe, error)
|
|
|
}
|
|
|
|
|
@@ -156,6 +157,14 @@ func (s *safeService) GetDetail(id int, pid int) viewmodels.SafeDetail {
|
|
|
return data
|
|
|
}
|
|
|
|
|
|
+// 安全概况
|
|
|
+func (s *safeService) GetSurvey(projectId int, bidsectionId int) {
|
|
|
+ // 1.获得收入合同
|
|
|
+ // year := time.Now().Year()
|
|
|
+ // safeList := s.daoSafe.ChangeStatus()
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
// 规则校验
|
|
|
func (s *safeService) ValidRule(ctx iris.Context) (viewmodels.Safe, error) {
|
|
|
safeVaild := viewmodels.Safe{}
|