|
|
@@ -152,8 +152,9 @@ public interface JianYanJianChaDao {
|
|
|
long jianChaMingTiaoShu();
|
|
|
|
|
|
@Select("select tc_name as name," +
|
|
|
- " tc_no as code " +
|
|
|
- "from zy_tc_yj with (NOLOCK)" +
|
|
|
+ " rtrim(tc_no) as code," +
|
|
|
+ " '1' as isTheParentNode " +
|
|
|
+ "from zy_tc_yj c with (NOLOCK)" +
|
|
|
"where isnull(del_flag, '0') = '0' and " +
|
|
|
"${ew.sqlSegment}")
|
|
|
List<JcZdClass> getTemplate(@Param(Constants.WRAPPER) QueryWrapper<?> queryWrapper);
|
|
|
@@ -177,42 +178,6 @@ public interface JianYanJianChaDao {
|
|
|
@Param("userCode") String userCode,
|
|
|
@Param("reqType") String reqType);
|
|
|
|
|
|
- @Select("SELECT rtrim(a.order_code) orderCode, " +
|
|
|
- " rtrim(a.order_name) orderName, " +
|
|
|
- " rtrim(a.yb_comment) ybComment, " +
|
|
|
- " checkFlag='0', " +
|
|
|
- " a.order_type AS orderType," +
|
|
|
- " a.exec_dept as execDept," +
|
|
|
- " (select rtrim(name) from zd_unit_code where code = a.exec_dept) execDeptName," +
|
|
|
- " getdate() as startTime " +
|
|
|
- "FROM yz_order_item a with (NOLOCK), " +
|
|
|
- " jc_zd_item b with (NOLOCK), " +
|
|
|
- " ysh_zd_part_code c with (NOLOCK) " +
|
|
|
- "where a.order_type = #{orderType} " +
|
|
|
- " and isnull(b.bw_code, 0) = #{bwCode} and " +
|
|
|
- " isnull(a.del_flag, '') <> '1' and " +
|
|
|
- " a.order_code = b.zy_order_code and b.bw_code *= c.code " +
|
|
|
- "order by a.order_name")
|
|
|
- List<Map<String, String>> chaKanFenLeiXiangQing(@Param("orderType") String orderType,
|
|
|
- @Param("bwCode") String bwCode);
|
|
|
-
|
|
|
-
|
|
|
- @Select("SELECT rtrim(a.order_code) orderCode, " +
|
|
|
- " rtrim(a.order_name) orderName, " +
|
|
|
- " rtrim(a.yb_comment) ybComment, " +
|
|
|
- " checkFlag='0', " +
|
|
|
- " a.exec_dept as execDept, " +
|
|
|
- " (select rtrim(name) from zd_unit_code with (NOLOCK) where code = a.exec_dept) execDeptName, " +
|
|
|
- " getdate() as startTime, " +
|
|
|
- " b.sample_code as inspectStuff," +
|
|
|
- " (select name from jy_zd_sample with (NOLOCK) where jy_zd_sample.code = b.sample_code) as inspectStuffName " +
|
|
|
- "FROM yz_order_item a with (NOLOCK), " +
|
|
|
- " jy_zd_item b with (NOLOCK) " +
|
|
|
- "where jy_type = #{code} " +
|
|
|
- " and isnull(a.del_flag, '') <> '1' " +
|
|
|
- " and a.order_code = b.zy_order_code " +
|
|
|
- "order by order_name")
|
|
|
- List<Map<String, String>> chaKanJianYanXiangQing(@Param("code") String code);
|
|
|
|
|
|
@Select("select op_id,tc_exec " +
|
|
|
"from zy_tc_yj with (NOLOCK) " +
|
|
|
@@ -248,6 +213,31 @@ public interface JianYanJianChaDao {
|
|
|
@Param("reqType") String reqType);
|
|
|
|
|
|
|
|
|
+ @Select("SELECT rtrim(a.order_code) as orderCode, " +
|
|
|
+ " rtrim(a.order_name) as orderName, " +
|
|
|
+ " rtrim(a.order_code) as code, " +
|
|
|
+ " rtrim(a.order_name) as name, " +
|
|
|
+ " rtrim(a.yb_comment) ybComment, " +
|
|
|
+ " '0' as checkFlag, " +
|
|
|
+ " a.exec_dept as execDept, " +
|
|
|
+ " a.order_type as orderType, " +
|
|
|
+ " (select rtrim(name) from zd_unit_code with (NOLOCK) where code = a.exec_dept) execDeptName, " +
|
|
|
+ " CONVERT(varchar(100), GETDATE(), 20) as startTime," +
|
|
|
+ " inspect_stuff as inspectStuff , " +
|
|
|
+ " inspectStuffName = (select rtrim(name) from jy_zd_sample with (NOLOCK) where code = inspect_stuff)," +
|
|
|
+ " rtrim(c.tc_no) as tc_no," +
|
|
|
+ " '2' as isTheParentNode " +
|
|
|
+ "FROM yz_order_item a with (NOLOCK), " +
|
|
|
+ " zy_tc_detail_yj b with (NOLOCK), " +
|
|
|
+ " zy_tc_yj c with (NOLOCK) " +
|
|
|
+ "where b.tc_no = c.tc_no " +
|
|
|
+ " and a.order_code = b.order_code " +
|
|
|
+ " and isnull(a.del_flag, '') <> '1'" +
|
|
|
+ " and isnull(c.del_flag, '') <> '1' " +
|
|
|
+ " and ${ew.sqlSegment} ")
|
|
|
+ List<Map<String, String>> selectTemplateContent(@Param(Constants.WRAPPER) QueryWrapper<?> queryWrapper);
|
|
|
+
|
|
|
+
|
|
|
@Select("<script>" +
|
|
|
"SELECT jc_text,name,code,wh_flag,op_id " +
|
|
|
"FROM ysh_zd_yj_template with (NOLOCK) " +
|