Commit 59e18eca authored by hongguangwu's avatar hongguangwu

优化-预估库获取基数配置

parent dfa007d9
......@@ -68,9 +68,8 @@ public class TForecastLibraryController {
* @param id id
* @return R
*/
@Operation(summary = "通过id查询", description = "通过id查询:hasPermission('social_tforecastlibrary_get')")
@Operation(summary = "通过id查询", description = "通过id查询")
@GetMapping("/{id}")
@PreAuthorize("@pms.hasPermission('social_tforecastlibrary_get')")
public R<TForecastLibrary> getById(@PathVariable("id") String id) {
return R.ok(tForecastLibraryService.getById(id));
}
......
......@@ -217,6 +217,12 @@
</sql>
<sql id="tDispatchInfo_where">
<if test="tDispatchInfo != null">
<if test="tDispatchInfo.idList != null">
AND a.ID in
<foreach item="idStr" index="index" collection="tDispatchInfo.idList" open="(" separator="," close=")">
#{idStr}
</foreach>
</if>
<if test="tDispatchInfo.id != null and tDispatchInfo.id.trim() != ''">
AND a.ID = #{tDispatchInfo.id}
</if>
......
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