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

master
erzhongxmu 2020-10-26 18:34:19 +08:00
parent 0ed0f29f86
commit c241df2b5e
2 changed files with 26 additions and 2 deletions

View File

@ -553,7 +553,9 @@ public class TmsYwDingdanController extends BaseController {
@RequestParam(value="omnoticeid", required=false)String omnoticeid) {
ResultDO D0 = new ResultDO();
D0.setOK(true);
String hql="from WmTmsNoticeIEntity where omNoticeId = ?";
System.out.println("/list/omNoticeId"+omnoticeid );
String hql="from WmTmsNoticeIEntity where omNoticeId = ?";
List<WmTmsNoticeIEntity> listWaveToDowns =new ArrayList<>();
listWaveToDowns = wmOmNoticeHService.findHql(hql,omnoticeid);
D0.setObj(listWaveToDowns);

View File

@ -2666,6 +2666,7 @@ public class WmOmNoticeHController extends BaseController {
String hql="from WmOmNoticeHEntity ";
List<WmOmNoticeHEntity> listWaveToDowns =new ArrayList<>();
List<WmOmNoticeHEntity> listWaveToDownsnew =new ArrayList<>();
if(StringUtil.isNotEmpty(searchstr)&&!"null".equals(searchstr)){
hql="from WmOmNoticeHEntity where omSta <> ? and reMember = ? and omNoticeId = ?";
listWaveToDowns = wmOmNoticeHService.findHql(hql,"复核完成",username,searchstr);
@ -2678,14 +2679,35 @@ public class WmOmNoticeHController extends BaseController {
D0.setObj(listWaveToDowns);
System.out.println("/list/hehuolistWaveToDowns==="+listWaveToDowns.toString()+listWaveToDowns.size());
for(WmOmNoticeHEntity t: listWaveToDowns){
List<WmOmNoticeIEntity> listWaveToDowndetial =new ArrayList<>();
hql="from WmOmNoticeIEntity where omNoticeId = ?";
listWaveToDowndetial = wmOmNoticeHService.findHql(hql, t.getOmNoticeId());
try{
double sumcount =0.00;
for(WmOmNoticeIEntity dt: listWaveToDowndetial){
sumcount = sumcount + Double.parseDouble(dt.getBaseGoodscount());
}
t.setOmBeizhu(Double.toString(sumcount));
}catch (Exception e){
}
listWaveToDownsnew.add(t);
}
return new ResponseEntity(D0, HttpStatus.OK);
}
@RequestMapping(value = "/listdetail/hehuo", method = RequestMethod.GET)//
@ResponseBody
public ResponseEntity<?> listdetail(
@RequestParam(value="omNoticeId", required=false)String omnoticeid) {
@RequestParam(value="omnoticeid", required=false)String omnoticeid) {
ResultDO D0 = new ResultDO();
D0.setOK(true);
System.out.println("/list/hehuo/omNoticeId"+omnoticeid );
String hql="from WmOmNoticeIEntity where omNoticeId = ? ";
List<WmOmNoticeIEntity> listWaveToDowns =new ArrayList<>();
// hql="from WmImNoticeIEntity where noticeiSta <> ? and omNoticeId = ?";