|
@@ -2520,7 +2520,14 @@ public class Order extends Controller {
|
|
|
@API(title = "获取当前账号的角色名", apiversion = R.ID20230524160003.v1.class)
|
|
@API(title = "获取当前账号的角色名", apiversion = R.ID20230524160003.v1.class)
|
|
|
public String getrolename() throws YosException {
|
|
public String getrolename() throws YosException {
|
|
|
Rows rows = dbConnect.runSqlQuery("select rolename from sys_userrole t1 inner join sys_role t2 on t1.roleid=t2.roleid and t1.siteid=t2.siteid where t1.siteid='"+siteid+"' and t1.userid="+userid);
|
|
Rows rows = dbConnect.runSqlQuery("select rolename from sys_userrole t1 inner join sys_role t2 on t1.roleid=t2.roleid and t1.siteid=t2.siteid where t1.siteid='"+siteid+"' and t1.userid="+userid);
|
|
|
- return getSucReturnObject().setData(rows).toString();
|
|
|
|
|
|
|
+ RowsMap rowsMap =rows.toRowsMap("rolename");
|
|
|
|
|
+ String rolename ="其他";
|
|
|
|
|
+ if(rowsMap.containsKey("电商部")){
|
|
|
|
|
+ rolename="电商";
|
|
|
|
|
+ }else if(rowsMap.containsKey("工程部")){
|
|
|
|
|
+ rolename="工程";
|
|
|
|
|
+ }
|
|
|
|
|
+ return getSucReturnObject().setData(rolename).toString();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// @API(title = "发货单手动关闭", apiversion = R.ID20230406155302.v1.class)
|
|
// @API(title = "发货单手动关闭", apiversion = R.ID20230406155302.v1.class)
|