|
@@ -100,40 +100,7 @@ public class WmDaAgentController {
|
|
|
*/
|
|
|
@GetMapping("/page")
|
|
|
public R<?> getWmDaAgentPage(Page page, WmDaAgent wmDaAgent) {
|
|
|
-// if(SecurityUtils.getRoles().contains(1) ||SecurityUtils.getRoles().contains(2))
|
|
|
-// {
|
|
|
-// //管理员和平台管理员不做处理
|
|
|
-// }else{
|
|
|
-//// wmDaAgent.setDrugEntId(SecurityUtils.getUser().getDrugEntId());
|
|
|
-// }
|
|
|
-//
|
|
|
-// OrderItem orderItem=new OrderItem();
|
|
|
-// orderItem.setColumn("create_time");
|
|
|
-// orderItem.setAsc(false);
|
|
|
-// page.addOrder(orderItem);
|
|
|
-// IPage<WmDaAgent> answerPage= wmDaAgentService.listPage(page, wmDaAgent);
|
|
|
-// if (answerPage != null) {
|
|
|
-// List<WmDaAgent> list = answerPage.getRecords();
|
|
|
-// if (list.size() > 0) {
|
|
|
-// for (WmDaAgent wmd : list) {
|
|
|
-//// wmd.setUpdateUser(getBuildName(wmd.getDeptId(),"agent"));
|
|
|
-// if (null != wmd.getExtDrugEnt()) {
|
|
|
-// String[] ents = wmd.getExtDrugEnt().split(",");
|
|
|
-// List<WmDaDrugEnt> listEnts = wmDaDrugEntService.listByIds(Arrays.asList(ents));
|
|
|
-// String temp1 = "";
|
|
|
-// if (listEnts.size() > 0) {
|
|
|
-// for (WmDaDrugEnt wmD : listEnts) {
|
|
|
-// temp1 += wmD.getEntname() + ",";
|
|
|
-// }
|
|
|
-// temp1 = temp1.substring(0, temp1.length() - 1);
|
|
|
-// }
|
|
|
-// wmd.setTemp1(temp1);
|
|
|
-// }
|
|
|
-//
|
|
|
-// }
|
|
|
-// }
|
|
|
-// answerPage.setRecords(list);
|
|
|
-// }
|
|
|
+
|
|
|
|
|
|
WmRelation wmRelation = new WmRelation();
|
|
|
wmRelation.setUpId(SecurityUtils.getUser().getDeptId());
|