解决客户无法查看退费数据问题

dev
wany 2025-03-07 10:36:14 +08:00
parent 0856635498
commit bbc7a758a6
1 changed files with 7 additions and 2 deletions

View File

@ -6,6 +6,7 @@ import com.cowr.common.view.PageParam;
import com.cowr.model.Customer;
import com.cowr.model.PrepayCustomer;
import com.cowr.model.RefundDetail;
import com.cowr.model.Sysuser;
import com.cowr.ssjygl.prepay.prepaycustomer.PrepayCustomerService;
import com.jfinal.kit.StrKit;
import com.jfinal.log.Log;
@ -61,8 +62,12 @@ public class RefundDetailService extends BaseService {
if (StrKit.notNull(cId)) {
fromsql += " and t.c.id >= ?";
paraList.add(cId);
Sysuser sysuser = Sysuser.dao.findById(cId);
if(sysuser != null){
cId = sysuser.getEntityId();
fromsql += " and c.id = ?";
paraList.add(cId);
}
}
if (StrKit.notBlank(etm)) {