|
|
@@ -153,26 +153,26 @@ public interface CompanyMapper
|
|
|
List<Long> selectCompanyByOmsCode(@Param("omsCode") String omsCode);
|
|
|
|
|
|
|
|
|
- @Select({"<script> " +
|
|
|
- "select c.*,cu.user_name,qu.used_num FROM company c LEFT JOIN company_user cu ON c.user_id =cu.user_id " +
|
|
|
- "LEFT JOIN (select company_id, count(id) as used_num from qw_user where server_id is not null group by company_id) qu ON qu.company_id = c.company_id " +
|
|
|
- "where c.is_del=0 " +
|
|
|
- " <if test=\"companyName != null and companyName != ''\"> and c.company_name like concat('%', #{companyName}, '%')</if>\n" +
|
|
|
- " <if test=\"companyMobile != null and companyMobile != ''\"> and c.company_mobile = #{companyMobile}</if>\n" +
|
|
|
- " <if test=\"companyAddress != null and companyAddress != ''\"> and c.company_address = #{companyAddress}</if>\n" +
|
|
|
- " <if test=\"status != null \"> and c.status = #{status}</if>\n" +
|
|
|
- " <if test=\"startTime != null \"> and c.start_time = #{startTime}</if>\n" +
|
|
|
- " <if test=\"limitTime != null \"> and c.limit_time = #{limitTime}</if>\n" +
|
|
|
- " <if test=\"money != null \"> and c.money = #{money}</if>\n" +
|
|
|
- " <if test=\"companyType != null \"> and c.company_type = #{companyType}</if>\n" +
|
|
|
- " <if test=\"userId != null \"> and c.user_id = #{userId}</if>\n" +
|
|
|
- " <if test=\"linkName != null and linkName != ''\"> and c.link_name like concat('%', #{linkName}, '%')</if>\n" +
|
|
|
- " <if test=\"limitUserCount != null \"> and c.limit_user_count = #{limitUserCount}</if>\n" +
|
|
|
- " <if test=\"isDel != null \"> and c.is_del = #{isDel}</if>\n" +
|
|
|
- " <if test=\"deptId != null \"> and c.dept_id = #{deptId}</if> " +
|
|
|
- " " +
|
|
|
- " order by company_id desc" +
|
|
|
- "</script>"})
|
|
|
+// @Select({"<script> " +
|
|
|
+// "select c.*,cu.user_name,qu.used_num FROM company c LEFT JOIN company_user cu ON c.user_id =cu.user_id " +
|
|
|
+// "LEFT JOIN (select company_id, count(id) as used_num from qw_user where server_id is not null group by company_id) qu ON qu.company_id = c.company_id " +
|
|
|
+// "where c.is_del=0 " +
|
|
|
+// " <if test=\"companyName != null and companyName != ''\"> and c.company_name like concat('%', #{companyName}, '%')</if>\n" +
|
|
|
+// " <if test=\"companyMobile != null and companyMobile != ''\"> and c.company_mobile = #{companyMobile}</if>\n" +
|
|
|
+// " <if test=\"companyAddress != null and companyAddress != ''\"> and c.company_address = #{companyAddress}</if>\n" +
|
|
|
+// " <if test=\"status != null \"> and c.status = #{status}</if>\n" +
|
|
|
+// " <if test=\"startTime != null \"> and c.start_time = #{startTime}</if>\n" +
|
|
|
+// " <if test=\"limitTime != null \"> and c.limit_time = #{limitTime}</if>\n" +
|
|
|
+// " <if test=\"money != null \"> and c.money = #{money}</if>\n" +
|
|
|
+// " <if test=\"companyType != null \"> and c.company_type = #{companyType}</if>\n" +
|
|
|
+// " <if test=\"userId != null \"> and c.user_id = #{userId}</if>\n" +
|
|
|
+// " <if test=\"linkName != null and linkName != ''\"> and c.link_name like concat('%', #{linkName}, '%')</if>\n" +
|
|
|
+// " <if test=\"limitUserCount != null \"> and c.limit_user_count = #{limitUserCount}</if>\n" +
|
|
|
+// " <if test=\"isDel != null \"> and c.is_del = #{isDel}</if>\n" +
|
|
|
+// " <if test=\"deptId != null \"> and c.dept_id = #{deptId}</if> " +
|
|
|
+// " " +
|
|
|
+// " order by company_id desc" +
|
|
|
+// "</script>"})
|
|
|
List<CompanyVO> selectCompanyListVO(Company param);
|
|
|
|
|
|
List<OptionsVO> selectAllCompanyList(@Param("deptId") Long deptId);
|