客户账单,物料限制客户登录只能查看本人

master
erzhongxmu 2020-10-29 23:01:27 +08:00
parent 30907cacb8
commit 0a97cc64b8
1 changed files with 26 additions and 10 deletions

View File

@ -371,23 +371,39 @@ public class WaveToFjController extends BaseController {
listWaveToFjs=waveToFjService.findHql(hql,searchstr,searchstr2);
}
// List<WaveToFjEntity> listWaveToFjs=waveToFjService.getList(WaveToFjEntity.class);
String omnoticeid="1";
String siji = "";
String chehao = "";
for(WaveToFjEntity t:listWaveToFjs) {
if (StringUtil.isNotEmpty(searchstr3)) {
if (!StringUtil.strPos(t.getGoodsId(), searchstr3)) {
continue;
}
}
try {
String siji = "";
String chehao = "";
WmOmNoticeHEntity wmom = systemService.findUniqueByProperty(WmOmNoticeHEntity.class, "omNoticeId", t.getOmNoticeId());
siji = wmom.getReMember();
chehao = wmom.getReCarno();
t.setBy1(siji);//司机
t.setBy2(chehao);//车号
} catch (Exception e) {
WaveToFjEntity t1 = new WaveToFjEntity();
try{
MyBeanUtils.copyBean2Bean(t1,t);
}catch (Exception e){
}
listWaveToFjsnew.add(t);
try {
if(omnoticeid.equals( t.getOmNoticeId())){
t1.setBy1(siji);//司机
t1.setBy2(chehao);//车号
}else{
WmOmNoticeHEntity wmom = systemService.findUniqueByProperty(WmOmNoticeHEntity.class, "omNoticeId", t.getOmNoticeId());
omnoticeid =t.getOmNoticeId();
siji = wmom.getReMember();
chehao = wmom.getReCarno();
t1.setBy1(siji);//司机
t1.setBy2(chehao);//车号
}
} catch (Exception e) {
e.printStackTrace();
}
listWaveToFjsnew.add(t1);
}
D0.setObj(listWaveToFjsnew);