完善保险端前后端和养殖端小程序

This commit is contained in:
xuqiuyun
2025-09-22 19:09:45 +08:00
parent 02a25515a9
commit 325c114c38
256 changed files with 48348 additions and 4444 deletions

View File

@@ -190,8 +190,8 @@ class IotCattleController {
attributes: [
'id', 'earNumber', 'sex', 'strain', 'varieties', 'cate',
'birthWeight', 'birthday', 'penId', 'batchId', 'orgId',
'weight', 'level', 'weightCalculateTime', 'dayOfBirthday',
'intoTime', 'parity', 'source', 'sourceDay', 'sourceWeight',
'weight', 'parity', 'weightCalculateTime', 'dayOfBirthday',
'intoTime', 'source', 'sourceDay', 'sourceWeight',
'event', 'eventTime', 'lactationDay', 'semenNum', 'isWear',
'imgs', 'isEleAuth', 'isQuaAuth', 'isDelete', 'isOut',
'createUid', 'createTime', 'algebra', 'colour', 'infoWeight',
@@ -235,7 +235,7 @@ class IotCattleController {
sourceDay: cattle.sourceDay,
sourceWeight: cattle.sourceWeight,
ageInMonths: calculateAgeInMonths(cattle.birthday), // 从iot_cattle.birthday计算月龄
physiologicalStage: cattle.level || 0, // 使用level作为生理阶段
physiologicalStage: cattle.parity || 0, // 使用parity作为生理阶段
currentWeight: cattle.weight || 0, // 使用weight作为当前体重
weightCalculateTime: cattle.weightCalculateTime,
dayOfBirthday: cattle.dayOfBirthday,
@@ -331,7 +331,7 @@ class IotCattleController {
sourceDay: cattle.sourceDay,
sourceWeight: cattle.sourceWeight,
ageInMonths: calculateAgeInMonths(cattle.birthday), // 从iot_cattle.birthday计算月龄
physiologicalStage: cattle.level || 0, // 使用level作为生理阶段
physiologicalStage: cattle.parity || 0, // 使用parity作为生理阶段
currentWeight: cattle.weight || 0, // 使用weight作为当前体重
weightCalculateTime: cattle.weightCalculateTime,
dayOfBirthday: cattle.dayOfBirthday,