Commit e49e5b7610b06bc1c634a75ab2283b5570f7f411

Authored by xiejianpeng
1 parent e72092a3

工时填报管理

src/main/resources/mybatis/smapper/AsraOpSmapper.xml
... ... @@ -36,16 +36,16 @@
36 36 ap.city_id cityId,
37 37 ap.city_name cityName,
38 38 ap.is_remind_email isRemindEmail
39   - from asra_op ap,asra_op_relations apr
40   - where 1=1 and ap.id = apr.op_id
  39 + from asra_op ap left join asra_op_relations apr on ap.id = apr.op_id
  40 + where 1=1
41 41 <if test="id != null ">
42   - and apr.parent_id = #{id} or ap.id = #{id}
  42 + and (apr.parent_id = #{id} or ap.id = #{id})
43 43 </if>
44 44 <if test="loginCode != null and loginCode !=''">
45 45 and ap.login_code = #{loginCode,jdbcType=VARCHAR}
46 46 </if>
47 47 <if test="opName != null and opName != ''">
48   - and ap.op_name ike concat('${opName}','%')
  48 + and ap.op_name like concat('%','${opName}','%')
49 49 </if>
50 50 <if test="email != null and email != ''">
51 51 and ap.email = #{email,jdbcType=VARCHAR}
... ...