Commit d656b866 by duanhq

技工统计bug修复 by duanht 2019/2/28

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@17998 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent dab874f9
...@@ -1350,7 +1350,7 @@ public class OrderServiceImpl implements IOrderService { ...@@ -1350,7 +1350,7 @@ public class OrderServiceImpl implements IOrderService {
@Override @Override
public List<MechanicBusiness> getMechanicBusiness(String selectType, String dateStart, String dateEnd, int userId) { public List<MechanicBusiness> getMechanicBusiness(String selectType, String dateStart, String dateEnd, int userId) {
List<MechanicBusiness> mechanicBusinesses = new ArrayList<>(); List<MechanicBusiness> mechanicBusinesses = new ArrayList<>();
Date now = DateUtil.getCurrentDate(); Date now = DateUtil.getCurrentTime();
Date nowDate = DateUtil.getCurrentDate(); Date nowDate = DateUtil.getCurrentDate();
Integer mechanicId = null; Integer mechanicId = null;
// “d”,今日;“w”,本周;“m",本月;"y".本年 // “d”,今日;“w”,本周;“m",本月;"y".本年
......
...@@ -644,7 +644,7 @@ ...@@ -644,7 +644,7 @@
<if test="dateStart != null and dateEnd!=null and dateStart !='' and dateEnd !=''"> <if test="dateStart != null and dateEnd!=null and dateStart !='' and dateEnd !=''">
and so.complete_time between #{dateStart,jdbcType=TIMESTAMP} and #{dateEnd,jdbcType=TIMESTAMP} and so.complete_time between #{dateStart,jdbcType=TIMESTAMP} and #{dateEnd,jdbcType=TIMESTAMP}
</if> </if>
<if test="mechanicId != null"> <if test="mechanicId != null ">
and so.mechanic_id = #{mechanicId} and so.mechanic_id = #{mechanicId}
</if> </if>
GROUP BY GROUP BY
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!