|
|
@@ -162,7 +162,10 @@ public class VendorServiceImpl implements VendorService{
|
|
|
* @return
|
|
|
*/
|
|
|
private List<ErpInviteRecord> getRecord(String name) {
|
|
|
- String sql = "select * from invitation_tplrecord where ve_name = '" + name +"'";
|
|
|
+ SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-mm-dd");
|
|
|
+ // 判断是否是当天的单据
|
|
|
+ String sql = "select * from invitation_tplrecord where ve_name = '" + name +"' and substr(ve_date, 1, 10) = '"
|
|
|
+ + simpleDateFormat.format(new Date()) + "'";
|
|
|
List<ErpInviteRecord> records = commonDao.query(sql, ErpInviteRecord.class);
|
|
|
return records;
|
|
|
}
|