|
@@ -14,7 +14,7 @@ public interface JyZdItemMapper {
|
|
|
*/
|
|
|
@Select("select rtrim(code) code,name,rtrim(class) class_code,rtrim(exec_unit) exec_unit,vessel,dosage,rtrim(sample_code) sample_code,py_code,d_code wb_code," +
|
|
|
"rtrim(del_flag) del_flag,rtrim(zy_flag) zy_flag,zy_order_code,rtrim(mz_flag) mz_flag,mz_code,cx_times,exec_address, " +
|
|
|
- "gender_restriction, min_age_restriction, max_age_restriction " +
|
|
|
+ "gender_restriction, min_age_restriction, max_age_restriction, time_limit " +
|
|
|
"from jy_zd_item WITH(NOLOCK) where code=#{code,jdbcType=CHAR}")
|
|
|
JyZdItem selectJyZdItemByCode(@Param("code") String code);
|
|
|
|
|
@@ -26,7 +26,7 @@ public interface JyZdItemMapper {
|
|
|
@Select({"<script>",
|
|
|
"select rtrim(code) code,name,rtrim(class) class_code,rtrim(exec_unit) exec_unit,vessel,dosage,rtrim(sample_code) sample_code,py_code,d_code wb_code," +
|
|
|
"rtrim(del_flag) del_flag,rtrim(zy_flag) zy_flag,zy_order_code,rtrim(mz_flag) mz_flag,mz_code,cx_times,exec_address, " +
|
|
|
- "gender_restriction, min_age_restriction, max_age_restriction " +
|
|
|
+ "gender_restriction, min_age_restriction, max_age_restriction, time_limit " +
|
|
|
"from jy_zd_item WITH(NOLOCK) where (del_flag <![CDATA[<>]]> '1' or del_flag is null )",
|
|
|
"<when test='codes!=null'>",
|
|
|
" and code in",
|
|
@@ -49,7 +49,7 @@ public interface JyZdItemMapper {
|
|
|
@Select({"<script>",
|
|
|
"select rtrim(code) code,name,rtrim(class) class_code,rtrim(exec_unit) exec_unit,vessel,dosage,rtrim(sample_code) sample_code,py_code,d_code wb_code," +
|
|
|
"rtrim(del_flag) del_flag,rtrim(zy_flag) zy_flag,zy_order_code,rtrim(mz_flag) mz_flag,mz_code,cx_times,exec_address, " +
|
|
|
- "gender_restriction, min_age_restriction, max_age_restriction " +
|
|
|
+ "gender_restriction, min_age_restriction, max_age_restriction, time_limit " +
|
|
|
"from jy_zd_item WITH(NOLOCK) " +
|
|
|
" where vessel is not null and vessel <![CDATA[<>]]> '' ",
|
|
|
"<when test='codes!=null'>",
|
|
@@ -74,7 +74,7 @@ public interface JyZdItemMapper {
|
|
|
@Select({"<script>",
|
|
|
"SELECT top ${pageSize} rtrim(code) code,name,rtrim(class) class_code,py_code,d_code wb_code,rtrim(del_flag) del_flag,rtrim(exec_unit) exec_unit,",
|
|
|
"rtrim(zy_flag) zy_flag,zy_order_code,rtrim(mz_flag) mz_flag,mz_code,sample_code,rtrim(vessel) vessel,exec_address, ",
|
|
|
- "gender_restriction, min_age_restriction, max_age_restriction ",
|
|
|
+ "gender_restriction, min_age_restriction, max_age_restriction, time_limit ",
|
|
|
"FROM (SELECT ROW_NUMBER() OVER (ORDER BY jy_zd_item_page.code desc) ",
|
|
|
"AS RowNumber,* from dbo.jy_zd_item jy_zd_item_page WITH(NOLOCK) where 1=1 ",
|
|
|
"<when test='code!=null'>",
|
|
@@ -150,9 +150,9 @@ public interface JyZdItemMapper {
|
|
|
*/
|
|
|
@Insert("if not exists (select name from jy_zd_item WITH(NOLOCK) where code=#{code} or zy_order_code=#{zyOrderCode} or mz_code=#{mzCode}) " +
|
|
|
"INSERT INTO jy_zd_item(code, name, class, exec_unit, vessel, sample_code, py_code, d_code, del_flag, zy_flag, zy_order_code, " +
|
|
|
- "mz_flag, mz_code,exec_address, gender_restriction, min_age_restriction, max_age_restriction) " +
|
|
|
+ "mz_flag, mz_code,exec_address, gender_restriction, min_age_restriction, max_age_restriction, time_limit) " +
|
|
|
"VALUES (#{code}, #{name}, #{classCode}, #{execUnit}, #{vessel}, #{sampleCode}, #{pyCode}, #{wbCode}, #{delFlag}, #{zyFlag}, #{zyOrderCode}, " +
|
|
|
- "#{mzFlag}, #{mzCode}, #{execAddress}, #{genderRestriction}, #{minAgeRestriction}, #{maxAgeRestriction})")
|
|
|
+ "#{mzFlag}, #{mzCode}, #{execAddress}, #{genderRestriction}, #{minAgeRestriction}, #{maxAgeRestriction}, #{timeLimit})")
|
|
|
int insertJyZdItem(JyZdItem jyZdItem);
|
|
|
|
|
|
/**
|
|
@@ -232,6 +232,9 @@ public interface JyZdItemMapper {
|
|
|
"<when test='execAddress!=null'>",
|
|
|
",exec_address =#{execAddress}",
|
|
|
"</when>",
|
|
|
+ "<when test='timeLimit!=null'>",
|
|
|
+ ",time_limit = #{timeLimit}",
|
|
|
+ "</when>",
|
|
|
",gender_restriction =#{genderRestriction}",
|
|
|
",min_age_restriction =#{minAgeRestriction}",
|
|
|
",max_age_restriction =#{maxAgeRestriction}",
|