解决客户无法查看退费数据问题
parent
0856635498
commit
bbc7a758a6
|
|
@ -6,6 +6,7 @@ import com.cowr.common.view.PageParam;
|
||||||
import com.cowr.model.Customer;
|
import com.cowr.model.Customer;
|
||||||
import com.cowr.model.PrepayCustomer;
|
import com.cowr.model.PrepayCustomer;
|
||||||
import com.cowr.model.RefundDetail;
|
import com.cowr.model.RefundDetail;
|
||||||
|
import com.cowr.model.Sysuser;
|
||||||
import com.cowr.ssjygl.prepay.prepaycustomer.PrepayCustomerService;
|
import com.cowr.ssjygl.prepay.prepaycustomer.PrepayCustomerService;
|
||||||
import com.jfinal.kit.StrKit;
|
import com.jfinal.kit.StrKit;
|
||||||
import com.jfinal.log.Log;
|
import com.jfinal.log.Log;
|
||||||
|
|
@ -61,9 +62,13 @@ public class RefundDetailService extends BaseService {
|
||||||
|
|
||||||
|
|
||||||
if (StrKit.notNull(cId)) {
|
if (StrKit.notNull(cId)) {
|
||||||
fromsql += " and t.c.id >= ?";
|
Sysuser sysuser = Sysuser.dao.findById(cId);
|
||||||
|
if(sysuser != null){
|
||||||
|
cId = sysuser.getEntityId();
|
||||||
|
fromsql += " and c.id = ?";
|
||||||
paraList.add(cId);
|
paraList.add(cId);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (StrKit.notBlank(etm)) {
|
if (StrKit.notBlank(etm)) {
|
||||||
fromsql += " and t.create_time <= ?";
|
fromsql += " and t.create_time <= ?";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue