product
bawei 2 years ago
parent aeaae6ac27
commit 00ec648127

@ -37,8 +37,8 @@ public class ContractMobileServiceImpl extends ServiceImpl<ContractMobileMapper,
int total = 0; int total = 0;
int contractMNum = 0; int contractMNum = 0;
QueryWrapper<ContractMobileEntity> contractMobileQueryWrapper = new QueryWrapper<>(); QueryWrapper<ContractMobileEntity> contractMobileQueryWrapper = new QueryWrapper<>();
boolean pcPermission = false; boolean pcPermission = true;
boolean appPermission = false; boolean appPermission = true;
boolean isPc = ServletUtil.getHeader("jnpf-origin").equals("pc"); boolean isPc = ServletUtil.getHeader("jnpf-origin").equals("pc");
if (isPc && pcPermission) { if (isPc && pcPermission) {
if (!userProvider.get().getIsAdministrator()) { if (!userProvider.get().getIsAdministrator()) {

@ -61,7 +61,7 @@ public class CustomerVOServiceImpl extends ServiceImpl<CustomerVMapper, Customer
boolean isPc = ServletUtil.getHeader("jnpf-origin").equals("pc"); boolean isPc = ServletUtil.getHeader("jnpf-origin").equals("pc");
if(isPc && pcPermission){ if(isPc && pcPermission){
if (!userProvider.get().getIsAdministrator()){ if (!userProvider.get().getIsAdministrator()){
Object customerObj=authorizeService.getCondition(new AuthorizeConditionModel(customerQueryWrapper,customerPagination.getMenuId(),"customer")); Object customerObj=authorizeService.getCondition(new AuthorizeConditionModel(customerQueryWrapper,customerPagination.getMenuId(),"jg_customer"));
if (ObjectUtil.isEmpty(customerObj)){ if (ObjectUtil.isEmpty(customerObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -72,7 +72,7 @@ public class CustomerVOServiceImpl extends ServiceImpl<CustomerVMapper, Customer
} }
if(!isPc && appPermission){ if(!isPc && appPermission){
if (!userProvider.get().getIsAdministrator()){ if (!userProvider.get().getIsAdministrator()){
Object customerObj=authorizeService.getCondition(new AuthorizeConditionModel(customerQueryWrapper,customerPagination.getMenuId(),"customer")); Object customerObj=authorizeService.getCondition(new AuthorizeConditionModel(customerQueryWrapper,customerPagination.getMenuId(),"jg_customer"));
if (ObjectUtil.isEmpty(customerObj)){ if (ObjectUtil.isEmpty(customerObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -150,7 +150,7 @@ public class CustomerVOServiceImpl extends ServiceImpl<CustomerVMapper, Customer
boolean isPc = ServletUtil.getHeader("jnpf-origin").equals("pc"); boolean isPc = ServletUtil.getHeader("jnpf-origin").equals("pc");
if(isPc && pcPermission){ if(isPc && pcPermission){
if (!userProvider.get().getIsAdministrator()){ if (!userProvider.get().getIsAdministrator()){
Object customerObj=authorizeService.getCondition(new AuthorizeConditionModel(customerQueryWrapper,customerPagination.getMenuId(),"customer")); Object customerObj=authorizeService.getCondition(new AuthorizeConditionModel(customerQueryWrapper,customerPagination.getMenuId(),"jg_customer"));
if (ObjectUtil.isEmpty(customerObj)){ if (ObjectUtil.isEmpty(customerObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -161,7 +161,7 @@ public class CustomerVOServiceImpl extends ServiceImpl<CustomerVMapper, Customer
} }
if(!isPc && appPermission){ if(!isPc && appPermission){
if (!userProvider.get().getIsAdministrator()){ if (!userProvider.get().getIsAdministrator()){
Object customerObj=authorizeService.getCondition(new AuthorizeConditionModel(customerQueryWrapper,customerPagination.getMenuId(),"customer")); Object customerObj=authorizeService.getCondition(new AuthorizeConditionModel(customerQueryWrapper,customerPagination.getMenuId(),"jg_customer"));
if (ObjectUtil.isEmpty(customerObj)){ if (ObjectUtil.isEmpty(customerObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {

@ -48,11 +48,11 @@ public class MessageCenterServiceImpl extends ServiceImpl<MessageCenterMapper, M
int messageCenterNum = 0; int messageCenterNum = 0;
QueryWrapper<MessageCenterEntity> messageCenterQueryWrapper = new QueryWrapper<>(); QueryWrapper<MessageCenterEntity> messageCenterQueryWrapper = new QueryWrapper<>();
boolean pcPermission = true; boolean pcPermission = true;
boolean appPermission = false; boolean appPermission = true;
boolean isPc = ServletUtil.getHeader("jnpf-origin").equals("pc"); boolean isPc = ServletUtil.getHeader("jnpf-origin").equals("pc");
if (isPc && pcPermission) { if (isPc && pcPermission) {
if (!userProvider.get().getIsAdministrator()) { if (!userProvider.get().getIsAdministrator()) {
Object messageCenterObj = authorizeService.getCondition(new AuthorizeConditionModel(messageCenterQueryWrapper, messageCenterPagination.getMenuId(), "messageCenter")); Object messageCenterObj = authorizeService.getCondition(new AuthorizeConditionModel(messageCenterQueryWrapper, messageCenterPagination.getMenuId(), "jg_material"));
if (ObjectUtil.isEmpty(messageCenterObj)) { if (ObjectUtil.isEmpty(messageCenterObj)) {
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -63,7 +63,7 @@ public class MessageCenterServiceImpl extends ServiceImpl<MessageCenterMapper, M
} }
if (!isPc && appPermission) { if (!isPc && appPermission) {
if (!userProvider.get().getIsAdministrator()) { if (!userProvider.get().getIsAdministrator()) {
Object messageCenterObj = authorizeService.getCondition(new AuthorizeConditionModel(messageCenterQueryWrapper, messageCenterPagination.getMenuId(), "messageCenter")); Object messageCenterObj = authorizeService.getCondition(new AuthorizeConditionModel(messageCenterQueryWrapper, messageCenterPagination.getMenuId(), "jg_material"));
if (ObjectUtil.isEmpty(messageCenterObj)) { if (ObjectUtil.isEmpty(messageCenterObj)) {
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -130,11 +130,11 @@ public class MessageCenterServiceImpl extends ServiceImpl<MessageCenterMapper, M
int messageCenterNum = 0; int messageCenterNum = 0;
QueryWrapper<MessageCenterEntity> messageCenterQueryWrapper = new QueryWrapper<>(); QueryWrapper<MessageCenterEntity> messageCenterQueryWrapper = new QueryWrapper<>();
boolean pcPermission = true; boolean pcPermission = true;
boolean appPermission = false; boolean appPermission = true;
boolean isPc = ServletUtil.getHeader("jnpf-origin").equals("pc"); boolean isPc = ServletUtil.getHeader("jnpf-origin").equals("pc");
if (isPc && pcPermission) { if (isPc && pcPermission) {
if (!userProvider.get().getIsAdministrator()) { if (!userProvider.get().getIsAdministrator()) {
Object messageCenterObj = authorizeService.getCondition(new AuthorizeConditionModel(messageCenterQueryWrapper, messageCenterPagination.getMenuId(), "messageCenter")); Object messageCenterObj = authorizeService.getCondition(new AuthorizeConditionModel(messageCenterQueryWrapper, messageCenterPagination.getMenuId(), "jg_material"));
if (ObjectUtil.isEmpty(messageCenterObj)) { if (ObjectUtil.isEmpty(messageCenterObj)) {
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -145,7 +145,7 @@ public class MessageCenterServiceImpl extends ServiceImpl<MessageCenterMapper, M
} }
if (!isPc && appPermission) { if (!isPc && appPermission) {
if (!userProvider.get().getIsAdministrator()) { if (!userProvider.get().getIsAdministrator()) {
Object messageCenterObj = authorizeService.getCondition(new AuthorizeConditionModel(messageCenterQueryWrapper, messageCenterPagination.getMenuId(), "messageCenter")); Object messageCenterObj = authorizeService.getCondition(new AuthorizeConditionModel(messageCenterQueryWrapper, messageCenterPagination.getMenuId(), "jg_material"));
if (ObjectUtil.isEmpty(messageCenterObj)) { if (ObjectUtil.isEmpty(messageCenterObj)) {
return new ArrayList<>(); return new ArrayList<>();
} else { } else {

@ -66,19 +66,19 @@ public class PurchasementServiceImpl extends ServiceImpl<PurchasementMapper, Pur
QueryWrapper<PurchasementEntity> purchasementQueryWrapper=new QueryWrapper<>(); QueryWrapper<PurchasementEntity> purchasementQueryWrapper=new QueryWrapper<>();
int purchasement_item0Num =0; int purchasement_item0Num =0;
QueryWrapper<Purchasement_item0Entity> purchasement_item0QueryWrapper=new QueryWrapper<>(); QueryWrapper<Purchasement_item0Entity> purchasement_item0QueryWrapper=new QueryWrapper<>();
boolean pcPermission = false; boolean pcPermission = true;
boolean appPermission = false; boolean appPermission = true;
boolean isPc = ServletUtil.getHeader("jnpf-origin").equals("pc"); boolean isPc = ServletUtil.getHeader("jnpf-origin").equals("pc");
if(isPc && pcPermission){ if(isPc && pcPermission){
if (!userProvider.get().getIsAdministrator()){ if (!userProvider.get().getIsAdministrator()){
Object purchasementObj=authorizeService.getCondition(new AuthorizeConditionModel(purchasementQueryWrapper,purchasementPagination.getMenuId(),"purchasement")); Object purchasementObj=authorizeService.getCondition(new AuthorizeConditionModel(purchasementQueryWrapper,purchasementPagination.getMenuId(),"jg_purchasement"));
if (ObjectUtil.isEmpty(purchasementObj)){ if (ObjectUtil.isEmpty(purchasementObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
purchasementQueryWrapper = (QueryWrapper<PurchasementEntity>)purchasementObj; purchasementQueryWrapper = (QueryWrapper<PurchasementEntity>)purchasementObj;
purchasementNum++; purchasementNum++;
} }
Object purchasement_item0Obj=authorizeService.getCondition(new AuthorizeConditionModel(purchasement_item0QueryWrapper,purchasementPagination.getMenuId(),"purchasement_item0")); Object purchasement_item0Obj=authorizeService.getCondition(new AuthorizeConditionModel(purchasement_item0QueryWrapper,purchasementPagination.getMenuId(),"jg_purchasement_item0"));
if (ObjectUtil.isEmpty(purchasement_item0Obj)){ if (ObjectUtil.isEmpty(purchasement_item0Obj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -89,7 +89,7 @@ public class PurchasementServiceImpl extends ServiceImpl<PurchasementMapper, Pur
} }
if(!isPc && appPermission){ if(!isPc && appPermission){
if (!userProvider.get().getIsAdministrator()){ if (!userProvider.get().getIsAdministrator()){
Object purchasementObj=authorizeService.getCondition(new AuthorizeConditionModel(purchasementQueryWrapper,purchasementPagination.getMenuId(),"purchasement")); Object purchasementObj=authorizeService.getCondition(new AuthorizeConditionModel(purchasementQueryWrapper,purchasementPagination.getMenuId(),"jg_purchasement"));
if (ObjectUtil.isEmpty(purchasementObj)){ if (ObjectUtil.isEmpty(purchasementObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -98,7 +98,7 @@ public class PurchasementServiceImpl extends ServiceImpl<PurchasementMapper, Pur
} }
Object purchasement_item0Obj=authorizeService.getCondition(new AuthorizeConditionModel(purchasement_item0QueryWrapper,purchasementPagination.getMenuId(),"purchasement_item0")); Object purchasement_item0Obj=authorizeService.getCondition(new AuthorizeConditionModel(purchasement_item0QueryWrapper,purchasementPagination.getMenuId(),"jg_purchasement_item0"));
if (ObjectUtil.isEmpty(purchasement_item0Obj)){ if (ObjectUtil.isEmpty(purchasement_item0Obj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -160,19 +160,19 @@ public class PurchasementServiceImpl extends ServiceImpl<PurchasementMapper, Pur
QueryWrapper<PurchasementEntity> purchasementQueryWrapper=new QueryWrapper<>(); QueryWrapper<PurchasementEntity> purchasementQueryWrapper=new QueryWrapper<>();
int purchasement_item0Num =0; int purchasement_item0Num =0;
QueryWrapper<Purchasement_item0Entity> purchasement_item0QueryWrapper=new QueryWrapper<>(); QueryWrapper<Purchasement_item0Entity> purchasement_item0QueryWrapper=new QueryWrapper<>();
boolean pcPermission = false; boolean pcPermission = true;
boolean appPermission = false; boolean appPermission = true;
boolean isPc = ServletUtil.getHeader("jnpf-origin").equals("pc"); boolean isPc = ServletUtil.getHeader("jnpf-origin").equals("pc");
if(isPc && pcPermission){ if(isPc && pcPermission){
if (!userProvider.get().getIsAdministrator()){ if (!userProvider.get().getIsAdministrator()){
Object purchasementObj=authorizeService.getCondition(new AuthorizeConditionModel(purchasementQueryWrapper,purchasementPagination.getMenuId(),"purchasement")); Object purchasementObj=authorizeService.getCondition(new AuthorizeConditionModel(purchasementQueryWrapper,purchasementPagination.getMenuId(),"jg_purchasement"));
if (ObjectUtil.isEmpty(purchasementObj)){ if (ObjectUtil.isEmpty(purchasementObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
purchasementQueryWrapper = (QueryWrapper<PurchasementEntity>)purchasementObj; purchasementQueryWrapper = (QueryWrapper<PurchasementEntity>)purchasementObj;
purchasementNum++; purchasementNum++;
} }
Object purchasement_item0Obj=authorizeService.getCondition(new AuthorizeConditionModel(purchasement_item0QueryWrapper,purchasementPagination.getMenuId(),"purchasement_item0")); Object purchasement_item0Obj=authorizeService.getCondition(new AuthorizeConditionModel(purchasement_item0QueryWrapper,purchasementPagination.getMenuId(),"jg_purchasement_item0"));
if (ObjectUtil.isEmpty(purchasement_item0Obj)){ if (ObjectUtil.isEmpty(purchasement_item0Obj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -183,7 +183,7 @@ public class PurchasementServiceImpl extends ServiceImpl<PurchasementMapper, Pur
} }
if(!isPc && appPermission){ if(!isPc && appPermission){
if (!userProvider.get().getIsAdministrator()){ if (!userProvider.get().getIsAdministrator()){
Object purchasementObj=authorizeService.getCondition(new AuthorizeConditionModel(purchasementQueryWrapper,purchasementPagination.getMenuId(),"purchasement")); Object purchasementObj=authorizeService.getCondition(new AuthorizeConditionModel(purchasementQueryWrapper,purchasementPagination.getMenuId(),"jg_purchasement"));
if (ObjectUtil.isEmpty(purchasementObj)){ if (ObjectUtil.isEmpty(purchasementObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -192,7 +192,7 @@ public class PurchasementServiceImpl extends ServiceImpl<PurchasementMapper, Pur
} }
Object purchasement_item0Obj=authorizeService.getCondition(new AuthorizeConditionModel(purchasement_item0QueryWrapper,purchasementPagination.getMenuId(),"purchasement_item0")); Object purchasement_item0Obj=authorizeService.getCondition(new AuthorizeConditionModel(purchasement_item0QueryWrapper,purchasementPagination.getMenuId(),"jg_purchasement_item0"));
if (ObjectUtil.isEmpty(purchasement_item0Obj)){ if (ObjectUtil.isEmpty(purchasement_item0Obj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {

@ -737,47 +737,47 @@ public class PurchaseorderitemServiceImpl extends ServiceImpl<PurchaseorderitemM
QueryWrapper<PaymentitemEntity> paymentitemQueryWrapper = new QueryWrapper<>(); QueryWrapper<PaymentitemEntity> paymentitemQueryWrapper = new QueryWrapper<>();
int collectionitemNum = 0; int collectionitemNum = 0;
QueryWrapper<CollectionpoEntity> collectionitemQueryWrapper = new QueryWrapper<>(); QueryWrapper<CollectionpoEntity> collectionitemQueryWrapper = new QueryWrapper<>();
boolean pcPermission = false; boolean pcPermission = true;
boolean appPermission = false; boolean appPermission = true;
boolean isPc = ServletUtil.getHeader("jnpf-origin").equals("pc"); boolean isPc = ServletUtil.getHeader("jnpf-origin").equals("pc");
if (isPc && pcPermission) { if (isPc && pcPermission) {
if (!userProvider.get().getIsAdministrator()) { if (!userProvider.get().getIsAdministrator()) {
Object purchaseorderObj = authorizeService.getCondition(new AuthorizeConditionModel(purchaseorderQueryWrapper, purchaseorderPagination.getMenuId(), "purchaseorder")); Object purchaseorderObj = authorizeService.getCondition(new AuthorizeConditionModel(purchaseorderQueryWrapper, purchaseorderPagination.getMenuId(), "jg_purchaseorder"));
if (ObjectUtil.isEmpty(purchaseorderObj)) { if (ObjectUtil.isEmpty(purchaseorderObj)) {
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
purchaseorderQueryWrapper = (QueryWrapper<PurchaseorderitemEntity>) purchaseorderObj; purchaseorderQueryWrapper = (QueryWrapper<PurchaseorderitemEntity>) purchaseorderObj;
purchaseorderNum++; purchaseorderNum++;
} }
Object purchaseorder_item0Obj = authorizeService.getCondition(new AuthorizeConditionModel(purchaseorder_item0QueryWrapper, purchaseorderPagination.getMenuId(), "purchaseorder_item0")); Object purchaseorder_item0Obj = authorizeService.getCondition(new AuthorizeConditionModel(purchaseorder_item0QueryWrapper, purchaseorderPagination.getMenuId(), "jg_purchaseorder_item0"));
if (ObjectUtil.isEmpty(purchaseorder_item0Obj)) { if (ObjectUtil.isEmpty(purchaseorder_item0Obj)) {
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
purchaseorder_item0QueryWrapper = (QueryWrapper<Purchaseorder_item0Entity>) purchaseorder_item0Obj; purchaseorder_item0QueryWrapper = (QueryWrapper<Purchaseorder_item0Entity>) purchaseorder_item0Obj;
purchaseorder_item0Num++; purchaseorder_item0Num++;
} }
Object purchasebackitemObj = authorizeService.getCondition(new AuthorizeConditionModel(purchasebackitemQueryWrapper, purchaseorderPagination.getMenuId(), "purchasebackitem")); Object purchasebackitemObj = authorizeService.getCondition(new AuthorizeConditionModel(purchasebackitemQueryWrapper, purchaseorderPagination.getMenuId(), "jg_purchaseback"));
if (ObjectUtil.isEmpty(purchasebackitemObj)) { if (ObjectUtil.isEmpty(purchasebackitemObj)) {
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
purchasebackitemQueryWrapper = (QueryWrapper<PurchasebackitemEntity>) purchasebackitemObj; purchasebackitemQueryWrapper = (QueryWrapper<PurchasebackitemEntity>) purchasebackitemObj;
purchasebackitemNum++; purchasebackitemNum++;
} }
Object invoices_item0itemObj = authorizeService.getCondition(new AuthorizeConditionModel(invoices_item0itemQueryWrapper, purchaseorderPagination.getMenuId(), "invoices_item0item")); Object invoices_item0itemObj = authorizeService.getCondition(new AuthorizeConditionModel(invoices_item0itemQueryWrapper, purchaseorderPagination.getMenuId(), "jg_invoices_item0"));
if (ObjectUtil.isEmpty(invoices_item0itemObj)) { if (ObjectUtil.isEmpty(invoices_item0itemObj)) {
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
invoices_item0itemQueryWrapper = (QueryWrapper<Invoices_item0itemEntity>) invoices_item0itemObj; invoices_item0itemQueryWrapper = (QueryWrapper<Invoices_item0itemEntity>) invoices_item0itemObj;
invoices_item0itemNum++; invoices_item0itemNum++;
} }
Object paymentitemObj = authorizeService.getCondition(new AuthorizeConditionModel(paymentitemQueryWrapper, purchaseorderPagination.getMenuId(), "paymentitem")); Object paymentitemObj = authorizeService.getCondition(new AuthorizeConditionModel(paymentitemQueryWrapper, purchaseorderPagination.getMenuId(), "jg_payment"));
if (ObjectUtil.isEmpty(paymentitemObj)) { if (ObjectUtil.isEmpty(paymentitemObj)) {
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
paymentitemQueryWrapper = (QueryWrapper<PaymentitemEntity>) paymentitemObj; paymentitemQueryWrapper = (QueryWrapper<PaymentitemEntity>) paymentitemObj;
paymentitemNum++; paymentitemNum++;
} }
Object collectionitemObj = authorizeService.getCondition(new AuthorizeConditionModel(collectionitemQueryWrapper, purchaseorderPagination.getMenuId(), "collectionitem")); Object collectionitemObj = authorizeService.getCondition(new AuthorizeConditionModel(collectionitemQueryWrapper, purchaseorderPagination.getMenuId(), "jg_collection"));
if (ObjectUtil.isEmpty(collectionitemObj)) { if (ObjectUtil.isEmpty(collectionitemObj)) {
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -788,7 +788,7 @@ public class PurchaseorderitemServiceImpl extends ServiceImpl<PurchaseorderitemM
} }
if (!isPc && appPermission) { if (!isPc && appPermission) {
if (!userProvider.get().getIsAdministrator()) { if (!userProvider.get().getIsAdministrator()) {
Object purchaseorderObj = authorizeService.getCondition(new AuthorizeConditionModel(purchaseorderQueryWrapper, purchaseorderPagination.getMenuId(), "purchaseorder")); Object purchaseorderObj = authorizeService.getCondition(new AuthorizeConditionModel(purchaseorderQueryWrapper, purchaseorderPagination.getMenuId(), "jg_purchaseorder"));
if (ObjectUtil.isEmpty(purchaseorderObj)) { if (ObjectUtil.isEmpty(purchaseorderObj)) {
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -797,7 +797,7 @@ public class PurchaseorderitemServiceImpl extends ServiceImpl<PurchaseorderitemM
} }
Object purchaseorder_item0Obj = authorizeService.getCondition(new AuthorizeConditionModel(purchaseorder_item0QueryWrapper, purchaseorderPagination.getMenuId(), "purchaseorder_item0")); Object purchaseorder_item0Obj = authorizeService.getCondition(new AuthorizeConditionModel(purchaseorder_item0QueryWrapper, purchaseorderPagination.getMenuId(), "jg_purchaseorder_item0"));
if (ObjectUtil.isEmpty(purchaseorder_item0Obj)) { if (ObjectUtil.isEmpty(purchaseorder_item0Obj)) {
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -806,7 +806,7 @@ public class PurchaseorderitemServiceImpl extends ServiceImpl<PurchaseorderitemM
} }
Object purchasebackitemObj = authorizeService.getCondition(new AuthorizeConditionModel(purchasebackitemQueryWrapper, purchaseorderPagination.getMenuId(), "purchasebackitem")); Object purchasebackitemObj = authorizeService.getCondition(new AuthorizeConditionModel(purchasebackitemQueryWrapper, purchaseorderPagination.getMenuId(), "jg_purchaseback"));
if (ObjectUtil.isEmpty(purchasebackitemObj)) { if (ObjectUtil.isEmpty(purchasebackitemObj)) {
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -815,7 +815,7 @@ public class PurchaseorderitemServiceImpl extends ServiceImpl<PurchaseorderitemM
} }
Object invoices_item0itemObj = authorizeService.getCondition(new AuthorizeConditionModel(invoices_item0itemQueryWrapper, purchaseorderPagination.getMenuId(), "invoices_item0item")); Object invoices_item0itemObj = authorizeService.getCondition(new AuthorizeConditionModel(invoices_item0itemQueryWrapper, purchaseorderPagination.getMenuId(), "jg_invoices_item0"));
if (ObjectUtil.isEmpty(invoices_item0itemObj)) { if (ObjectUtil.isEmpty(invoices_item0itemObj)) {
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -824,7 +824,7 @@ public class PurchaseorderitemServiceImpl extends ServiceImpl<PurchaseorderitemM
} }
Object paymentitemObj = authorizeService.getCondition(new AuthorizeConditionModel(paymentitemQueryWrapper, purchaseorderPagination.getMenuId(), "paymentitem")); Object paymentitemObj = authorizeService.getCondition(new AuthorizeConditionModel(paymentitemQueryWrapper, purchaseorderPagination.getMenuId(), "jg_payment"));
if (ObjectUtil.isEmpty(paymentitemObj)) { if (ObjectUtil.isEmpty(paymentitemObj)) {
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -833,7 +833,7 @@ public class PurchaseorderitemServiceImpl extends ServiceImpl<PurchaseorderitemM
} }
Object collectionitemObj = authorizeService.getCondition(new AuthorizeConditionModel(collectionitemQueryWrapper, purchaseorderPagination.getMenuId(), "collectionitem")); Object collectionitemObj = authorizeService.getCondition(new AuthorizeConditionModel(collectionitemQueryWrapper, purchaseorderPagination.getMenuId(), "jg_collection"));
if (ObjectUtil.isEmpty(collectionitemObj)) { if (ObjectUtil.isEmpty(collectionitemObj)) {
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -964,47 +964,47 @@ public class PurchaseorderitemServiceImpl extends ServiceImpl<PurchaseorderitemM
QueryWrapper<PaymentitemEntity> paymentitemQueryWrapper = new QueryWrapper<>(); QueryWrapper<PaymentitemEntity> paymentitemQueryWrapper = new QueryWrapper<>();
int collectionitemNum = 0; int collectionitemNum = 0;
QueryWrapper<CollectionpoEntity> collectionitemQueryWrapper = new QueryWrapper<>(); QueryWrapper<CollectionpoEntity> collectionitemQueryWrapper = new QueryWrapper<>();
boolean pcPermission = false; boolean pcPermission = true;
boolean appPermission = false; boolean appPermission = true;
boolean isPc = ServletUtil.getHeader("jnpf-origin").equals("pc"); boolean isPc = ServletUtil.getHeader("jnpf-origin").equals("pc");
if (isPc && pcPermission) { if (isPc && pcPermission) {
if (!userProvider.get().getIsAdministrator()) { if (!userProvider.get().getIsAdministrator()) {
Object purchaseorderObj = authorizeService.getCondition(new AuthorizeConditionModel(purchaseorderQueryWrapper, purchaseorderPagination.getMenuId(), "purchaseorder")); Object purchaseorderObj = authorizeService.getCondition(new AuthorizeConditionModel(purchaseorderQueryWrapper, purchaseorderPagination.getMenuId(), "jg_purchaseorder"));
if (ObjectUtil.isEmpty(purchaseorderObj)) { if (ObjectUtil.isEmpty(purchaseorderObj)) {
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
purchaseorderQueryWrapper = (QueryWrapper<PurchaseorderitemEntity>) purchaseorderObj; purchaseorderQueryWrapper = (QueryWrapper<PurchaseorderitemEntity>) purchaseorderObj;
purchaseorderNum++; purchaseorderNum++;
} }
Object purchaseorder_item0Obj = authorizeService.getCondition(new AuthorizeConditionModel(purchaseorder_item0QueryWrapper, purchaseorderPagination.getMenuId(), "purchaseorder_item0")); Object purchaseorder_item0Obj = authorizeService.getCondition(new AuthorizeConditionModel(purchaseorder_item0QueryWrapper, purchaseorderPagination.getMenuId(), "jg_purchaseorder_item0"));
if (ObjectUtil.isEmpty(purchaseorder_item0Obj)) { if (ObjectUtil.isEmpty(purchaseorder_item0Obj)) {
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
purchaseorder_item0QueryWrapper = (QueryWrapper<Purchaseorder_item0Entity>) purchaseorder_item0Obj; purchaseorder_item0QueryWrapper = (QueryWrapper<Purchaseorder_item0Entity>) purchaseorder_item0Obj;
purchaseorder_item0Num++; purchaseorder_item0Num++;
} }
Object purchasebackitemObj = authorizeService.getCondition(new AuthorizeConditionModel(purchasebackitemQueryWrapper, purchaseorderPagination.getMenuId(), "purchasebackitem")); Object purchasebackitemObj = authorizeService.getCondition(new AuthorizeConditionModel(purchasebackitemQueryWrapper, purchaseorderPagination.getMenuId(), "jg_purchaseback"));
if (ObjectUtil.isEmpty(purchasebackitemObj)) { if (ObjectUtil.isEmpty(purchasebackitemObj)) {
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
purchasebackitemQueryWrapper = (QueryWrapper<PurchasebackitemEntity>) purchasebackitemObj; purchasebackitemQueryWrapper = (QueryWrapper<PurchasebackitemEntity>) purchasebackitemObj;
purchasebackitemNum++; purchasebackitemNum++;
} }
Object invoices_item0itemObj = authorizeService.getCondition(new AuthorizeConditionModel(invoices_item0itemQueryWrapper, purchaseorderPagination.getMenuId(), "invoices_item0item")); Object invoices_item0itemObj = authorizeService.getCondition(new AuthorizeConditionModel(invoices_item0itemQueryWrapper, purchaseorderPagination.getMenuId(), "jg_invoices_item0"));
if (ObjectUtil.isEmpty(invoices_item0itemObj)) { if (ObjectUtil.isEmpty(invoices_item0itemObj)) {
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
invoices_item0itemQueryWrapper = (QueryWrapper<Invoices_item0itemEntity>) invoices_item0itemObj; invoices_item0itemQueryWrapper = (QueryWrapper<Invoices_item0itemEntity>) invoices_item0itemObj;
invoices_item0itemNum++; invoices_item0itemNum++;
} }
Object paymentitemObj = authorizeService.getCondition(new AuthorizeConditionModel(paymentitemQueryWrapper, purchaseorderPagination.getMenuId(), "paymentitem")); Object paymentitemObj = authorizeService.getCondition(new AuthorizeConditionModel(paymentitemQueryWrapper, purchaseorderPagination.getMenuId(), "jg_payment"));
if (ObjectUtil.isEmpty(paymentitemObj)) { if (ObjectUtil.isEmpty(paymentitemObj)) {
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
paymentitemQueryWrapper = (QueryWrapper<PaymentitemEntity>) paymentitemObj; paymentitemQueryWrapper = (QueryWrapper<PaymentitemEntity>) paymentitemObj;
paymentitemNum++; paymentitemNum++;
} }
Object collectionitemObj = authorizeService.getCondition(new AuthorizeConditionModel(collectionitemQueryWrapper, purchaseorderPagination.getMenuId(), "collectionitem")); Object collectionitemObj = authorizeService.getCondition(new AuthorizeConditionModel(collectionitemQueryWrapper, purchaseorderPagination.getMenuId(), "jg_collection"));
if (ObjectUtil.isEmpty(collectionitemObj)) { if (ObjectUtil.isEmpty(collectionitemObj)) {
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -1015,7 +1015,7 @@ public class PurchaseorderitemServiceImpl extends ServiceImpl<PurchaseorderitemM
} }
if (!isPc && appPermission) { if (!isPc && appPermission) {
if (!userProvider.get().getIsAdministrator()) { if (!userProvider.get().getIsAdministrator()) {
Object purchaseorderObj = authorizeService.getCondition(new AuthorizeConditionModel(purchaseorderQueryWrapper, purchaseorderPagination.getMenuId(), "purchaseorder")); Object purchaseorderObj = authorizeService.getCondition(new AuthorizeConditionModel(purchaseorderQueryWrapper, purchaseorderPagination.getMenuId(), "jg_purchaseorder"));
if (ObjectUtil.isEmpty(purchaseorderObj)) { if (ObjectUtil.isEmpty(purchaseorderObj)) {
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -1024,7 +1024,7 @@ public class PurchaseorderitemServiceImpl extends ServiceImpl<PurchaseorderitemM
} }
Object purchaseorder_item0Obj = authorizeService.getCondition(new AuthorizeConditionModel(purchaseorder_item0QueryWrapper, purchaseorderPagination.getMenuId(), "purchaseorder_item0")); Object purchaseorder_item0Obj = authorizeService.getCondition(new AuthorizeConditionModel(purchaseorder_item0QueryWrapper, purchaseorderPagination.getMenuId(), "jg_purchaseorder_item0"));
if (ObjectUtil.isEmpty(purchaseorder_item0Obj)) { if (ObjectUtil.isEmpty(purchaseorder_item0Obj)) {
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -1033,7 +1033,7 @@ public class PurchaseorderitemServiceImpl extends ServiceImpl<PurchaseorderitemM
} }
Object purchasebackitemObj = authorizeService.getCondition(new AuthorizeConditionModel(purchasebackitemQueryWrapper, purchaseorderPagination.getMenuId(), "purchasebackitem")); Object purchasebackitemObj = authorizeService.getCondition(new AuthorizeConditionModel(purchasebackitemQueryWrapper, purchaseorderPagination.getMenuId(), "jg_purchaseback"));
if (ObjectUtil.isEmpty(purchasebackitemObj)) { if (ObjectUtil.isEmpty(purchasebackitemObj)) {
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -1042,7 +1042,7 @@ public class PurchaseorderitemServiceImpl extends ServiceImpl<PurchaseorderitemM
} }
Object invoices_item0itemObj = authorizeService.getCondition(new AuthorizeConditionModel(invoices_item0itemQueryWrapper, purchaseorderPagination.getMenuId(), "invoices_item0item")); Object invoices_item0itemObj = authorizeService.getCondition(new AuthorizeConditionModel(invoices_item0itemQueryWrapper, purchaseorderPagination.getMenuId(), "jg_invoices_item0"));
if (ObjectUtil.isEmpty(invoices_item0itemObj)) { if (ObjectUtil.isEmpty(invoices_item0itemObj)) {
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -1051,7 +1051,7 @@ public class PurchaseorderitemServiceImpl extends ServiceImpl<PurchaseorderitemM
} }
Object paymentitemObj = authorizeService.getCondition(new AuthorizeConditionModel(paymentitemQueryWrapper, purchaseorderPagination.getMenuId(), "paymentitem")); Object paymentitemObj = authorizeService.getCondition(new AuthorizeConditionModel(paymentitemQueryWrapper, purchaseorderPagination.getMenuId(), "jg_payment"));
if (ObjectUtil.isEmpty(paymentitemObj)) { if (ObjectUtil.isEmpty(paymentitemObj)) {
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -1060,7 +1060,7 @@ public class PurchaseorderitemServiceImpl extends ServiceImpl<PurchaseorderitemM
} }
Object collectionitemObj = authorizeService.getCondition(new AuthorizeConditionModel(collectionitemQueryWrapper, purchaseorderPagination.getMenuId(), "collectionitem")); Object collectionitemObj = authorizeService.getCondition(new AuthorizeConditionModel(collectionitemQueryWrapper, purchaseorderPagination.getMenuId(), "jg_collection"));
if (ObjectUtil.isEmpty(collectionitemObj)) { if (ObjectUtil.isEmpty(collectionitemObj)) {
return new ArrayList<>(); return new ArrayList<>();
} else { } else {

@ -70,19 +70,19 @@ public class SalebackServiceImpl extends ServiceImpl<SalebackMapper, SalebackEnt
int saleback_item0Num =0; int saleback_item0Num =0;
QueryWrapper<Saleback_item0Entity> saleback_item0QueryWrapper=new QueryWrapper<>(); QueryWrapper<Saleback_item0Entity> saleback_item0QueryWrapper=new QueryWrapper<>();
boolean pcPermission = false; boolean pcPermission = true;
boolean appPermission = false; boolean appPermission = true;
boolean isPc = ServletUtil.getHeader("jnpf-origin").equals("pc"); boolean isPc = ServletUtil.getHeader("jnpf-origin").equals("pc");
if(isPc && pcPermission){ if(isPc && pcPermission){
if (!userProvider.get().getIsAdministrator()){ if (!userProvider.get().getIsAdministrator()){
Object salebackObj=authorizeService.getCondition(new AuthorizeConditionModel(salebackQueryWrapper,salebackPagination.getMenuId(),"saleback")); Object salebackObj=authorizeService.getCondition(new AuthorizeConditionModel(salebackQueryWrapper,salebackPagination.getMenuId(),"jg_saleback"));
if (ObjectUtil.isEmpty(salebackObj)){ if (ObjectUtil.isEmpty(salebackObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
salebackQueryWrapper = (QueryWrapper<SalebackEntity>)salebackObj; salebackQueryWrapper = (QueryWrapper<SalebackEntity>)salebackObj;
salebackNum++; salebackNum++;
} }
Object saleback_item0Obj=authorizeService.getCondition(new AuthorizeConditionModel(saleback_item0QueryWrapper,salebackPagination.getMenuId(),"saleback_item0")); Object saleback_item0Obj=authorizeService.getCondition(new AuthorizeConditionModel(saleback_item0QueryWrapper,salebackPagination.getMenuId(),"jg_saleback_item0"));
if (ObjectUtil.isEmpty(saleback_item0Obj)){ if (ObjectUtil.isEmpty(saleback_item0Obj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -93,7 +93,7 @@ public class SalebackServiceImpl extends ServiceImpl<SalebackMapper, SalebackEnt
} }
if(!isPc && appPermission){ if(!isPc && appPermission){
if (!userProvider.get().getIsAdministrator()){ if (!userProvider.get().getIsAdministrator()){
Object salebackObj=authorizeService.getCondition(new AuthorizeConditionModel(salebackQueryWrapper,salebackPagination.getMenuId(),"saleback")); Object salebackObj=authorizeService.getCondition(new AuthorizeConditionModel(salebackQueryWrapper,salebackPagination.getMenuId(),"jg_saleback"));
if (ObjectUtil.isEmpty(salebackObj)){ if (ObjectUtil.isEmpty(salebackObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -102,7 +102,7 @@ public class SalebackServiceImpl extends ServiceImpl<SalebackMapper, SalebackEnt
} }
Object saleback_item0Obj=authorizeService.getCondition(new AuthorizeConditionModel(saleback_item0QueryWrapper,salebackPagination.getMenuId(),"saleback_item0")); Object saleback_item0Obj=authorizeService.getCondition(new AuthorizeConditionModel(saleback_item0QueryWrapper,salebackPagination.getMenuId(),"jg_saleback_item0"));
if (ObjectUtil.isEmpty(saleback_item0Obj)){ if (ObjectUtil.isEmpty(saleback_item0Obj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -153,19 +153,19 @@ public class SalebackServiceImpl extends ServiceImpl<SalebackMapper, SalebackEnt
int saleback_item0Num =0; int saleback_item0Num =0;
QueryWrapper<Saleback_item0Entity> saleback_item0QueryWrapper=new QueryWrapper<>(); QueryWrapper<Saleback_item0Entity> saleback_item0QueryWrapper=new QueryWrapper<>();
boolean pcPermission = false; boolean pcPermission = true;
boolean appPermission = false; boolean appPermission = true;
boolean isPc = ServletUtil.getHeader("jnpf-origin").equals("pc"); boolean isPc = ServletUtil.getHeader("jnpf-origin").equals("pc");
if(isPc && pcPermission){ if(isPc && pcPermission){
if (!userProvider.get().getIsAdministrator()){ if (!userProvider.get().getIsAdministrator()){
Object salebackObj=authorizeService.getCondition(new AuthorizeConditionModel(salebackQueryWrapper,salebackPagination.getMenuId(),"saleback")); Object salebackObj=authorizeService.getCondition(new AuthorizeConditionModel(salebackQueryWrapper,salebackPagination.getMenuId(),"jg_saleback"));
if (ObjectUtil.isEmpty(salebackObj)){ if (ObjectUtil.isEmpty(salebackObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
salebackQueryWrapper = (QueryWrapper<SalebackEntity>)salebackObj; salebackQueryWrapper = (QueryWrapper<SalebackEntity>)salebackObj;
salebackNum++; salebackNum++;
} }
Object saleback_item0Obj=authorizeService.getCondition(new AuthorizeConditionModel(saleback_item0QueryWrapper,salebackPagination.getMenuId(),"saleback_item0")); Object saleback_item0Obj=authorizeService.getCondition(new AuthorizeConditionModel(saleback_item0QueryWrapper,salebackPagination.getMenuId(),"jg_saleback_item0"));
if (ObjectUtil.isEmpty(saleback_item0Obj)){ if (ObjectUtil.isEmpty(saleback_item0Obj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -177,7 +177,7 @@ public class SalebackServiceImpl extends ServiceImpl<SalebackMapper, SalebackEnt
} }
if(!isPc && appPermission){ if(!isPc && appPermission){
if (!userProvider.get().getIsAdministrator()){ if (!userProvider.get().getIsAdministrator()){
Object salebackObj=authorizeService.getCondition(new AuthorizeConditionModel(salebackQueryWrapper,salebackPagination.getMenuId(),"saleback")); Object salebackObj=authorizeService.getCondition(new AuthorizeConditionModel(salebackQueryWrapper,salebackPagination.getMenuId(),"jg_saleback"));
if (ObjectUtil.isEmpty(salebackObj)){ if (ObjectUtil.isEmpty(salebackObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -186,7 +186,7 @@ public class SalebackServiceImpl extends ServiceImpl<SalebackMapper, SalebackEnt
} }
Object saleback_item0Obj=authorizeService.getCondition(new AuthorizeConditionModel(saleback_item0QueryWrapper,salebackPagination.getMenuId(),"saleback_item0")); Object saleback_item0Obj=authorizeService.getCondition(new AuthorizeConditionModel(saleback_item0QueryWrapper,salebackPagination.getMenuId(),"jg_saleback_item0"));
if (ObjectUtil.isEmpty(saleback_item0Obj)){ if (ObjectUtil.isEmpty(saleback_item0Obj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {

@ -102,54 +102,54 @@ public class SaleorderitemServiceImpl extends ServiceImpl<SaleorderitemMapper, S
QueryWrapper<PaymentsoitemEntity> paymentsoitemQueryWrapper=new QueryWrapper<>(); QueryWrapper<PaymentsoitemEntity> paymentsoitemQueryWrapper=new QueryWrapper<>();
int arinvoices_item0soitemNum =0; int arinvoices_item0soitemNum =0;
QueryWrapper<Arinvoices_item0soitemEntity> arinvoices_item0soitemQueryWrapper=new QueryWrapper<>(); QueryWrapper<Arinvoices_item0soitemEntity> arinvoices_item0soitemQueryWrapper=new QueryWrapper<>();
boolean pcPermission = false; boolean pcPermission = true;
boolean appPermission = false; boolean appPermission = true;
boolean isPc = ServletUtil.getHeader("jnpf-origin").equals("pc"); boolean isPc = ServletUtil.getHeader("jnpf-origin").equals("pc");
if(isPc && pcPermission){ if(isPc && pcPermission){
if (!userProvider.get().getIsAdministrator()){ if (!userProvider.get().getIsAdministrator()){
Object saleorderitemObj=authorizeService.getCondition(new AuthorizeConditionModel(saleorderitemQueryWrapper,saleorderitemPagination.getMenuId(),"saleorderitem")); Object saleorderitemObj=authorizeService.getCondition(new AuthorizeConditionModel(saleorderitemQueryWrapper,saleorderitemPagination.getMenuId(),"jg_saleorder"));
if (ObjectUtil.isEmpty(saleorderitemObj)){ if (ObjectUtil.isEmpty(saleorderitemObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
saleorderitemQueryWrapper = (QueryWrapper<SaleorderitemEntity>)saleorderitemObj; saleorderitemQueryWrapper = (QueryWrapper<SaleorderitemEntity>)saleorderitemObj;
saleorderitemNum++; saleorderitemNum++;
} }
Object salesorder_item0Obj=authorizeService.getCondition(new AuthorizeConditionModel(salesorder_item0QueryWrapper,saleorderitemPagination.getMenuId(),"salesorder_item0")); Object salesorder_item0Obj=authorizeService.getCondition(new AuthorizeConditionModel(salesorder_item0QueryWrapper,saleorderitemPagination.getMenuId(),"jg_salesorder_item0"));
if (ObjectUtil.isEmpty(salesorder_item0Obj)){ if (ObjectUtil.isEmpty(salesorder_item0Obj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
salesorder_item0QueryWrapper = (QueryWrapper<Salesorder_item0Entity>)salesorder_item0Obj; salesorder_item0QueryWrapper = (QueryWrapper<Salesorder_item0Entity>)salesorder_item0Obj;
salesorder_item0Num++; salesorder_item0Num++;
} }
Object receiptoutsoitemObj=authorizeService.getCondition(new AuthorizeConditionModel(receiptoutsoitemQueryWrapper,saleorderitemPagination.getMenuId(),"receiptoutsoitem")); Object receiptoutsoitemObj=authorizeService.getCondition(new AuthorizeConditionModel(receiptoutsoitemQueryWrapper,saleorderitemPagination.getMenuId(),"jg_receiptout"));
if (ObjectUtil.isEmpty(receiptoutsoitemObj)){ if (ObjectUtil.isEmpty(receiptoutsoitemObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
receiptoutsoitemQueryWrapper = (QueryWrapper<ReceiptoutsoitemEntity>)receiptoutsoitemObj; receiptoutsoitemQueryWrapper = (QueryWrapper<ReceiptoutsoitemEntity>)receiptoutsoitemObj;
receiptoutsoitemNum++; receiptoutsoitemNum++;
} }
Object collectionsoitemObj=authorizeService.getCondition(new AuthorizeConditionModel(collectionsoitemQueryWrapper,saleorderitemPagination.getMenuId(),"collectionsoitem")); Object collectionsoitemObj=authorizeService.getCondition(new AuthorizeConditionModel(collectionsoitemQueryWrapper,saleorderitemPagination.getMenuId(),"jg_collection"));
if (ObjectUtil.isEmpty(collectionsoitemObj)){ if (ObjectUtil.isEmpty(collectionsoitemObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
collectionsoitemQueryWrapper = (QueryWrapper<CollectionsoitemEntity>)collectionsoitemObj; collectionsoitemQueryWrapper = (QueryWrapper<CollectionsoitemEntity>)collectionsoitemObj;
collectionsoitemNum++; collectionsoitemNum++;
} }
Object salesbacksoitemObj=authorizeService.getCondition(new AuthorizeConditionModel(salesbacksoitemQueryWrapper,saleorderitemPagination.getMenuId(),"salesbacksoitem")); Object salesbacksoitemObj=authorizeService.getCondition(new AuthorizeConditionModel(salesbacksoitemQueryWrapper,saleorderitemPagination.getMenuId(),"jg_salesback"));
if (ObjectUtil.isEmpty(salesbacksoitemObj)){ if (ObjectUtil.isEmpty(salesbacksoitemObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
salesbacksoitemQueryWrapper = (QueryWrapper<SalesbacksoitemEntity>)salesbacksoitemObj; salesbacksoitemQueryWrapper = (QueryWrapper<SalesbacksoitemEntity>)salesbacksoitemObj;
salesbacksoitemNum++; salesbacksoitemNum++;
} }
Object paymentsoitemObj=authorizeService.getCondition(new AuthorizeConditionModel(paymentsoitemQueryWrapper,saleorderitemPagination.getMenuId(),"paymentsoitem")); Object paymentsoitemObj=authorizeService.getCondition(new AuthorizeConditionModel(paymentsoitemQueryWrapper,saleorderitemPagination.getMenuId(),"jg_payment"));
if (ObjectUtil.isEmpty(paymentsoitemObj)){ if (ObjectUtil.isEmpty(paymentsoitemObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
paymentsoitemQueryWrapper = (QueryWrapper<PaymentsoitemEntity>)paymentsoitemObj; paymentsoitemQueryWrapper = (QueryWrapper<PaymentsoitemEntity>)paymentsoitemObj;
paymentsoitemNum++; paymentsoitemNum++;
} }
Object arinvoices_item0soitemObj=authorizeService.getCondition(new AuthorizeConditionModel(arinvoices_item0soitemQueryWrapper,saleorderitemPagination.getMenuId(),"arinvoices_item0soitem")); Object arinvoices_item0soitemObj=authorizeService.getCondition(new AuthorizeConditionModel(arinvoices_item0soitemQueryWrapper,saleorderitemPagination.getMenuId(),"jg_arinvoices_item0"));
if (ObjectUtil.isEmpty(arinvoices_item0soitemObj)){ if (ObjectUtil.isEmpty(arinvoices_item0soitemObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -160,7 +160,7 @@ public class SaleorderitemServiceImpl extends ServiceImpl<SaleorderitemMapper, S
} }
if(!isPc && appPermission){ if(!isPc && appPermission){
if (!userProvider.get().getIsAdministrator()){ if (!userProvider.get().getIsAdministrator()){
Object saleorderitemObj=authorizeService.getCondition(new AuthorizeConditionModel(saleorderitemQueryWrapper,saleorderitemPagination.getMenuId(),"saleorderitem")); Object saleorderitemObj=authorizeService.getCondition(new AuthorizeConditionModel(saleorderitemQueryWrapper,saleorderitemPagination.getMenuId(),"jg_saleorder"));
if (ObjectUtil.isEmpty(saleorderitemObj)){ if (ObjectUtil.isEmpty(saleorderitemObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -169,7 +169,7 @@ public class SaleorderitemServiceImpl extends ServiceImpl<SaleorderitemMapper, S
} }
Object salesorder_item0Obj=authorizeService.getCondition(new AuthorizeConditionModel(salesorder_item0QueryWrapper,saleorderitemPagination.getMenuId(),"salesorder_item0")); Object salesorder_item0Obj=authorizeService.getCondition(new AuthorizeConditionModel(salesorder_item0QueryWrapper,saleorderitemPagination.getMenuId(),"jg_salesorder_item0"));
if (ObjectUtil.isEmpty(salesorder_item0Obj)){ if (ObjectUtil.isEmpty(salesorder_item0Obj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -178,7 +178,7 @@ public class SaleorderitemServiceImpl extends ServiceImpl<SaleorderitemMapper, S
} }
Object receiptoutsoitemObj=authorizeService.getCondition(new AuthorizeConditionModel(receiptoutsoitemQueryWrapper,saleorderitemPagination.getMenuId(),"receiptoutsoitem")); Object receiptoutsoitemObj=authorizeService.getCondition(new AuthorizeConditionModel(receiptoutsoitemQueryWrapper,saleorderitemPagination.getMenuId(),"jg_receiptout"));
if (ObjectUtil.isEmpty(receiptoutsoitemObj)){ if (ObjectUtil.isEmpty(receiptoutsoitemObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -187,7 +187,7 @@ public class SaleorderitemServiceImpl extends ServiceImpl<SaleorderitemMapper, S
} }
Object collectionsoitemObj=authorizeService.getCondition(new AuthorizeConditionModel(collectionsoitemQueryWrapper,saleorderitemPagination.getMenuId(),"collectionsoitem")); Object collectionsoitemObj=authorizeService.getCondition(new AuthorizeConditionModel(collectionsoitemQueryWrapper,saleorderitemPagination.getMenuId(),"jg_collection"));
if (ObjectUtil.isEmpty(collectionsoitemObj)){ if (ObjectUtil.isEmpty(collectionsoitemObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -196,7 +196,7 @@ public class SaleorderitemServiceImpl extends ServiceImpl<SaleorderitemMapper, S
} }
Object salesbacksoitemObj=authorizeService.getCondition(new AuthorizeConditionModel(salesbacksoitemQueryWrapper,saleorderitemPagination.getMenuId(),"salesbacksoitem")); Object salesbacksoitemObj=authorizeService.getCondition(new AuthorizeConditionModel(salesbacksoitemQueryWrapper,saleorderitemPagination.getMenuId(),"jg_salesback"));
if (ObjectUtil.isEmpty(salesbacksoitemObj)){ if (ObjectUtil.isEmpty(salesbacksoitemObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -205,7 +205,7 @@ public class SaleorderitemServiceImpl extends ServiceImpl<SaleorderitemMapper, S
} }
Object paymentsoitemObj=authorizeService.getCondition(new AuthorizeConditionModel(paymentsoitemQueryWrapper,saleorderitemPagination.getMenuId(),"paymentsoitem")); Object paymentsoitemObj=authorizeService.getCondition(new AuthorizeConditionModel(paymentsoitemQueryWrapper,saleorderitemPagination.getMenuId(),"jg_payment"));
if (ObjectUtil.isEmpty(paymentsoitemObj)){ if (ObjectUtil.isEmpty(paymentsoitemObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -214,7 +214,7 @@ public class SaleorderitemServiceImpl extends ServiceImpl<SaleorderitemMapper, S
} }
Object arinvoices_item0soitemObj=authorizeService.getCondition(new AuthorizeConditionModel(arinvoices_item0soitemQueryWrapper,saleorderitemPagination.getMenuId(),"arinvoices_item0soitem")); Object arinvoices_item0soitemObj=authorizeService.getCondition(new AuthorizeConditionModel(arinvoices_item0soitemQueryWrapper,saleorderitemPagination.getMenuId(),"jg_arinvoices_item0"));
if (ObjectUtil.isEmpty(arinvoices_item0soitemObj)){ if (ObjectUtil.isEmpty(arinvoices_item0soitemObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -288,54 +288,54 @@ public class SaleorderitemServiceImpl extends ServiceImpl<SaleorderitemMapper, S
QueryWrapper<PaymentsoitemEntity> paymentsoitemQueryWrapper=new QueryWrapper<>(); QueryWrapper<PaymentsoitemEntity> paymentsoitemQueryWrapper=new QueryWrapper<>();
int arinvoices_item0soitemNum =0; int arinvoices_item0soitemNum =0;
QueryWrapper<Arinvoices_item0soitemEntity> arinvoices_item0soitemQueryWrapper=new QueryWrapper<>(); QueryWrapper<Arinvoices_item0soitemEntity> arinvoices_item0soitemQueryWrapper=new QueryWrapper<>();
boolean pcPermission = false; boolean pcPermission = true;
boolean appPermission = false; boolean appPermission = true;
boolean isPc = ServletUtil.getHeader("jnpf-origin").equals("pc"); boolean isPc = ServletUtil.getHeader("jnpf-origin").equals("pc");
if(isPc && pcPermission){ if(isPc && pcPermission){
if (!userProvider.get().getIsAdministrator()){ if (!userProvider.get().getIsAdministrator()){
Object saleorderitemObj=authorizeService.getCondition(new AuthorizeConditionModel(saleorderitemQueryWrapper,saleorderitemPagination.getMenuId(),"saleorderitem")); Object saleorderitemObj=authorizeService.getCondition(new AuthorizeConditionModel(saleorderitemQueryWrapper,saleorderitemPagination.getMenuId(),"jg_saleorder"));
if (ObjectUtil.isEmpty(saleorderitemObj)){ if (ObjectUtil.isEmpty(saleorderitemObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
saleorderitemQueryWrapper = (QueryWrapper<SaleorderitemEntity>)saleorderitemObj; saleorderitemQueryWrapper = (QueryWrapper<SaleorderitemEntity>)saleorderitemObj;
saleorderitemNum++; saleorderitemNum++;
} }
Object salesorder_item0Obj=authorizeService.getCondition(new AuthorizeConditionModel(salesorder_item0QueryWrapper,saleorderitemPagination.getMenuId(),"salesorder_item0")); Object salesorder_item0Obj=authorizeService.getCondition(new AuthorizeConditionModel(salesorder_item0QueryWrapper,saleorderitemPagination.getMenuId(),"jg_salesorder_item0"));
if (ObjectUtil.isEmpty(salesorder_item0Obj)){ if (ObjectUtil.isEmpty(salesorder_item0Obj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
salesorder_item0QueryWrapper = (QueryWrapper<Salesorder_item0Entity>)salesorder_item0Obj; salesorder_item0QueryWrapper = (QueryWrapper<Salesorder_item0Entity>)salesorder_item0Obj;
salesorder_item0Num++; salesorder_item0Num++;
} }
Object receiptoutsoitemObj=authorizeService.getCondition(new AuthorizeConditionModel(receiptoutsoitemQueryWrapper,saleorderitemPagination.getMenuId(),"receiptoutsoitem")); Object receiptoutsoitemObj=authorizeService.getCondition(new AuthorizeConditionModel(receiptoutsoitemQueryWrapper,saleorderitemPagination.getMenuId(),"jg_receiptout"));
if (ObjectUtil.isEmpty(receiptoutsoitemObj)){ if (ObjectUtil.isEmpty(receiptoutsoitemObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
receiptoutsoitemQueryWrapper = (QueryWrapper<ReceiptoutsoitemEntity>)receiptoutsoitemObj; receiptoutsoitemQueryWrapper = (QueryWrapper<ReceiptoutsoitemEntity>)receiptoutsoitemObj;
receiptoutsoitemNum++; receiptoutsoitemNum++;
} }
Object collectionsoitemObj=authorizeService.getCondition(new AuthorizeConditionModel(collectionsoitemQueryWrapper,saleorderitemPagination.getMenuId(),"collectionsoitem")); Object collectionsoitemObj=authorizeService.getCondition(new AuthorizeConditionModel(collectionsoitemQueryWrapper,saleorderitemPagination.getMenuId(),"jg_collection"));
if (ObjectUtil.isEmpty(collectionsoitemObj)){ if (ObjectUtil.isEmpty(collectionsoitemObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
collectionsoitemQueryWrapper = (QueryWrapper<CollectionsoitemEntity>)collectionsoitemObj; collectionsoitemQueryWrapper = (QueryWrapper<CollectionsoitemEntity>)collectionsoitemObj;
collectionsoitemNum++; collectionsoitemNum++;
} }
Object salesbacksoitemObj=authorizeService.getCondition(new AuthorizeConditionModel(salesbacksoitemQueryWrapper,saleorderitemPagination.getMenuId(),"salesbacksoitem")); Object salesbacksoitemObj=authorizeService.getCondition(new AuthorizeConditionModel(salesbacksoitemQueryWrapper,saleorderitemPagination.getMenuId(),"jg_salesback"));
if (ObjectUtil.isEmpty(salesbacksoitemObj)){ if (ObjectUtil.isEmpty(salesbacksoitemObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
salesbacksoitemQueryWrapper = (QueryWrapper<SalesbacksoitemEntity>)salesbacksoitemObj; salesbacksoitemQueryWrapper = (QueryWrapper<SalesbacksoitemEntity>)salesbacksoitemObj;
salesbacksoitemNum++; salesbacksoitemNum++;
} }
Object paymentsoitemObj=authorizeService.getCondition(new AuthorizeConditionModel(paymentsoitemQueryWrapper,saleorderitemPagination.getMenuId(),"paymentsoitem")); Object paymentsoitemObj=authorizeService.getCondition(new AuthorizeConditionModel(paymentsoitemQueryWrapper,saleorderitemPagination.getMenuId(),"jg_payment"));
if (ObjectUtil.isEmpty(paymentsoitemObj)){ if (ObjectUtil.isEmpty(paymentsoitemObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
paymentsoitemQueryWrapper = (QueryWrapper<PaymentsoitemEntity>)paymentsoitemObj; paymentsoitemQueryWrapper = (QueryWrapper<PaymentsoitemEntity>)paymentsoitemObj;
paymentsoitemNum++; paymentsoitemNum++;
} }
Object arinvoices_item0soitemObj=authorizeService.getCondition(new AuthorizeConditionModel(arinvoices_item0soitemQueryWrapper,saleorderitemPagination.getMenuId(),"arinvoices_item0soitem")); Object arinvoices_item0soitemObj=authorizeService.getCondition(new AuthorizeConditionModel(arinvoices_item0soitemQueryWrapper,saleorderitemPagination.getMenuId(),"jg_arinvoices_item0"));
if (ObjectUtil.isEmpty(arinvoices_item0soitemObj)){ if (ObjectUtil.isEmpty(arinvoices_item0soitemObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -346,7 +346,7 @@ public class SaleorderitemServiceImpl extends ServiceImpl<SaleorderitemMapper, S
} }
if(!isPc && appPermission){ if(!isPc && appPermission){
if (!userProvider.get().getIsAdministrator()){ if (!userProvider.get().getIsAdministrator()){
Object saleorderitemObj=authorizeService.getCondition(new AuthorizeConditionModel(saleorderitemQueryWrapper,saleorderitemPagination.getMenuId(),"saleorderitem")); Object saleorderitemObj=authorizeService.getCondition(new AuthorizeConditionModel(saleorderitemQueryWrapper,saleorderitemPagination.getMenuId(),"jg_saleorder"));
if (ObjectUtil.isEmpty(saleorderitemObj)){ if (ObjectUtil.isEmpty(saleorderitemObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -355,7 +355,7 @@ public class SaleorderitemServiceImpl extends ServiceImpl<SaleorderitemMapper, S
} }
Object salesorder_item0Obj=authorizeService.getCondition(new AuthorizeConditionModel(salesorder_item0QueryWrapper,saleorderitemPagination.getMenuId(),"salesorder_item0")); Object salesorder_item0Obj=authorizeService.getCondition(new AuthorizeConditionModel(salesorder_item0QueryWrapper,saleorderitemPagination.getMenuId(),"jg_salesorder_item0"));
if (ObjectUtil.isEmpty(salesorder_item0Obj)){ if (ObjectUtil.isEmpty(salesorder_item0Obj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -364,7 +364,7 @@ public class SaleorderitemServiceImpl extends ServiceImpl<SaleorderitemMapper, S
} }
Object receiptoutsoitemObj=authorizeService.getCondition(new AuthorizeConditionModel(receiptoutsoitemQueryWrapper,saleorderitemPagination.getMenuId(),"receiptoutsoitem")); Object receiptoutsoitemObj=authorizeService.getCondition(new AuthorizeConditionModel(receiptoutsoitemQueryWrapper,saleorderitemPagination.getMenuId(),"jg_receiptout"));
if (ObjectUtil.isEmpty(receiptoutsoitemObj)){ if (ObjectUtil.isEmpty(receiptoutsoitemObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -373,7 +373,7 @@ public class SaleorderitemServiceImpl extends ServiceImpl<SaleorderitemMapper, S
} }
Object collectionsoitemObj=authorizeService.getCondition(new AuthorizeConditionModel(collectionsoitemQueryWrapper,saleorderitemPagination.getMenuId(),"collectionsoitem")); Object collectionsoitemObj=authorizeService.getCondition(new AuthorizeConditionModel(collectionsoitemQueryWrapper,saleorderitemPagination.getMenuId(),"jg_collection"));
if (ObjectUtil.isEmpty(collectionsoitemObj)){ if (ObjectUtil.isEmpty(collectionsoitemObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -382,7 +382,7 @@ public class SaleorderitemServiceImpl extends ServiceImpl<SaleorderitemMapper, S
} }
Object salesbacksoitemObj=authorizeService.getCondition(new AuthorizeConditionModel(salesbacksoitemQueryWrapper,saleorderitemPagination.getMenuId(),"salesbacksoitem")); Object salesbacksoitemObj=authorizeService.getCondition(new AuthorizeConditionModel(salesbacksoitemQueryWrapper,saleorderitemPagination.getMenuId(),"jg_salesback"));
if (ObjectUtil.isEmpty(salesbacksoitemObj)){ if (ObjectUtil.isEmpty(salesbacksoitemObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -391,7 +391,7 @@ public class SaleorderitemServiceImpl extends ServiceImpl<SaleorderitemMapper, S
} }
Object paymentsoitemObj=authorizeService.getCondition(new AuthorizeConditionModel(paymentsoitemQueryWrapper,saleorderitemPagination.getMenuId(),"paymentsoitem")); Object paymentsoitemObj=authorizeService.getCondition(new AuthorizeConditionModel(paymentsoitemQueryWrapper,saleorderitemPagination.getMenuId(),"jg_payment"));
if (ObjectUtil.isEmpty(paymentsoitemObj)){ if (ObjectUtil.isEmpty(paymentsoitemObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -400,7 +400,7 @@ public class SaleorderitemServiceImpl extends ServiceImpl<SaleorderitemMapper, S
} }
Object arinvoices_item0soitemObj=authorizeService.getCondition(new AuthorizeConditionModel(arinvoices_item0soitemQueryWrapper,saleorderitemPagination.getMenuId(),"arinvoices_item0soitem")); Object arinvoices_item0soitemObj=authorizeService.getCondition(new AuthorizeConditionModel(arinvoices_item0soitemQueryWrapper,saleorderitemPagination.getMenuId(),"jg_arinvoices_item0"));
if (ObjectUtil.isEmpty(arinvoices_item0soitemObj)){ if (ObjectUtil.isEmpty(arinvoices_item0soitemObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {

@ -66,19 +66,19 @@ public class SalesmentServiceImpl extends ServiceImpl<SalesmentMapper, Salesment
QueryWrapper<SalesmentEntity> salesmentQueryWrapper=new QueryWrapper<>(); QueryWrapper<SalesmentEntity> salesmentQueryWrapper=new QueryWrapper<>();
int salesment_item0Num =0; int salesment_item0Num =0;
QueryWrapper<Salesment_item0Entity> salesment_item0QueryWrapper=new QueryWrapper<>(); QueryWrapper<Salesment_item0Entity> salesment_item0QueryWrapper=new QueryWrapper<>();
boolean pcPermission = false; boolean pcPermission = true;
boolean appPermission = false; boolean appPermission = true;
boolean isPc = ServletUtil.getHeader("jnpf-origin").equals("pc"); boolean isPc = ServletUtil.getHeader("jnpf-origin").equals("pc");
if(isPc && pcPermission){ if(isPc && pcPermission){
if (!userProvider.get().getIsAdministrator()){ if (!userProvider.get().getIsAdministrator()){
Object salesmentObj=authorizeService.getCondition(new AuthorizeConditionModel(salesmentQueryWrapper,salesmentPagination.getMenuId(),"salesment")); Object salesmentObj=authorizeService.getCondition(new AuthorizeConditionModel(salesmentQueryWrapper,salesmentPagination.getMenuId(),"jg_salesment"));
if (ObjectUtil.isEmpty(salesmentObj)){ if (ObjectUtil.isEmpty(salesmentObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
salesmentQueryWrapper = (QueryWrapper<SalesmentEntity>)salesmentObj; salesmentQueryWrapper = (QueryWrapper<SalesmentEntity>)salesmentObj;
salesmentNum++; salesmentNum++;
} }
Object salesment_item0Obj=authorizeService.getCondition(new AuthorizeConditionModel(salesment_item0QueryWrapper,salesmentPagination.getMenuId(),"salesment_item0")); Object salesment_item0Obj=authorizeService.getCondition(new AuthorizeConditionModel(salesment_item0QueryWrapper,salesmentPagination.getMenuId(),"jg_salesment_item0"));
if (ObjectUtil.isEmpty(salesment_item0Obj)){ if (ObjectUtil.isEmpty(salesment_item0Obj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -89,7 +89,7 @@ public class SalesmentServiceImpl extends ServiceImpl<SalesmentMapper, Salesment
} }
if(!isPc && appPermission){ if(!isPc && appPermission){
if (!userProvider.get().getIsAdministrator()){ if (!userProvider.get().getIsAdministrator()){
Object salesmentObj=authorizeService.getCondition(new AuthorizeConditionModel(salesmentQueryWrapper,salesmentPagination.getMenuId(),"salesment")); Object salesmentObj=authorizeService.getCondition(new AuthorizeConditionModel(salesmentQueryWrapper,salesmentPagination.getMenuId(),"jg_salesment"));
if (ObjectUtil.isEmpty(salesmentObj)){ if (ObjectUtil.isEmpty(salesmentObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -98,7 +98,7 @@ public class SalesmentServiceImpl extends ServiceImpl<SalesmentMapper, Salesment
} }
Object salesment_item0Obj=authorizeService.getCondition(new AuthorizeConditionModel(salesment_item0QueryWrapper,salesmentPagination.getMenuId(),"salesment_item0")); Object salesment_item0Obj=authorizeService.getCondition(new AuthorizeConditionModel(salesment_item0QueryWrapper,salesmentPagination.getMenuId(),"jg_salesment_item0"));
if (ObjectUtil.isEmpty(salesment_item0Obj)){ if (ObjectUtil.isEmpty(salesment_item0Obj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -155,19 +155,19 @@ public class SalesmentServiceImpl extends ServiceImpl<SalesmentMapper, Salesment
QueryWrapper<SalesmentEntity> salesmentQueryWrapper=new QueryWrapper<>(); QueryWrapper<SalesmentEntity> salesmentQueryWrapper=new QueryWrapper<>();
int salesment_item0Num =0; int salesment_item0Num =0;
QueryWrapper<Salesment_item0Entity> salesment_item0QueryWrapper=new QueryWrapper<>(); QueryWrapper<Salesment_item0Entity> salesment_item0QueryWrapper=new QueryWrapper<>();
boolean pcPermission = false; boolean pcPermission = true;
boolean appPermission = false; boolean appPermission = true;
boolean isPc = ServletUtil.getHeader("jnpf-origin").equals("pc"); boolean isPc = ServletUtil.getHeader("jnpf-origin").equals("pc");
if(isPc && pcPermission){ if(isPc && pcPermission){
if (!userProvider.get().getIsAdministrator()){ if (!userProvider.get().getIsAdministrator()){
Object salesmentObj=authorizeService.getCondition(new AuthorizeConditionModel(salesmentQueryWrapper,salesmentPagination.getMenuId(),"salesment")); Object salesmentObj=authorizeService.getCondition(new AuthorizeConditionModel(salesmentQueryWrapper,salesmentPagination.getMenuId(),"jg_salesment"));
if (ObjectUtil.isEmpty(salesmentObj)){ if (ObjectUtil.isEmpty(salesmentObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
salesmentQueryWrapper = (QueryWrapper<SalesmentEntity>)salesmentObj; salesmentQueryWrapper = (QueryWrapper<SalesmentEntity>)salesmentObj;
salesmentNum++; salesmentNum++;
} }
Object salesment_item0Obj=authorizeService.getCondition(new AuthorizeConditionModel(salesment_item0QueryWrapper,salesmentPagination.getMenuId(),"salesment_item0")); Object salesment_item0Obj=authorizeService.getCondition(new AuthorizeConditionModel(salesment_item0QueryWrapper,salesmentPagination.getMenuId(),"jg_salesment_item0"));
if (ObjectUtil.isEmpty(salesment_item0Obj)){ if (ObjectUtil.isEmpty(salesment_item0Obj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -178,7 +178,7 @@ public class SalesmentServiceImpl extends ServiceImpl<SalesmentMapper, Salesment
} }
if(!isPc && appPermission){ if(!isPc && appPermission){
if (!userProvider.get().getIsAdministrator()){ if (!userProvider.get().getIsAdministrator()){
Object salesmentObj=authorizeService.getCondition(new AuthorizeConditionModel(salesmentQueryWrapper,salesmentPagination.getMenuId(),"salesment")); Object salesmentObj=authorizeService.getCondition(new AuthorizeConditionModel(salesmentQueryWrapper,salesmentPagination.getMenuId(),"jg_salesment"));
if (ObjectUtil.isEmpty(salesmentObj)){ if (ObjectUtil.isEmpty(salesmentObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -187,7 +187,7 @@ public class SalesmentServiceImpl extends ServiceImpl<SalesmentMapper, Salesment
} }
Object salesment_item0Obj=authorizeService.getCondition(new AuthorizeConditionModel(salesment_item0QueryWrapper,salesmentPagination.getMenuId(),"salesment_item0")); Object salesment_item0Obj=authorizeService.getCondition(new AuthorizeConditionModel(salesment_item0QueryWrapper,salesmentPagination.getMenuId(),"jg_salesment_item0"));
if (ObjectUtil.isEmpty(salesment_item0Obj)){ if (ObjectUtil.isEmpty(salesment_item0Obj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {

@ -86,7 +86,7 @@ public class TradeuploadServiceImpl extends ServiceImpl<TradeuploadMapper, Trade
boolean isPc = ServletUtil.getHeader("jnpf-origin").equals("pc"); boolean isPc = ServletUtil.getHeader("jnpf-origin").equals("pc");
if(isPc && pcPermission){ if(isPc && pcPermission){
if (!userProvider.get().getIsAdministrator()){ if (!userProvider.get().getIsAdministrator()){
Object tradeuploadObj=authorizeService.getCondition(new AuthorizeConditionModel(tradeuploadQueryWrapper,tradeuploadPagination.getMenuId(),"jg_tradeupload")); Object tradeuploadObj=authorizeService.getCondition(new AuthorizeConditionModel(tradeuploadQueryWrapper,tradeuploadPagination.getMenuId(),"jg_poundlist"));
if (ObjectUtil.isEmpty(tradeuploadObj)){ if (ObjectUtil.isEmpty(tradeuploadObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -97,7 +97,7 @@ public class TradeuploadServiceImpl extends ServiceImpl<TradeuploadMapper, Trade
} }
if(!isPc && appPermission){ if(!isPc && appPermission){
if (!userProvider.get().getIsAdministrator()){ if (!userProvider.get().getIsAdministrator()){
Object tradeuploadObj=authorizeService.getCondition(new AuthorizeConditionModel(tradeuploadQueryWrapper,tradeuploadPagination.getMenuId(),"jg_tradeupload")); Object tradeuploadObj=authorizeService.getCondition(new AuthorizeConditionModel(tradeuploadQueryWrapper,tradeuploadPagination.getMenuId(),"jg_poundlist"));
if (ObjectUtil.isEmpty(tradeuploadObj)){ if (ObjectUtil.isEmpty(tradeuploadObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -253,7 +253,7 @@ public class TradeuploadServiceImpl extends ServiceImpl<TradeuploadMapper, Trade
boolean isPc = ServletUtil.getHeader("jnpf-origin").equals("pc"); boolean isPc = ServletUtil.getHeader("jnpf-origin").equals("pc");
if(isPc && pcPermission){ if(isPc && pcPermission){
if (!userProvider.get().getIsAdministrator()){ if (!userProvider.get().getIsAdministrator()){
Object tradeuploadObj=authorizeService.getCondition(new AuthorizeConditionModel(tradeuploadQueryWrapper,tradeuploadPagination.getMenuId(),"jg_tradeupload")); Object tradeuploadObj=authorizeService.getCondition(new AuthorizeConditionModel(tradeuploadQueryWrapper,tradeuploadPagination.getMenuId(),"jg_poundlist"));
if (ObjectUtil.isEmpty(tradeuploadObj)){ if (ObjectUtil.isEmpty(tradeuploadObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
@ -264,7 +264,7 @@ public class TradeuploadServiceImpl extends ServiceImpl<TradeuploadMapper, Trade
} }
if(!isPc && appPermission){ if(!isPc && appPermission){
if (!userProvider.get().getIsAdministrator()){ if (!userProvider.get().getIsAdministrator()){
Object tradeuploadObj=authorizeService.getCondition(new AuthorizeConditionModel(tradeuploadQueryWrapper,tradeuploadPagination.getMenuId(),"jg_tradeupload")); Object tradeuploadObj=authorizeService.getCondition(new AuthorizeConditionModel(tradeuploadQueryWrapper,tradeuploadPagination.getMenuId(),"jg_poundlist"));
if (ObjectUtil.isEmpty(tradeuploadObj)){ if (ObjectUtil.isEmpty(tradeuploadObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {

Loading…
Cancel
Save