|  | @@ -388,8 +388,10 @@ func (s *StoreEntry) PregnancyCheckCowList(ctx context.Context, req *pasturePb.I
 | 
	
		
			
				|  |  |  	newPregnancyCheckItems := make([]*pasturePb.PregnancyCheckItems, 0)
 | 
	
		
			
				|  |  |  	var count int64
 | 
	
		
			
				|  |  |  	pref := s.DB.Table(fmt.Sprintf("%s as a", new(model.EventPregnantCheck).TableName())).
 | 
	
		
			
				|  |  | -		Select(`a.id,a.cow_id,a.ear_number,a.pen_id,a.status,b.breed_status,b.pen_name,b.cow_type,
 | 
	
		
			
				|  |  | -		DATE_FORMAT(FROM_UNIXTIME(b.last_mating_at),'%Y-%m-%d')as mating_at_format,pregnancy_age,DATEDIFF(CURDATE(), FROM_UNIXTIME(last_mating_at)) AS mating_age,
 | 
	
		
			
				|  |  | +		Select(`a.id,a.cow_id,a.ear_number,a.pen_id,a.status,b.pen_name,b.cow_type,
 | 
	
		
			
				|  |  | +		DATE_FORMAT(FROM_UNIXTIME(b.last_mating_at),'%Y-%m-%d')as mating_at_format,pregnancy_age,DATEDIFF(CURDATE(), 
 | 
	
		
			
				|  |  | +		FROM_UNIXTIME(last_mating_at)) AS mating_age,
 | 
	
		
			
				|  |  | +		b.breed_status,
 | 
	
		
			
				|  |  |  		CASE a.pregnant_check_name
 | 
	
		
			
				|  |  |          WHEN 'pregnant_check_for_first' THEN '初检'
 | 
	
		
			
				|  |  |          WHEN 'pregnant_check_for_second' THEN '复检'
 | 
	
	
		
			
				|  | @@ -432,7 +434,7 @@ func (s *StoreEntry) PregnancyCheckCowList(ctx context.Context, req *pasturePb.I
 | 
	
		
			
				|  |  |  			Total:    int32(count),
 | 
	
		
			
				|  |  |  			Page:     pagination.Page,
 | 
	
		
			
				|  |  |  			PageSize: pagination.PageSize,
 | 
	
		
			
				|  |  | -			HeaderSort: []string{"id", "cowId", "earNumber", "cowTypeName", "penName", "lact", "dayAge", "planDay",
 | 
	
		
			
				|  |  | +			HeaderSort: []string{"id", "cowId", "earNumber", "cowTypeName", "penName", "lact", "dayAge", "breedStatus", "planDay",
 | 
	
		
			
				|  |  |  				"checkTypeName", "status", "matingTimes", "calvingAtFormat", "matingAtFormat", "matingAge", "bullId", "pregnancyAge"},
 | 
	
		
			
				|  |  |  			Header: map[string]string{
 | 
	
		
			
				|  |  |  				"id":              "编号",
 | 
	
	
		
			
				|  | @@ -451,6 +453,7 @@ func (s *StoreEntry) PregnancyCheckCowList(ctx context.Context, req *pasturePb.I
 | 
	
		
			
				|  |  |  				"matingAge":       "配后天数",
 | 
	
		
			
				|  |  |  				"bullId":          "配种公牛",
 | 
	
		
			
				|  |  |  				"pregnancyAge":    "怀孕天数",
 | 
	
		
			
				|  |  | +				"breedStatus":     "繁殖状态",
 | 
	
		
			
				|  |  |  			},
 | 
	
		
			
				|  |  |  			List: newPregnancyCheckItems,
 | 
	
		
			
				|  |  |  		},
 | 
	
	
		
			
				|  | @@ -527,7 +530,7 @@ func (s *StoreEntry) MatingCowList(ctx context.Context, req *pasturePb.ItemsRequ
 | 
	
		
			
				|  |  |  		END AS expose_estrus_type_name,
 | 
	
		
			
				|  |  |  		CASE 
 | 
	
		
			
				|  |  |          	WHEN last_calving_at = 0 THEN ""
 | 
	
		
			
				|  |  | -        	ELSE DATE_FORMAT(FROM_UNIXTIME(last_calving_at), '%Y-%m-%d %H:%i:%s')
 | 
	
		
			
				|  |  | +        	ELSE DATE_FORMAT(FROM_UNIXTIME(last_calving_at), '%Y-%m-%d')
 | 
	
		
			
				|  |  |      	END AS last_calving_at_format,
 | 
	
		
			
				|  |  |  		b.breed_status,b.cow_type,b.pen_id,b.day_age,b.calving_age,b.abortion_age,b.pen_name`).
 | 
	
		
			
				|  |  |  		Joins("left join cow as b on a.cow_id = b.id").
 |