select count(paraid) from Parameter where paraLong = #{stuId} and paraInt = #{raceId}
INSERT INTO Parameter ( paraId,paraType,paraInt,paraLong,valueInt,valueLong,valueStr,startTime,created,status,description,memo )
Values ( #{paraId},#{paraType},#{paraInt},#{paraLong},#{valueInt},#{valueLong},#{valueStr},#{startTime},#{created},#{status},#{description},#{memo})
UPDATE Parameter
SET paraType=#{paraType},paraInt=#{paraInt},paraLong=#{paraLong},valueInt=#{valueInt},valueLong=#{valueLong},valueStr=#{valueStr},startTime=#{startTime},created=#{created},status=#{status},description=#{description},memo=#{memo}
WHERE paraId=#{paraId}
SELECT paraId,paraType,paraInt,paraLong,valueInt,valueLong,valueStr,startTime,created,status,description,memo
FROM Parameter
WHERE paraId=#{paraId}
SELECT nextval('seq_parameterid') ;
SELECT paraId,paraType,paraInt,paraLong,valueInt,valueLong,valueStr,startTime,created,status,description,memo
FROM Parameter
paraType = #{paraType}
and paraInt = #{paraInt}
and status =1
order by startTime desc,created desc,paraId desc
select paraId as type,valueStr as title,valueint as gradeAffiliation,valueLong as orderId,memo as themeGradeAffiliation from parameter where paraType = #{paraType} and paraInt = #{paraInt} order by paraid
SELECT paraId,paraType,paraInt,paraLong,valueInt,valueLong,valueStr,startTime,created,status,description,memo
FROM Parameter
paraType = #{paraType}
and paraInt = #{paraInt}
and paraLong = #{paraLong}
and status =1 and startTime <= now()
order by startTime desc,created desc,paraId desc
SELECT paraId,paraType,paraInt,paraLong,valueInt,valueLong,valueStr,startTime,created,status,description,memo
FROM Parameter
paraType = #{paraType}
and valueInt = #{valueInt}
and status =1
order by created desc,startTime desc,paraId desc
SELECT paraId,paraType,paraInt,paraLong,valueInt,valueLong,startTime,created,status,description,memo,valueStr
FROM Parameter where status=1
and
paraType = #{paraType}
and
paraInt = #{paraInt}
order by created desc ,startTime desc ,paraId desc
limit #{pageSize}
offset #{offset}
SELECT count(paraId)
FROM Parameter where status=1
and
paraType = #{paraType}
and
paraInt = #{paraInt}
SELECT paraId,paraType,paraLong,valueInt,valueLong,startTime,created,status,description,memo,valueStr
FROM Parameter where status=1
and
paraType = #{paraType}
and
paraLong = #{paraLong}
order by startTime desc ,created desc
limit #{pageSize}
offset #{offset}
SELECT count(paraId)
FROM Parameter where status=1
and
paraType = #{paraType}
and
paraLong = #{paraLong}
and
valueInt = #{valueInt}
select
p.paraint examPaperId,e.title,e.examLevel,p.valueint partType,p.valuelong difficult,p.valuestr guid,p.status,p.description tags,p.memo questiontitle
FROM Parameter p
inner join exampaper e
on p.paraint=e.exampaperid
and e.examLevel = #{examLevel}
and e.title like '%${title}%'
where p.status=1 and p.paratype=3
and p.valueint = #{partType}
and p.valuelong = #{difficult}
and p.memo like '%${questionTitle}%'
${connector} p.description like '%${item}%'
order by p.paraid desc
limit #{pageSize}
offset #{offset}
select count(*)
FROM Parameter p
inner join exampaper e
on p.paraint=e.exampaperid
and e.examLevel = #{examLevel}
and e.title like '%${title}%'
where p.status=1 and p.paratype=3
and p.valueint = #{partType}
and p.valuelong = #{difficult}
and p.memo like '%${questionTitle}%'
${connector} p.description like '%${item}%'
select paraId as "tagId",valuestr as "tagTitle",paraint as "tagType",description as "tagValue"
from parameter where paratype=5 and status=1 and paraint >0 order by paraId desc
limit #{pageSize}
offset #{offset}
select count(paraId)
from parameter where paratype=5 and status=1 and paraint >0
select paraId as "tagId",valuestr as "tagTitle",paraint as "tagType",description as "tagValue"
from parameter where paratype=5 and status=1 and paraId=#{tagId}
select paraId,paraLong,s.areaId,schoolname,a.areaName county,b.areaname provincialCity,
c.areaname province from parameter p
inner join school s
on p.paralong=s.schoolId and paraType=#{paraType} and p.status=1 and s.status=1 and valueint= #{valueInt}
inner join area a
on a.areaId = s.areaId
inner join area b
on b.areaId = a.parentId
inner join area c
on c.areaId = b.parentId
order by paraid desc
limit #{pageSize}
offset #{offset}
delete from parameter where paraId in
#{item}
SELECT paraId,paraType,paraInt,paraLong,valueInt,valueLong,valueStr,startTime,created,status,description,memo
FROM Parameter
WHERE paraInt=#{lessonId} and valueStr=#{courseType} and paraType=11 and status=1
order by created desc limit 1
SELECT paraId,paraType,paraInt,paraLong,valueInt,valueLong,valueStr,startTime,created,status,description,memo
FROM Parameter
WHERE paraType=11 and status=1
order by created desc
SELECT paraId,paraType,paraInt,paraLong,valueInt,valueLong,valueStr,startTime,created,status,description,memo
FROM Parameter
WHERE paraType=13 and paralong=#{teacherId} and valueInt=#{isOral}
order by created desc limit 1
select paraId,paraType,paraInt,paraLong,valueInt,valueLong,valueStr,created,startTime,status,description,memo
from Parameter where valueStr = #{recognizecode} and paraInt=#{raceId} limit 1
SELECT paraId,paraType,paraLong,valueInt,startTime,created,status,description,memo,valueStr
FROM Parameter where status=1
and
paraType = #{paraType}
and
paraLong in
#{item}
select paraId,paraInt,paraType,paraLong,valueInt,valueLong,startTime,created,status,description,memo,valueStr
FROM Parameter
and valueStr = #{valueStr}
and paraInt = #{paraInt}
and status = #{status}
and paraType= 20
select studentId , truename , nickname , areaId ,to_char(starttime, 'yyyy-mm-dd HH24:MI:SS') as starttime,
recognizeCode , cellphone , telephone , email
FROM Parameter as a inner join student on a.paraLong = studentId
and a.valueLong = #{valueLong}
and a.paraInt = #{paraInt}
and a.status = #{status}
and paraType= 20 order by a.starttime desc
select DISTINCT s.studentId "studentId",st.avatar, st.truename ,st.nickname ,signature,userlevel "userLevel",
levelname "levelName",goldmedalcount "goldMedalCount"
from
studentownclass s
inner join
student st on s.status=0
and st.studentid=s.studentId and st.status=0 and st.areaId = #{areaId} and s.areaid=#{areaId}
inner join userhonor u on u.uid=s.studentid and u.areaid=#{areaId}
where st.studentid in
#{item}
order by goldmedalcount desc nulls last,s.studentid
select s.studentid as studentId from parameter as a
inner join student as s on a.paraLong = s.studentId and s.status = 1
inner join studentownclass as soc on soc.studentId = s.studentId
where a.paraInt = 1 and a.status = 1 and a.paraType = 16 and valuelong = #{teacherId} and soc.classesId = #{classesId} order By a.created desc
select s.studentid as studentId from parameter as a
inner join student as s on a.paraLong = s.studentId and s.status = 0
inner join studentownclass as soc on soc.studentId = s.studentId
where a.paraInt = 3 and a.status = 0 and a.paraType = 16 and valuelong = #{teacherId} and soc.classesId = #{classesId} group by s.studentid
select paraId,paraInt,paraType,paraLong,valueInt,valueLong,startTime,created,status,description,memo,valueStr
FROM Parameter
and valueLong = #{valueLong}
and paraInt = #{paraInt}
and status = #{status}
and paraType = #{paraType}
and paraLong = #{paraLong}
and valueInt = #{valueInt}
select a.paraId,a.paraInt,a.paraType,a.paraLong,a.valueInt,a.valueLong,a.startTime,a.created,a.status,a.description,a.memo,a.valueStr
FROM Parameter as a inner join goods g on a.valueInt = g.goodsid
and a.valueLong = #{valueLong}
and a.paraInt = #{paraInt}
and a.status = #{status}
and a.paraType = #{paraType}
and a.paraLong = #{paraLong}
and a.valueInt = #{valueInt}
order by g.goodslevel ,g.goodsid
select paraId,paraInt,paraType,paraLong,valueInt,valueLong,startTime,created,status,description,memo,valueStr
FROM Parameter
and paraInt = #{paraInt}
and status = #{status}
and paraType = #{paraType}
and to_number(trim((memo::json->>'examlevel') :: text),'999999') = #{examLevel}
select c.paraId,c.paraInt,c.paraType,c.paraLong,c.valueInt,c.valueLong,c.startTime,c.created,c.status,c.description,c.memo,c.valueStr from parameter as c
and paraInt = #{paraInt}
and status = #{status}
and paraType = #{paraType}
-- where c.status = 1 and c.paraint = -1 and c.paraType = 5
and to_number(trim((c.memo::json->>'examlevel') :: text),'999999') in
(select b.classlevel from teacher as a inner join classes as b on a.teacherid = b.teacherid
where a.teacherId = #{teacherId})
group by c.paraId ,c.valuestr
order by position(SUBSTRING(c.valuestr, 1, 1) in '大高初九八七六五四三二一') desc,
position(SUBSTRING(c.valuestr, 2, 1) in '大高初九八七六五四三二一') desc,c.valuestr
with temp as (select b.parentid from parameter as a
inner join area as b on a.valueint=b.areaid
and a.paraInt = #{paraInt}
and a.status = #{status}
and a.paraType = #{paraType}
and a.valueInt = #{valueInt}
GROUP BY b.parentid)
select a.* from area as a inner join temp as b on a.areaid = b.parentid
select DISTINCT a.* from parameter as a inner join area as b on a.valueint=b.areaid where paraint = -2 and paratype = 5 and status =1 and b.parentid = #{parentid}
select * from parameter where paratype = #{paraType} and SUBSTRING(cast(paraint as VARCHAR), 3, 4) = '0000'
select * from parameter where paratype = #{paraType} and SUBSTRING(cast(paraint as VARCHAR), 1, 2) = #{startString} and SUBSTRING(cast (paraint as VARCHAR), 3, 5) != '0000'
select valueStr as valueStr,paraId as paraId from parameter where paratype =5 and paraint =-1
and to_number(trim((memo::json->>'examlevel') :: text),'999999')
in(select classlevel from classes c where teacherid = #{studentid} and classtype =1 and status =1 GROUP BY classlevel) ORDER BY paraid
SELECT u.goodsId as valueInt,p.valueStr as valueStr FROM userownlesson u INNER JOIN parameter p on u.goodsid = p.valueint
WHERE u.uid = #{studentid} and u.status = 1 and p.paratype =5 and p.paraint =-3 and p.status =1
select paraint as areaId,valuestr as valueStr from parameter where paratype =24
and SUBSTRING(cast(paraint as VARCHAR), 1, 4) = #{key}