|
@@ -20,9 +20,6 @@ func AddReportAndChapter(reportItem *Report, allGrantUserList []*report.ReportGr
|
|
|
//o := orm.NewOrmUsingDB("rddp")
|
|
|
//to, err := o.Begin()
|
|
|
to := global.DmSQL["rddp"].Begin()
|
|
|
- if err != nil {
|
|
|
- return
|
|
|
- }
|
|
|
defer func() {
|
|
|
if err != nil {
|
|
|
_ = to.Rollback()
|
|
@@ -112,9 +109,6 @@ func EditReportAndPermission(reportInfo *Report, updateCols []string, addReportG
|
|
|
//o := orm.NewOrmUsingDB("rddp")
|
|
|
//to, err := o.Begin()
|
|
|
to := global.DmSQL["rddp"].Begin()
|
|
|
- if err != nil {
|
|
|
- return
|
|
|
- }
|
|
|
defer func() {
|
|
|
if err != nil {
|
|
|
_ = to.Rollback()
|
|
@@ -167,9 +161,6 @@ func AddChapterBaseInfoAndPermission(reportChapterInfo *ReportChapter, addReport
|
|
|
//o := orm.NewOrmUsingDB("rddp")
|
|
|
//to, err := o.Begin()
|
|
|
to := global.DmSQL["rddp"].Begin()
|
|
|
- if err != nil {
|
|
|
- return
|
|
|
- }
|
|
|
defer func() {
|
|
|
if err != nil {
|
|
|
_ = to.Rollback()
|
|
@@ -229,9 +220,6 @@ func EditChapterBaseInfoAndPermission(reportInfo *Report, reportChapterInfo *Rep
|
|
|
//o := orm.NewOrmUsingDB("rddp")
|
|
|
//to, err := o.Begin()
|
|
|
to := global.DmSQL["rddp"].Begin()
|
|
|
- if err != nil {
|
|
|
- return
|
|
|
- }
|
|
|
defer func() {
|
|
|
if err != nil {
|
|
|
_ = to.Rollback()
|
|
@@ -313,9 +301,6 @@ func DelChapterAndPermission(reportInfo *Report, updateReportCols []string, repo
|
|
|
//o := orm.NewOrmUsingDB("rddp")
|
|
|
//to, err := o.Begin()
|
|
|
to := global.DmSQL["rddp"].Begin()
|
|
|
- if err != nil {
|
|
|
- return
|
|
|
- }
|
|
|
defer func() {
|
|
|
if err != nil {
|
|
|
_ = to.Rollback()
|
|
@@ -426,9 +411,6 @@ func ModifyReportClassifyAndReportChapterTypeByCondition(condition string, pars
|
|
|
//o := orm.NewOrmUsingDB("rddp")
|
|
|
//to, err := o.Begin()
|
|
|
to := global.DmSQL["rddp"].Begin()
|
|
|
- if err != nil {
|
|
|
- return
|
|
|
- }
|
|
|
defer func() {
|
|
|
if err != nil {
|
|
|
_ = to.Rollback()
|