Commit 69d02aab authored by 张森's avatar 张森

列表查詢 和 新增API bug 修改

parent 910e54eb
......@@ -41,6 +41,7 @@ public class PlanReportController extends BaseController {
planReport.setBizOrgCode(bizOrgCode);
planReport.setBizOrgName(bizOrgName);
planReport.setCreateDate(new Date());
planReport.setDrillDate(new Date());
planReportMapper.saveInfo(planReport);
return CommonResponseUtil.success(planReport);
}
......
......@@ -49,10 +49,10 @@
AND a.biz_org_code like concat(#{bizOrgCode}, '%')
</if>
<if test="startDate != null and startDate != ''">
AND a.create_date >= #{startDate}
AND a.drill_date >= #{startDate}
</if>
<if test="endDate != null and endDate != ''">
AND #{endDate} >= a.create_date
AND #{endDate} >= a.drill_date
</if>
</where>
</select>
......@@ -75,10 +75,10 @@
AND a.biz_org_code like concat(#{bizOrgCode}, '%')
</if>
<if test="startDate != null and startDate != ''">
AND a.create_date >= #{startDate}
AND a.drill_date >= #{startDate}
</if>
<if test="endDate != null and endDate != ''">
AND #{endDate} >= a.create_date
AND #{endDate} >= a.drill_date
</if>
</where>
order by a.create_date desc
......
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