|
|
@@ -193,7 +193,7 @@ public class WorkScheduleServiceImpl implements WorkScheduleService {
|
|
|
@Override
|
|
|
public List<VisitRecord> getRecordsInOneMonth(Long emuu, Long enuu, String date) {
|
|
|
String sql = "select p.vr_detail vr_detail, p.vr_emname vr_emname, p.vr_id vr_id, p.vr_startdate vr_startdate, p.vr_cuaddress vr_cuaddress, "
|
|
|
- + "p.vr_title vr_title, p.vr_enddate vr_enddate, p.vr_cucontact vr_cucontact, p.vr_cuname vr_cuname from mobile$visitrecord p where "
|
|
|
+ + "p.vr_title vr_title, p.vr_enddate vr_enddate, p.vr_cucontact vr_cucontact, p.vr_cuname vr_cuname, p.vr_date vr_date from mobile$visitrecord p where "
|
|
|
+ "vr_emuu = " + emuu + " and vr_enuu = " + enuu + " and to_char(vr_date,'yyyymm') = '" + date + "'";
|
|
|
List<VisitRecord> records = commonDao.query(sql, VisitRecord.class);
|
|
|
return records;
|
|
|
@@ -202,7 +202,7 @@ public class WorkScheduleServiceImpl implements WorkScheduleService {
|
|
|
@Override
|
|
|
public List<VisitRecord> getRecordsInOneMonth(Long enuu, String date) {
|
|
|
String sql = "select p.vr_detail vr_detail, p.vr_emname vr_emname, p.vr_id vr_id, p.vr_startdate vr_startdate, p.vr_cuaddress vr_cuaddress, "
|
|
|
- + "p.vr_title vr_title, p.vr_enddate vr_enddate, p.vr_cucontact vr_cucontact, p.vr_cuname vr_cuname from mobile$visitrecord p where "
|
|
|
+ + "p.vr_title vr_title, p.vr_enddate vr_enddate, p.vr_cucontact vr_cucontact, p.vr_cuname vr_cuname, p.vr_date vr_date from mobile$visitrecord p where "
|
|
|
+ "vr_enuu = " + enuu + " and to_char(vr_date,'yyyymm') = '" + date + "'";
|
|
|
List<VisitRecord> records = commonDao.query(sql, VisitRecord.class);
|
|
|
return records;
|