Browse Source

Merge branch 'develop' of baishaojie/tmrgo1 into master

baishaojie 1 month ago
parent
commit
bd9d4e3b4f
54 changed files with 6 additions and 35 deletions
  1. 0 0
      .bss
  2. BIN
      .data
  3. BIN
      .debug_abbrev
  4. BIN
      .debug_frame
  5. BIN
      .debug_gdb_scripts
  6. BIN
      .debug_info
  7. BIN
      .debug_line
  8. BIN
      .debug_loc
  9. BIN
      .debug_ranges
  10. BIN
      .go.buildinfo
  11. BIN
      .gopclntab
  12. 0 0
      .gosymtab
  13. BIN
      .itablink
  14. 0 0
      .noptrbss
  15. BIN
      .noptrdata
  16. BIN
      .note.go.buildid
  17. BIN
      .rodata
  18. BIN
      .shstrtab
  19. BIN
      .strtab
  20. BIN
      .symtab
  21. BIN
      .text
  22. BIN
      .typelink
  23. 0 0
      NULL
  24. BIN
      TMRWatchComm
  25. BIN
      TMRWatchComm.zip
  26. BIN
      distzc/favicon.ico
  27. 0 0
      distzc/index.html
  28. 0 0
      distzc/static/css/app.ae6944cd.css
  29. 0 0
      distzc/static/css/chunk-elementUI.c1c3b808.css
  30. 0 0
      distzc/static/css/chunk-libs.f403b559.css
  31. BIN
      distzc/static/fonts/element-icons.535877f5.woff
  32. BIN
      distzc/static/fonts/element-icons.732389de.ttf
  33. BIN
      distzc/static/img/404.a57b6f31.png
  34. BIN
      distzc/static/img/404_cloud.0f4bc32b.png
  35. BIN
      distzc/static/img/guiji2.9dc0addf.jpeg
  36. 0 28
      distzc/static/img/iconfont.0ddaba12.svg
  37. BIN
      distzc/static/img/logo.afed751a.png
  38. BIN
      distzc/static/img/logo1.0121925c.png
  39. BIN
      distzc/static/img/logo_u3.3c77f543.png
  40. BIN
      distzc/static/img/nlogin-bg1.77301f56.jpg
  41. BIN
      distzc/static/img/row-bg3.b3be7548.png
  42. BIN
      distzc/static/img/topBg.69ecd1e1.png
  43. 0 0
      distzc/static/js/app.725702c9.js
  44. 0 0
      distzc/static/js/chunk-4be30289.2369f77e.js
  45. 0 0
      distzc/static/js/chunk-52ecc0ac.351a4392.js
  46. 0 0
      distzc/static/js/chunk-5c4dc4a9.72b2f70d.js
  47. 0 0
      distzc/static/js/chunk-b702d234.5ae7551f.js
  48. 0 0
      distzc/static/js/chunk-elementUI.c961dc79.js
  49. 0 0
      distzc/static/js/chunk-libs.8d47e7c4.js
  50. 1 1
      http/handle/api/ops.go
  51. 1 1
      http/handle/api/scheduled.go
  52. 1 1
      http/handle/ymy/ymy.go
  53. 0 1
      http/routers/app_api.go
  54. 3 3
      module/group.go

+ 0 - 0
.bss


BIN
.data


BIN
.debug_abbrev


BIN
.debug_frame


BIN
.debug_gdb_scripts


BIN
.debug_info


BIN
.debug_line


BIN
.debug_loc


BIN
.debug_ranges


BIN
.go.buildinfo


BIN
.gopclntab


+ 0 - 0
.gosymtab


BIN
.itablink


+ 0 - 0
.noptrbss


BIN
.noptrdata


BIN
.note.go.buildid


BIN
.rodata


BIN
.shstrtab


BIN
.strtab


BIN
.symtab


BIN
.text


BIN
.typelink


+ 0 - 0
NULL


BIN
KPTAdmin64.exe → TMRWatchComm


BIN
TMRWatchComm.zip


BIN
distzc/favicon.ico


File diff suppressed because it is too large
+ 0 - 0
distzc/index.html


File diff suppressed because it is too large
+ 0 - 0
distzc/static/css/app.ae6944cd.css


File diff suppressed because it is too large
+ 0 - 0
distzc/static/css/chunk-elementUI.c1c3b808.css


File diff suppressed because it is too large
+ 0 - 0
distzc/static/css/chunk-libs.f403b559.css


BIN
distzc/static/fonts/element-icons.535877f5.woff


BIN
distzc/static/fonts/element-icons.732389de.ttf


BIN
distzc/static/img/404.a57b6f31.png


BIN
distzc/static/img/404_cloud.0f4bc32b.png


BIN
distzc/static/img/guiji2.9dc0addf.jpeg


File diff suppressed because it is too large
+ 0 - 28
distzc/static/img/iconfont.0ddaba12.svg


BIN
distzc/static/img/logo.afed751a.png


BIN
distzc/static/img/logo1.0121925c.png


BIN
distzc/static/img/logo_u3.3c77f543.png


BIN
distzc/static/img/nlogin-bg1.77301f56.jpg


BIN
distzc/static/img/row-bg3.b3be7548.png


BIN
distzc/static/img/topBg.69ecd1e1.png


File diff suppressed because it is too large
+ 0 - 0
distzc/static/js/app.725702c9.js


File diff suppressed because it is too large
+ 0 - 0
distzc/static/js/chunk-4be30289.2369f77e.js


File diff suppressed because it is too large
+ 0 - 0
distzc/static/js/chunk-52ecc0ac.351a4392.js


File diff suppressed because it is too large
+ 0 - 0
distzc/static/js/chunk-5c4dc4a9.72b2f70d.js


File diff suppressed because it is too large
+ 0 - 0
distzc/static/js/chunk-b702d234.5ae7551f.js


File diff suppressed because it is too large
+ 0 - 0
distzc/static/js/chunk-elementUI.c961dc79.js


File diff suppressed because it is too large
+ 0 - 0
distzc/static/js/chunk-libs.8d47e7c4.js


+ 1 - 1
http/handle/api/ops.go

@@ -1097,7 +1097,7 @@ func GetRJSBData(c *gin.Context) {
 	returntype := fsion.Get("returntype").ValueDefaultStr("map")
 	month := fsion.Get("month").ValueDefaultStr("map")
 	logging.Info("GetUpkeepPlan ", c.Keys, sqlnamestr, month)
-	// pagecount = 1
+	pagecount = 1
 	tx := restful.Engine.NewSession()
 	err := tx.Begin()
 	defer func() {

+ 1 - 1
http/handle/api/scheduled.go

@@ -191,8 +191,8 @@ func CronScheduled(ctx context.Context) {
 	} else if setting.ServerSetting.SyncStatus == 8 {
 		InitMqttClient()
 	}
+
 	// manualUdData(pastureinfo)
-	// ymy.YmyCron(pastureinfo.Werks, pastureinfo.Pastureid)
 	// //圣牧自动同步前天有进行中的任务
 	// manualUdData(pastureinfo)
 	// gm.GmUdSync(pastureinfo.Pastureid, pastureinfo.Werks)

+ 1 - 1
http/handle/ymy/ymy.go

@@ -286,7 +286,7 @@ func YmyUtirPush(pastureId, farmId, date string) error {
 		now = time.Now().AddDate(0, 0, -1).Format("2006-01-02")
 	}
 
-	dataList, err := tx.SQL(`select  MD5(CONCAT(d.pid, d.mydate)) loadId , date_format(d1.date,'%Y-%m-%d')  dropDate,date_format(d1.date,'%Y-%m-%d')  loadDate,d.times loadShift,d.id  tmrNo,ft.tcode recipeId,ft.ccname recipeName,if(d1.feedcode = -1 ,d1.feedcode,f.feedcode) ingId,if(d1.feedcode = -1 ,d1.feedcode,f.feedcode) feedCode ,ifnull(f.fname,ftd.fname)  ingName,
+	dataList, err := tx.SQL(`select  MD5(CONCAT(d.pid, d.mydate)) loadId , date_format(d1.date,'%Y-%m-%d')  dropDate,date_format(d1.date,'%Y-%m-%d')  loadDate,d.times loadShift,d.id  tmrNo,ft.tcode recipeId,ft.ccname recipeName,'' ingId,'' feedCode ,ifnull(f.fname,ftd.fname)  ingName,
 	ifnull(ifnull(fc.fcname,(select fcname from feedclass fc1 join feed f1 on f1.fclassid = fc1.id where f1.id =ftd.fid )),'饲料') ingType,
 	ifnull(f.dry * d1.actualweightminus,0)  dmPct,d1.sort mixNo,ifnull(d1.feedallowratio,0) allowableError , if(f.fname is not null, ifnull(d1.lweight,''),	ifnull(ftd.fweight / (select sum(fweight)  from ftdetaildate  where  date =  d1.date and ftid = d1.fid ) *  d1.lweight,"") )  expWeight,
 	

+ 0 - 1
http/routers/app_api.go

@@ -293,7 +293,6 @@ func AppAPI(opts ...func(engine *gin.Engine)) func(s *gin.Engine) {
 
 			apiV3.POST("/plan/dry", api.GetPlanDry)
 			apiV3.GET("/bar/list", api.GetBar)
-
 		}
 
 		apiV4 := s.Group("/customreport") // restful  接口 tablename 是 表名字

+ 3 - 3
module/group.go

@@ -356,7 +356,7 @@ func FeedTemplateList(req *models.FeedListRequest) ([]*models.FeedTemplate, int6
 		return nil, 0, err
 	}
 
-	if err = newSession.Table(new(models.FeedTemplate).TableName()).Limit(int(req.PageSize), int(req.Page-1)*int(req.PageSize)).Find(&res); err != nil {
+	if err = newSession.Table(new(models.FeedTemplate).TableName()).Limit(int(req.Page-1)*int(req.PageSize), int(req.PageSize)).Find(&res); err != nil {
 		return nil, 0, err
 	}
 
@@ -376,7 +376,7 @@ func FeedList(req *models.FeedListRequest) ([]*models.Feed, int64, error) {
 		return nil, 0, err
 	}
 
-	if err = newSession.Table(new(models.Feed).TableName()).Limit(int(req.PageSize), int(req.Page-1)*int(req.PageSize)).Find(&res); err != nil {
+	if err = newSession.Table(new(models.Feed).TableName()).Limit(int(req.Page-1)*int(req.PageSize), int(req.PageSize)).Find(&res); err != nil {
 		return nil, 0, err
 	}
 	return res, total, nil
@@ -395,7 +395,7 @@ func FeedTemplateDetailList(req *models.FeedListRequest) ([]*models.FeedTemplate
 		return nil, 0, err
 	}
 
-	if err = newSession.Table(new(models.FeedTemplateDetail).TableName()).Limit(int(req.PageSize), int(req.Page-1)*int(req.PageSize)).Find(&res); err != nil {
+	if err = newSession.Table(new(models.FeedTemplateDetail).TableName()).Limit(int(req.Page-1)*int(req.PageSize), int(req.PageSize)).Find(&res); err != nil {
 		return nil, 0, err
 	}
 	return res, total, nil

Some files were not shown because too many files changed in this diff