增加职位为空是的sql判断
This commit is contained in:
parent
cc1cf79bb0
commit
98a61c602c
5
pom.xml
5
pom.xml
@ -277,11 +277,6 @@
|
||||
<artifactId>socket.io-client</artifactId>
|
||||
<version>1.0.1-lz</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
||||
@ -441,7 +441,7 @@
|
||||
</select>
|
||||
|
||||
<select id="selectBySearchName" resultType="com.lz.modules.app.entity.SearchStaffEntity">
|
||||
select staf.id, staf.name, occ.position, concat(staf.name, '-', occ.position) as 'desc' from lz_staff staf LEFT JOIN lz_staff_occupation occ on staf.id = occ.staff_id where staf.is_delete = 0
|
||||
select staf.id, staf.name, occ.position, concat(staf.name, '-', if(occ.position is null, '', occ.position)) as 'desc' from lz_staff staf LEFT JOIN lz_staff_occupation occ on staf.id = occ.staff_id where staf.is_delete = 0
|
||||
<if test="model.name != null and model.name != ''"></if>
|
||||
AND staf.name LIKE CONCAT('%',#{model.name},'%')
|
||||
</select>
|
||||
|
||||
@ -45,7 +45,7 @@ public class MysqlMain {
|
||||
public static String pre = "";
|
||||
|
||||
|
||||
public static String mysql_dbname = "lz_management";
|
||||
public static String mysql_dbname = "pay_database";
|
||||
|
||||
public static String mysql_username = "ldd_biz";
|
||||
public static String mysql_password = "Hello1234";
|
||||
@ -85,9 +85,9 @@ public class MysqlMain {
|
||||
List<TablesBean> list = new ArrayList<TablesBean>();
|
||||
|
||||
|
||||
list.add(new TablesBean("mcdonald_coupon_use_record"));
|
||||
list.add(new TablesBean("mcdonald_coupon"));
|
||||
|
||||
list.add(new TablesBean("schedule_job"));
|
||||
list.add(new TablesBean("schedule_job_log"));
|
||||
//list.add(new TablesBean("zns_treadmill"));
|
||||
|
||||
List<TablesBean> list2 = new ArrayList<TablesBean>();
|
||||
Map<String, String> map = MysqlUtil2ShowCreateTable.getComments();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user