|
@@ -1407,7 +1407,7 @@ GROUP BY fpd.ptsid`
|
|
sqlstr := `SELECT
|
|
sqlstr := `SELECT
|
|
lpplan.date,
|
|
lpplan.date,
|
|
-- ifnull((select eqcode from tmr where pastureid =lpplan.pastureid and id = lpplan.tmrid ),lpplan.tmrname)
|
|
-- ifnull((select eqcode from tmr where pastureid =lpplan.pastureid and id = lpplan.tmrid ),lpplan.tmrname)
|
|
- lpplan.tmrname tmrname,trim(lpplan.tmrid) tmrid,lpplan.sort,lpplan.sel,lpplan.times timesInt,
|
|
|
|
|
|
+ (select eqcode from tmr where pastureid =lpplan.pastureid and id = lpplan.tmrid ) tmrname,trim(lpplan.tmrid) tmrid,lpplan.sort,lpplan.sel,lpplan.times timesInt,
|
|
if( ifnull((select inforvalue from sysopt where inforname = 'language' and lpplan.pastureId),0) = 0 ,
|
|
if( ifnull((select inforvalue from sysopt where inforname = 'language' and lpplan.pastureId),0) = 0 ,
|
|
CASE
|
|
CASE
|
|
lpplan.times
|
|
lpplan.times
|