|
@@ -167,4 +167,13 @@ public interface SqlConstants {
|
|
|
" from emergency_repair" +
|
|
|
" where (DATE_FORMAT(caller_date, '%Y%m%d') = CURDATE() or DATE_FORMAT(create_date, '%Y%m%d') = CURDATE())" +
|
|
|
" and project_id in (select project_id from project_user where user_id = #{userId})";
|
|
|
+
|
|
|
+ String UPDATE_REGION_DIRECTOR =
|
|
|
+ "<script>"
|
|
|
+ + "update project_user set user_id=#{userId} where project_id in"
|
|
|
+ + " <foreach item='item' index='index' collection='projectIds' open='(' separator=',' close=')'>"
|
|
|
+ + " #{item}"
|
|
|
+ + " </foreach>"
|
|
|
+ + "and mt_company_id=#{mtCompanyId} and user_role = 'REGION_DIRECTOR'"
|
|
|
+ + "</script>";
|
|
|
}
|