Commit c82ec81e authored by gary's avatar gary

sql debug

parent fe67777b
......@@ -268,6 +268,8 @@ public class Organization implements Serializable {
*/
private String vehicleroutinglocation;
private String vehicleRoutingLocation;
/**
*
* This field was generated by MyBatis Generator.
......@@ -353,6 +355,14 @@ public class Organization implements Serializable {
private BusinessUnit businessUnit;
public String getVehicleRoutingLocation() {
return vehicleRoutingLocation;
}
public void setVehicleRoutingLocation(String vehicleRoutingLocation) {
this.vehicleRoutingLocation = vehicleRoutingLocation;
}
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table Organization
......
......@@ -38,8 +38,8 @@
<select id="selectByRoleAndServiceTypeWithAssociation" resultMap="ResultMapWithAssociation">
SELECT
RP.id AS ID,
rp.roleid AS ROLE_ID,
rp.id AS ID,
rp.role_id AS ROLE_ID,
rp.permission_id AS PERMISSION_ID,
r.id AS ROLE_ID,
r.name AS ROLE_NAME,
......@@ -71,14 +71,14 @@
p.id = rp.permission_id
where
rp.role_id= #{roleId,jdbcType=VARCHAR}
AND R.service_type_id= #{serviceTypeId,jdbcType=VARCHAR}
AND r.service_type_id= #{serviceTypeId,jdbcType=VARCHAR}
</select>
<select id="selectByRoleListAndServiceTypeWithAssociation" resultMap="ResultMapWithAssociation">
SELECT
RP.id AS ID,
rp.role_id,
rp.permission_id,
rp.id AS ID,
rp.role_id as ROLE_ID,
rp.permission_id as PERMISSION_ID,
r.id AS ROLE_ID,
r.name AS ROLE_NAME,
r.description AS ROLE_DESCRIPTION,
......@@ -109,7 +109,7 @@
p.id = rp.permission_id
where
r.service_type_id= #{serviceTypeId,jdbcType=VARCHAR}
AND RP.role_id in
AND rp.role_id in
<foreach close=")" collection="roleList" index="index" item="roleID" open="(" separator=",">
#{roleID}
</foreach>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment