Spring AOP 业务权限管理
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-nstance" xmlns:aop="http://www.springframework.org/schema/ao" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:context="http://www.springframework.org/schema/context" xmlns:jee="http://www.springframework.org/schema/jee" xmlns:p="http://www.springframework.org/schema/p" xsi:schemaLocation=" http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.5.xsd"> <context:component-scan base-package="com.byd.mes.dev,com.byd.mes.bussiness.service" /> <!--=================================================================================== 指定Spring配置中用到的属性文件 ====================================================================================--> <bean id="propertyConfigurer" class="com.byd.mes.util.PropertyConfigurer"> <property name="locations" > <list> <value>classpath:com/byd/mes/conf/jdbc@bmes_dev.properties</value> <value>classpath:com/byd/mes/conf/system_conf.properties</value> </list> </property> </bean> <!--=================================================================================== 数据源 ====================================================================================--> <!-- 业务数据库 --> <bean id="dataSourceORG" class="org.apache.commons.dbcp.BasicDataSource" destroy-method ="close" p:driverClassName="${mes.org.jdbc.driver}" p:url="${mes.org.jdbc.connectionURL}" p:username="${mes.org.jdbc.username}" p:password="${mes.org.jdbc.password}" /> <!-- 归档数据库 --> <bean id="dataSourceODS" class="org.apache.commons.dbcp.BasicDataSource" destroy-method ="close" p:driverClassName="${mes.ods.jdbc.driver}" p:url="${mes.ods.jdbc.connectionURL}" p:username="${mes.ods.jdbc.username}" p:password="${mes.ods.jdbc.password}" /> <!-- 动态数据源 --> <bean id="dataSource" class="com.byd.mes.util.datasource.DynamicDataSource"> <property name="targetDataSources"> <map> <entry key="orgdb" value-ref="dataSourceORG"/> <entry key="odsdb" value-ref="dataSourceODS"/> </map> </property> <property name="defaultTargetDataSource" ref="dataSourceORG" /> </bean> <!--=================================================================================== ibatis配置 ====================================================================================--> <bean id="lobHandler" class="org.springframework.jdbc.support.lob.DefaultLobHandler"/> <bean id="sqlMapClient" class="org.springframework.orm.ibatis.SqlMapClientFactoryBean"> <property name="dataSource" ref="dataSource"></property> <property name="configLocation"> <value>classpath:com/byd/mes/conf/sqlMapConfig_mes.xml</value> </property> <property name="lobHandler" ref="lobHandler"/> </bean> <!--=================================================================================== 定义事务管理器(声明式的事务) ====================================================================================--> <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager"> <property name="dataSource"> <ref local="dataSource" /> </property> </bean> <tx:advice id="txAdvice" transaction-manager="transactionManager"> <tx:attributes> <tx:method name="add*" propagation="REQUIRED" timeout="60" read-only="false" rollback-for="Throwable" /> <tx:method name="send*" propagation="REQUIRED" timeout="60" read-only="false" rollback-for="Throwable" /> <tx:method name="save*" propagation="REQUIRED" timeout="60" read-only="false" rollback-for="Throwable" /> <tx:method name="delete*" propagation="REQUIRED" timeout="60" read-only="false" rollback-for="Throwable" /> <tx:method name="update*" propagation="REQUIRED" timeout="60" read-only="false" rollback-for="Throwable" /> <tx:method name="imp*" propagation="REQUIRED" timeout="180" read-only="false" rollback-for="Throwable" /> <tx:method name="execute*" propagation="REQUIRED" timeout="60" read-only="false" rollback-for="Throwable" /> </tx:attributes> </tx:advice> <aop:config> <aop:pointcut id="interceptorPointCuts" expression="(execution(* com.byd.mes..*ServiceImpl.*(..)))" /> <aop:advisor advice-ref="txAdvice" pointcut-ref="interceptorPointCuts" /> </aop:config> <!--=================================================================================== OTHER SPRING XML ====================================================================================--> <!-- 权限 --> <import resource="applicationContext-permission.xml" /> <!-- 动态任务 --> <import resource="applicationContext-quartz.xml" /> <!--=================================================================================== ACTION XML ====================================================================================--> <!-- 主数据 action --> <import resource="action_mes_main.xml"/> <!-- 权限action --> <import resource="action_mes_system.xml"/> <!-- 现场操作管理 --> <import resource="action_mes_packing.xml"/> <!-- 生成管理--> <import resource="action_mes_production.xml"/> <!-- 系统缓存配置--> <import resource="cache_conf.xml"/> <!--=================================================================================== DAO XML =====================================================================================--> <!-- 主数据 dao--> <import resource="dao_mes_main.xml" /> <!-- 权限DAO --> <import resource="dao_mes_system.xml" /> <!-- POD模块DAO --> <import resource="dao_mes_siteoperation.xml" /> <!-- 仓库模块DAO --> <import resource="dao_mes_wm.xml" /> <!--=================================================================================== SERVICE XML =====================================================================================--> <!-- 主数据 service--> <import resource="service_mes_main.xml" /> <!-- 权限SERVICE --> <import resource="service_mes_system.xml" /> <!-- POD模块SERVICE --> <!--=================================================================================== OTHER XML =====================================================================================--> <!-- Applicationcontext应用Bean --> <bean id="beanFactory" class="com.byd.mes.util.BeanFactory" p:propertyConfigurer-ref ="propertyConfigurer"/> <!--=================================================================================== 系统标准功能点 XML解析服务类 =====================================================================================--> <bean id="standardActivityXMLParseClass" class="java.util.HashMap"> <constructor-arg> <map> <entry key="START" value="com.byd.mes.dev.parseXml.StartActivityUtil,START" /> <entry key="COMPLETE" value="com.byd.mes.dev.parseXml.CompleteActivityUtil,COMPLETE" /> <entry key="NCLOG" value="com.byd.mes.dev.parseXml.NcLogCompleteActivityUtil,NCLOG" /> <entry key="SFCDATACOLLECTION" value="com.byd.mes.dev.parseXml.DataCollectionActivityUtil,SFCDATACOLLECTION" /> <entry key="SERIALIZE" value="com.byd.mes.dev.parseXml.SerializeActivityUtil,SERIALIZE" /> <entry key="PASS" value="com.byd.mes.dev.parseXml.PassActivityUtil,PASS" /> </map> </constructor-arg> </bean> </beans> <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd"> <!-- ============================================================================== 扩展相关DAO配置文件 =============================================================================== --> <import resource="dao_mes_main_ext.xml"/> <!--============================================================================= 常用JDBC操作 ===============================================================================--> <bean id="jdbcDAO" class="com.byd.mes.persistent.dao.JdbcDAOImpl" p:dataSource-ref="dataSource"> <property name="totalCountSqlTemplate"> <value> <![CDATA[ SELECT COUNT(*) FROM( :SQL_STATEMENT ) ]]> </value> </property> <property name="paginatorSqlTemplate"> <value> <![CDATA[ SELECT * FROM ( SELECT t.*,rownum rownum_ FROM ( :SQL_STATEMENT ) t WHERE rownum <= :END_INDEX ) t WHERE t.rownum_ >= :START_INDEX ]]> </value> </property> </bean> <!--============================================================================= DAO ===============================================================================--> <!-- 客户 --> <bean id="customerDAO" class="com.byd.mes.persistent.dao.main.impl.CustomerDAOImpl"> <constructor-arg ref="sqlMapClient" /> </bean> <!-- 用户 --> <!-- <bean id="userDAO" class="com.byd.mes.persistent.dao.main.impl.UserDAOImpl"> <constructor-arg ref="sqlMapClient" /> </bean> --> <!-- 状态 --> <bean id="statusDAO" class="com.byd.mes.persistent.dao.main.impl.StatusDAOImpl" p:cacheManager-ref="mesCacheManager"> <constructor-arg ref="sqlMapClient" /> </bean> <!-- 客户订单 --> <bean id="customerOrderDAO" class="com.byd.mes.persistent.dao.main.impl.CustomerOrderDAOImpl"> <constructor-arg ref="sqlMapClient" /> </beans> <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd"> <!-- ============================================================================== 业务相关SERVICE配置文件 =============================================================================== --> <!-- 级联CRUD操作 --> <import resource="service_mes_main_ext.xml" /> <!--=============================================================================== SERVICE =================================================================================--> <!--组件代替关系--> <bean id="alternateComponentService" class="com.byd.mes.bussiness.service.main.impl.AlternateComponentServiceImpl" p:alternateComponentDAO-ref="alternateComponentDAO" p:bomHandle-ref="bomHandle"/> <!-- 物料清单--> <bean id="bomService" class="com.byd.mes.bussiness.service.main.impl.BomServiceImpl" p:bomDAO-ref="bomDAO" p:bomHandle-ref="bomHandle" p:customDataHandle-ref="customDataHandle" p:statusService-ref="statusService" p:listKindService-ref="listKindService" p:maskGroupService-ref="maskGroupService" p:mesLocksService-ref="mesLocksService" p:statusGrant="1"/> <!-- 物料清单组件--> <bean id="bomComponentService" class="com.byd.mes.bussiness.service.main.impl.BomComponentServiceImpl" p:bomComponentDAO-ref="bomComponentDAO" p:bomHandle-ref="bomHandle" p:listKindService-ref="listKindService" p:maskGroupService-ref="maskGroupService"/> <!-- 类别管理--> <bean id="categoryService" class="com.byd.mes.bussiness.service.main.impl.CategoryServiceImpl" p:categoryDAO-ref="categoryDAO" p:categoryHandle-ref="categoryHandle" p:cacheManager-ref="mesCacheManager"/> <!--自定义字段--> <bean id="customerDataInsService" class="com.byd.mes.bussiness.service.main.impl.CustomDataInsServiceImpl" p:customDataInsDAO-ref="customDataInsDAO" p:mesLocksService-ref="mesLocksService" p:customDataHandle-ref="customDataHandle"/> <!-- 自定义数据配置--> <bean id="customDataService" class="com.byd.mes.bussiness.service.main.impl.CustomDataServiceImpl" p:customDataDAO-ref="customDataDAO" p:customDataHandle-ref="customDataHandle"/> <!-- 客户 --> <bean id="customerService" class="com.byd.mes.bussiness.service.main.impl.CustomerServiceImpl" p:customerDAO-ref="customerDAO" p:mesLocksService-ref="mesLocksService" p:customerHandle-ref="customerHandle"/> <!-- 客户定单 --> <bean id="customerOrderService" class="com.byd.mes.bussiness.service.main.impl.CustomerOrderServiceImpl" p:customerOrderDAO-ref="customerOrderDAO" p:mesLocksService-ref="mesLocksService" p:customerHandle-ref="customerHandle"/> <!-- 客户订单明细 --> <bean id="customerOrderItemService" class="com.byd.mes.bussiness.service.main.impl.CustomerOrderItemServiceImpl" p:customerOrderItemDAO-ref="customerOrderItemDAO" p:customerHandle-ref="customerHandle"/> <!-- 数据类型 --> <bean id="dataTypeService" class="com.byd.mes.bussiness.service.main.impl.DataTypeServiceImpl" p:dataTypeDAO-ref="dataTypeDAO" p:dataTypeHandle-ref="dataTypeHandle"/> <!-- 数据类型明细 --> <bean id="dataTypeItemService" class="com.byd.mes.bussiness.service.main.impl.DataTypeItemServiceImpl" p:dataTypeItemDAO-ref="dataTypeItemDAO"/> <!--物料收集组--> <bean id="dcGroupAttacthService" class="com.byd.mes.bussiness.service.main.impl.DcGroupAttacthServiceImpl" p:dCGroupAttachDAO-ref="dCGroupAttachDAO" p:dcGroupHandle-ref="dcGroupHandle"/> <!-- 数据收集组--> <bean id="dcGroupService" class="com.byd.mes.bussiness.service.main.impl.DcGroupServiceImpl" p:dCGroupDAO-ref="dCGroupDAO" p:dcGroupHandle-ref="dcGroupHandle" p:systemRuleHandle-ref="systemRuleHandle" p:mesLocksService-ref="mesLocksService" p:customDataHandle-ref="customDataHandle"/> <!--参数收集组--> <bean id="dcParameterService" class="com.byd.mes.bussiness.service.main.impl.DcParameterServiceImpl" p:dCParameterDAO-ref="dCParameterDAO" p:dcGroupHandle-ref="dcGroupHandle" p:maskGroupDAO-ref="maskGroupDAO"/> <!--处置功能--> <bean id="dispositionFunctionService" class="com.byd.mes.bussiness.service.main.impl.DispositionFunctionServiceImpl" p:dispositionFunctionDAO-ref="dispositionFunctionDAO" p:dispositionHandle-ref="dispositionHandle"/> <!--处置组成员--> <bean id="dispositionGroupMemberService" class="com.byd.mes.bussiness.service.main.impl.DispositionGroupMemberServiceImpl" p:dispositionGroupMemberDAO-ref="dispositionGroupMemberDAO" p:dispositionHandle-ref="dispositionHandle"/> <!--处置组--> <!--物料组 --> <bean id="itemGroupService" class="com.byd.mes.bussiness.service.main.impl.ItemGroupServiceImpl" p:itemGroupDAO-ref="itemGroupDAO" p:itemHandle-ref="itemHandle" p:mesLocksService-ref="mesLocksService" p:customDataHandle-ref="customDataHandle"/> <!-- 物料--> <bean id="itemService" class="com.byd.mes.bussiness.service.main.impl.ItemServiceImpl" p:itemDAO-ref="itemDAO" p:itemUnitDAO-ref="itemUnitDAO" p:itemHandle-ref="itemHandle" p:systemRuleHandle-ref="systemRuleHandle" p:statusService-ref="statusService" p:dataTypeHandle-ref="dataTypeHandle" p:customDataHandle-ref="customDataHandle" p:categoryService-ref="categoryService" p:mesLocksService-ref="mesLocksService" p:statusGrant="1" p:statusHold="4" p:orgMaterials="1" p:finishedProduct="2" p:halfGrown="3" p:inSorag="1" p:outSorag="2"/> <!-- 物料单位转换--> <bean id="itemUnitConversionService" class="com.byd.mes.bussiness.service.main.impl.ItemUnitConversionServiceImpl" p:itemUnitConversionDAO-ref="itemUnitConversionDAO" p:itemHandle-ref="itemHandle"/> <!-- 物料单位--> <bean id="itemUnitService" class="com.byd.mes.bussiness.service.main.impl.ItemUnitServiceImpl" p:itemUnitDAO-ref="itemUnitDAO" p:itemHandle-ref="itemHandle"/> <!--列表栏配置--> <bean id="listColumnConfigService" class="com.byd.mes.bussiness.service.main.impl.ListColumnConfigServiceImpl" p:listColumnConfigDAO-ref="listColumnConfigDAO" p:listKindHandle-ref="listKindHandle"/> <!--列表栏--> <bean id="listColumnService" class="com.byd.mes.bussiness.service.main.impl.ListColumnServiceImpl" p:listColumnDAO-ref="listColumnDAO" p:listKindHandle-ref="listKindHandle"/> <!--列表配置--> <bean id="listConfigService" class="com.byd.mes.bussiness.service.main.impl.ListConfigServiceImpl" p:listConfigDAO-ref="listConfigDAO" p:mesLocksService-ref="mesLocksService" p:listKindHandle-ref="listKindHandle"/> <!--列表参数配置--> <bean id="listConfigValuesService" class="com.byd.mes.bussiness.service.main.impl.ListConfigValuesServiceImpl" p:listConfigValuesDAO-ref="listConfigValuesDAO" p:listKindHandle-ref="listKindHandle"/> <!--列表类别--> <bean id="listKindService" class="com.byd.mes.bussiness.service.main.impl.ListKindServiceImpl" p:listKindDAO-ref="listKindDAO" p:jdbcDAO-ref="jdbcDAO" p:mesLocksService-ref="mesLocksService" p:listParameterDAO-ref="listParameterDAO" p:listKindHandle-ref="listKindHandle"/> <!--列表参数--> <bean id="listParameterService" class="com.byd.mes.bussiness.service.main.impl.ListParameterServiceImpl" p:listParameterDAO-ref="listParameterDAO" p:listKindHandle-ref="listKindHandle"/> <!--列表类型--> <bean id="listTypeService" class="com.byd.mes.bussiness.service.main.impl.ListTypeServiceImpl" p:listTypeDAO-ref="listTypeDAO" p:listKindHandle-ref="listKindHandle"/> <!--设备、设备类型关联--> <bean id="machineRefMachineTypeService" class="com.byd.mes.bussiness.service.main.impl.MachineRefMachineTypeServiceImpl" p:machineRefMachineTypeDAO-ref="machineRefMachineTypeDAO" p:machineHandle-ref="machineHandle"/> <!--设备--> <bean id="machineService" class="com.byd.mes.bussiness.service.main.impl.MachineServiceImpl" p:machineDAO-ref="machineDAO" p:machineHandle-ref="machineHandle" p:mesLocksService-ref="mesLocksService" p:systemRuleHandle-ref="systemRuleHandle" p:customDataHandle-ref="customDataHandle"/> <!--设备状态--> <bean id="machineStatusService" class="com.byd.mes.bussiness.service.main.impl.MachineStatusServiceImpl" p:machineStatusDAO-ref="machineStatusDAO" p:machineHandle-ref="machineHandle"/> <!--设备类型--> <bean id="machineTypeService" class="com.byd.mes.bussiness.service.main.impl.MachineTypeServiceImpl" p:machineTypeDAO-ref="machineTypeDAO" p:machineHandle-ref="machineHandle" p:mesLocksService-ref="mesLocksService" p:customDataHandle-ref="customDataHandle"/> <!--验证掩码组--> <bean id="maskGroupService" class="com.byd.mes.bussiness.service.main.impl.MaskGroupServiceImpl" p:maskGroupDAO-ref="maskGroupDAO" p:maskGroupHandle-ref="maskGroupHandle" p:maskGroupMemberDAO-ref="maskGroupMemberDAO"/> <!--验证掩码组设置--> <bean id="maskGroupMemberService" class="com.byd.mes.bussiness.service.main.impl.MaskGroupMemberServiceImpl" p:maskGroupMemberDAO-ref="maskGroupMemberDAO" p:maskGroupHandle-ref="maskGroupHandle"/> <!--不良代码 --> <bean id="ncCodeService" class="com.byd.mes.bussiness.service.main.impl.NcCodeServiceImpl" p:ncCodeDAO-ref="ncCodeDAO" p:ncHandle-ref="ncHandle" p:mesLocksService-ref="mesLocksService" p:activityPothookHandle-ref="activityPothookHandle" p:customDataHandle-ref="customDataHandle"/> <!--处置工艺路线 --> <bean id="ncDispRouterService" class="com.byd.mes.bussiness.service.main.impl.NcDispRouterServiceImpl" p:ncDispRouterDAO-ref="ncDispRouterDAO" p:ncHandle-ref="ncHandle"/> <!-- 不良代码组成员 --> <bean id="ncGroupMemberService" class="com.byd.mes.bussiness.service.main.impl.NcGroupMemberServiceImpl" p:ncGroupMemberDAO-ref="ncGroupMemberDAO" p:ncHandle-ref="ncHandle"/> <!-- 不良代码组 --> <bean id="ncGroupService" class="com.byd.mes.bussiness.service.main.impl.NcGroupServiceImpl" p:ncGroupDAO-ref="ncGroupDAO" p:mesLocksService-ref="mesLocksService" p:ncHandle-ref="ncHandle"/> <!-- 资源、处置组 --> <bean id="ncResourceDispService" class="com.byd.mes.bussiness.service.main.impl.NcResourceDispServiceImpl" p:ncResourceDispDAO-ref="ncResourceDispDAO"/> <!-- 次要不良代码 --> <bean id="nCSecondaryCodeService" class="com.byd.mes.bussiness.service.main.impl.NCSecondaryCodeServiceImpl" p:ncSecondaryCodeDAO-ref="ncSecondaryCodeDAO" p:ncHandle-ref="ncHandle"/> <!-- 下一编号--> <bean id="nextNumberService" class="com.byd.mes.bussiness.service.main.impl.NextNumberServiceImpl" p:nextNumberHandle-ref="nextNumberHandle" p:mesLocksService-ref="mesLocksService" p:nextNumberDAO-ref="nextNumberDAO" p:cacheManager-ref="mesCacheManager"/> <!-- 工段、工序分配--> <bean id="operationSectRefOperationService" class="com.byd.mes.bussiness.service.main.impl.OperationSectRefOperationServiceImpl" p:operationSectRefOperationDAO-ref="operationSectRefOperationDAO" p:operationHandle-ref="operationHandle"/> <!--工段 --> <bean id="operationSectService" class="com.byd.mes.bussiness.service.main.impl.OperationSectServiceImpl" p:operationSectDAO-ref="operationSectDAO" p:mesLocksService-ref="mesLocksService" p:operationHandle-ref="operationHandle" p:customDataHandle-ref="customDataHandle"/> <!--工序 --> <bean id="operationService" class="com.byd.mes.bussiness.service.main.impl.OperationServiceImpl" p:operationDAO-ref="operationDAO" p:operationHandle-ref="operationHandle" p:activityPothookHandle-ref="activityPothookHandle" p:customDataHandle-ref="customDataHandle" p:statusService-ref="statusService" p:mesLocksService-ref="mesLocksService" p:statusGrant="1"/> <!--p:workFlowService-ref="workFlowService" --> <!--资源不良代码--> <bean id="resourceNcService" class="com.byd.mes.bussiness.service.main.impl.ResourceNcServiceImpl" p:resourceNcDAO-ref="resourceNcDAO" p:ncHandle-ref="ncHandle"/> <!--产品数量收集 --> <bean id="resourceRefProdDcService" class="com.byd.mes.bussiness.service.main.impl.ResourceRefProdDcServiceImpl" p:resourceRefProdDcDAO-ref="resourceRefProdDcDAO" p:resourceHandle-ref="resourceHandle"/> <!--产品抽检 --> <bean id="resourceRefProdRandomQCService" class="com.byd.mes.bussiness.service.main.impl.ResourceRefProdRandomQCServiceImpl" p:resourceRefProdRandomQcDAO-ref="resourceRefProdRandomQcDAO" p:resourceHandle-ref="resourceHandle"/> <!--样品测试 --> <bean id="resourceRefProdSampTestService" class="com.byd.mes.bussiness.service.main.impl.ResourceRefProdSampTestServiceImpl" p:resourceRefProdSampTestDAO-ref="resourceRefProdSampTestDAO" p:resourceHandle-ref="resourceHandle"/> <!--资源--> <bean id="mesResourceService" class="com.byd.mes.bussiness.service.main.impl.ResourceServiceImpl" p:resourceDAO-ref="resourceDAO" p:resourceHandle-ref="resourceHandle" p:activityPothookHandle-ref="activityPothookHandle" p:customDataHandle-ref="customDataHandle" p:systemRuleHandle-ref="systemRuleHandle" p:mesLocksService-ref="mesLocksService" p:statusService-ref="statusService" p:statusUsing="1,4,5,6"/> <!--资源、资源类型相关联--> <bean id="resourceTypeResourceService" class="com.byd.mes.bussiness.service.main.impl.ResourceTypeResourceServiceImpl" p:resourceTypeResourceDAO-ref="resourceTypeResourceDAO" p:resourceHandle-ref="resourceHandle"/> <!--资源类型--> <bean id="resourceTypeService" class="com.byd.mes.bussiness.service.main.impl.ResourceTypeServiceImpl" p:resourceTypeDAO-ref="resourceTypeDAO" p:resourceHandle-ref="resourceHandle" p:mesLocksService-ref="mesLocksService" p:customDataHandle-ref="customDataHandle"/> <!--工艺路线--> <bean id="routerService" class="com.byd.mes.bussiness.service.main.impl.RouterServiceImpl" p:routerDAO-ref="routerDAO" p:routerHandle-ref="routerHandle" p:statusService-ref="statusService" p:mesLocksService-ref="mesLocksService" p:customDataHandle-ref="customDataHandle" p:statusGrant="1"/> <!--工单 --> <bean id="shopOrderService" class="com.byd.mes.bussiness.service.main.impl.ShopOrderServiceImpl" p:shopOrderDAO-ref="shopOrderDAO" p:shopOrderHandle-ref="shopOrderHandle" p:statusService-ref="statusService" p:mesLocksService-ref="mesLocksService" p:categoryService-ref="categoryService" p:routerHandle-ref="routerHandle" p:customDataHandle-ref="customDataHandle" p:categroyProduct="1" p:categroyReProduction="2" p:categroyUntread="3" p:listKindService-ref="listKindService" p:itemService-ref="itemService" p:activityInfoService-ref="activityInfoService" p:nextNumberService-ref="nextNumberService" p:executeActivityService-ref="executeActivityService" p:statusGrant="1"/> <!--工单物料需求 --> <bean id="shopOrderMrpService" class="com.byd.mes.bussiness.service.main.impl.ShopOrderMrpServiceImpl" p:shopOrderMrpDAO-ref="shopOrderMrpDAO" p:shopOrderHandle-ref="shopOrderHandle"/> <!--站点--> <bean id="siteService" class="com.byd.mes.bussiness.service.main.impl.SiteServiceImpl" p:siteDAO-ref="siteDAO" p:siteHandle-ref="siteHandle" p:cacheManager-ref="mesCacheManager"/> <!-- 状态 --> <bean id="statusService" class="com.byd.mes.bussiness.service.main.impl.StatusServiceImpl" p:statusDAO-ref="statusDAO" p:statusHandle-ref="statusHandle" p:cacheManager-ref="mesCacheManager"/> <!-- 系统规则组 --> <bean id="systemRuleGroupService" class="com.byd.mes.bussiness.service.main.impl.SystemRuleGroupServiceImpl" p:systemRuleGroupDAO-ref="systemRuleGroupDAO" p:systemRuleHandle-ref="systemRuleHandle"/> <!--私有系统规则设定--> <bean id="systemRuleOverrideService" class="com.byd.mes.bussiness.service.main.impl.SystemRuleOverrideServiceImpl" p:systemRuleOverridDAO-ref="systemRuleOverridDAO" p:systemRuleHandle-ref="systemRuleHandle"/> <!-- 系统规则 --> <bean id="systemRuleService" class="com.byd.mes.bussiness.service.main.impl.SystemRuleServiceImpl" p:systemRuleDAO-ref="systemRuleDAO"/> <!--系统规则全局设定--> <bean id="systemRuleSettingService" class="com.byd.mes.bussiness.service.main.impl.SystemRuleSettingServiceImpl" p:systemRuleSettingDAO-ref="systemRuleSettingDAO" p:systemRuleHandle-ref="systemRuleHandle"/> <!-- 供应商 --> <bean id="vendorService" class="com.byd.mes.bussiness.service.main.impl.VendorServiceImpl" p:vendorDAO-ref="vendorDAO" p:mesLocksService-ref="mesLocksService" p:vendorHandle-ref="vendorHandle"/> <!-- 供应商组件 --> <bean id="vendorComponentService" class="com.byd.mes.bussiness.service.main.impl.VendorComponentServiceImpl" p:vendorComponentDAO-ref="vendorComponentDAO" p:vendorHandle-ref="vendorHandle"/> <!--工作中心--> <bean id="workCenterService" class="com.byd.mes.bussiness.service.main.impl.WorkCenterServiceImpl" p:workCenterDAO-ref="workCenterDAO" p:workCenterHandle-ref="workCenterHandle" p:mesLocksService-ref="mesLocksService" p:customDataHandle-ref="customDataHandle"/> <!--工作中心成员--> <bean id="workCenterMemberService" class="com.byd.mes.bussiness.service.main.impl.WorkCenterMemberServiceImpl" p:workCenterHandle-ref="workCenterHandle" p:workCenterMemberDAO-ref="workCenterMemberDAO"/> <!--工序活动挂接--> <bean id="activityPothookService" class="com.byd.mes.bussiness.service.main.impl.ActivityPothookServiceImpl" p:activityPothookDAO-ref="activityPothookDAO"/> <!--物料组不良代码--> <bean id="itemGroupRefNcCodeService" class="com.byd.mes.bussiness.service.main.impl.ItemGroupRefNcCodeServiceImpl" p:itemGroupRefNcCodeDAO-ref="itemGroupRefNcCodeDAO" p:ncHandle-ref="ncHandle"/> <!--物料面板--> <bean id="itemPanelService" class="com.byd.mes.bussiness.service.main.impl.ItemPanelServiceImpl" p:itemPanelDAO-ref="itemPanelDAO" p:itemHandle-ref="itemHandle"/> <!--sfc数据收集--> <bean id="dcGroupInsService" class="com.byd.mes.bussiness.service.siteoperation.datacollection.impl.DcGroupInsServiceImpl" p:dcGroupInsDAO-ref="dcGroupInsDAO" p:dcGroupInsItemDAO-ref="dcGroupInsItemDAO" p:sfcInfoService-ref="sfcInfoService" p:itemService-ref="itemService" p:shopOrderService-ref="shopOrderService" p:resourceService-ref="mesResourceService" p:dcParameterService-ref="dcParameterService" p:maskGroupService-ref="maskGroupService"/> <!-- 退货验证车间工单 --> <bean id="rmaNumberService" class="com.byd.mes.bussiness.service.main.impl.RmaNumberServiceImpl"> <property name="rmaNumberDAO" ref="rmaNmuberDAO"/> <property name="rmaNumberHandle" ref="rmaNumberHandle"/> <property name="rmaDataDAO" ref="rmaDataDAO"/> <property name="rmaDataService" ref="rmaDataService"/> </bean> <!-- 退货验证sfc接收 --> <bean id="rmaDataService" class="com.byd.mes.bussiness.service.main.impl.RmaDataServiceImpl"> <property name="rmaDataDAO" ref="rmaDataDAO"/> <property name="rmaDataHandle" ref="rmaDataHandle"/> </bean> </beans> <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"> <struts> <!--测试范例--> <package name="test" namespace="/test" extends="struts-default"> <action name="base" class="testCustomer"> </action> </package> <!--客户维护 --> <package name="customerMaintenance" namespace="/views/masterData/customer/customerMaintenance" extends="struts-default"> <action name="customerMaintenanceAction" class="customerMaintenance"> </action> </package> <!-- 客户订单维护 --> <package name="customerOrderMaintenance" namespace="/views/masterData/customer/customerOrderMaintenance" extends="struts-default"> <action name="customerOrderMaintenanceAction" class="customerOrderMaintenance"> </action> </package> <!-- 客户订单明细维护 --> <package name="customerOrderItemMaintenance" namespace="/views/masterData/customer/customerOrderItemMaintenance" extends="struts-default"> <action name="customerOrderItemMaintenanceAction" class="customerOrderItemMaintenance"> </action> </package> <!-- 供应商 --> <package name="vendorMaintenance" namespace="/views/masterData/vendor" extends="struts-default"> <action name="vendorMaintenanceAction" class="vendorMaintenance"> </action> </package> <!-- 供应商组件 --> <package name="vendorComponentMaintenance" namespace="/views/masterData/vendorComponent" extends="struts-default"> <action name="vendorComponentMaintenanceAction" class="vendorComponentMaintenance"> </action> </package> <!-- 物料 --> <package name="itemMaintenance" namespace="/views/masterData/producingMasterData/itemMaintenance" extends="struts-default"> <action name="itemMaintenanceAction" class="itemMaintenance"> <result name="success">/views/masterData/item/itemList.jsp</result> </action> </package> <!-- 物料组 --> <package name="itemGroupMaintenance" namespace="/views/masterData/producingMasterData/itemGroupMaintenance" extends="struts-default"> <action name="itemGroupMaintenanceAction" class="itemGroupMaintenance"> <result name="success">views/packing/package/packagingPODMaintenance/index.jsp</result> </action> </package> <!--工段 --> <package name="operationSectMaintenance" namespace="/views/masterData/operationSect" extends="struts-default"> <action name="operationSectMaintenanceAction" class="operationSectMaintenance"> </action> </package> <!-- 数据类型维护 --> <package name="dataTypeMaintenance" namespace="/views/masterData/parameter" extends="struts-default"> <action name="dataTypeMaintenanceAction" class="dataTypeMaintenance"></action> </package> <!-- ================================================================================= ===============================工艺路线==================================== ==================================================================== --> <package name="routerMaintenance" namespace="/views/masterData/producingMasterData/routerMaintenance" extends="struts-default"> <action name="routerMaintenanceAction" class="routerMaintenance"> </action> </package> <!-- 工序 --> <package name="operationMaintenance" namespace="/views/masterData/producingMasterData/operationMaitenance" extends="struts-default"> <action name="operationAction" class="operationMaintenance"> <result name="success">/views/masterData/producingMasterData/operationMaitenance/index.jsp</result> </action> </package> <!-- 设备类型 --> <package name="machineTypeMaintenance" namespace="/views/masterData/machineType" extends="struts-default"> <action name="machineTypeAction" class="machineTypeMaintenance"></action> </package> <!-- 资源类型 --> <package name="resourceTypeMaintenance" namespace="/views/masterData/resourceType" extends="struts-default"> <action name="resourceTypeAction" class="resourceTypeMaintenance"> <result name="success">/views/masterData/producingMasterData/resourceTypeMaitenance/index.jsp</result> </action> </package> <!--不良代码 --> <package name="ncCodeMaintenance" namespace="/views/masterData/nc/ncCodeMaintenance" extends="struts-default"> <action name="ncCodeAction" class="ncCodeMaintenance"> </action> </package> <!--不良代码组 --> <package name="ncGroupMaintenance" namespace="/views/masterData/nc/ncGroupMaintenance" extends="struts-default"> <action name="ncGroupAction" class="ncGroupMaintenance"> </action> </package> <!--工作中心维护--> <package name="workCenterMaintenance" namespace="/views/masterData/producingMasterData/workCenterMaintenance" extends="struts-default"> <action name="workCenterAction" class="workCenterMaintenance"> </action> </package> <!--设备 --> <package name="machineMaintenance" namespace="/views/masterData/producingMasterData/machineMaintenance" extends="struts-default"> <action name="machineAction" class="machineMaintenance"> </action> </package> <!--设备 状态--> <package name="machineStatusMaintenance" namespace="/views/masterData/producingMasterData/machineStatusMaintenance" extends="struts-default"> <action name="machineStatusAction" class="machineStatusMaintenance"> </action> </package> <!--资源 --> <package name="resourceMaintenance" namespace="/views/masterData/producingMasterData/resourcetMaintenance" extends="struts-default"> <action name="resourceAction" class="resourcetMaintenance"> </action> </package> <!--公共列表 --> <package name="masterDataPublicList" namespace="/views/masterData/producingMasterData/publicList" extends="struts-default"> <action name="masterDataPublicListAction" class="masterDataPublicList"> </action> </package> <!--公共模块 --> <package name="masterDataPublicModel" namespace="/views/masterData/public/publicFragment" extends="struts-default"> <action name="masterDataPublicModelAction" class="masterDataPublicModel"> </action> </package> <!--ecn --> <package name="ecnMaintenance" namespace="/views/masterData/public/publicFragment/ecnMaintenance" extends="struts-default"> <action name="ecnAction" class="ecnMaintenance"> </action> </package> <!--自定义字段--> <package name="customDataMaintenance" namespace="/views/masterData/public/publicFragment/customDataInsMaintenance" extends="struts-default"> <action name="customDataInsAction" class="customDataInsMaintenance"> </action> <action name="customDataAction" class="customDataMaintenance"> </action> </package> <!--私有系统规则设定--> <package name="sysRuleOverrideMaintenance" namespace="/views/masterData/public/publicFragment/sysRuleOverrideMaintenance" extends="struts-default"> <action name="sysRuleOverrideAction" class="sysRuleOverrideMaintenance"> </action> </package> <!-- 物料清单 --> <package name="bomMaintenance" namespace="/views/masterData/producingMasterData/bomMaintenance" extends="struts-default"> <action name="bomMaintenanceAction" class="bomMaintenance"> </action> </package> <!-- 工单 --> <package name="shopOrderMaintenance" namespace="/views/masterData/shopOrder/shopOrderMaintenance" extends="struts-default"> <action name="shopOrderMaintenanceAction" class="shopOrderMaintenance"> </action> </package> <!--工单与物料需求 --> <package name="shopOrderMrpMaintenance" namespace="/views/masterData/shopOrder/shopOrderMrpMaintenance" extends="struts-default"> <action name="shopOrderMrpMaintenanceAction" class="shopOrderMrpMaintenance"> </action> </package> <!--数据收集组--> <package name="dcGroupMaintenance" namespace="/views/masterData/parameter/dcGroupMaintenance" extends="struts-default"> <action name="dcGroupAction" class="dcGroupMaintenance"> </action> </package> <package name="listMaintenance" namespace="/views/masterData/list/listMaintenance" extends="struts-default"> <!-- 列表设置 --> <action name="listMaintenance" class="listMaintenance" /> <!-- 列表维护--> <action name="listConfigMaintenance" class="listConfigMaintenance" method="initListConfigLoad"> <result name="success">/views/masterData/list/listConfigMaintenance/index.jsp</result> </action> </package> <!-- 库存调整 --> <package name="storageAdjustMaintenance" namespace="/views/wm/storage/storageAdjust" extends="struts-default"> <action name="storageAdjustAction" class="storageAdjustMaintenance"> </action> </package> <!--系统维护 --> <package name="systemMaintenance" namespace="/views/masterData/systemRule" extends="struts-default"> <action name="systemMaintenance" class="systemMaintenance"> <result name="success">/views/masterData/systemRule/systemRuleDetial.jsp</result> <result name="doSuccess">/views/masterData/systemRule/systemRuleFragment.jsp</result> <result name="saveSuccess">/views/masterData/systemRule/index.jsp</result> </action> </package> <!--SITE维护 --> <package name="siteMaintenance" namespace="/views/system/site/siteMaintenance" extends="struts-default"> <action name="siteMaintenanceAction" class="siteMaintenance"></action> </package> <!--NEXT_NUMBER 维护 --> <package name="nextNumberMaintenance" namespace="/views/masterData/nextNumber/nextNumberMaintenance" extends="struts-default"> <action name="nextNumberMaintenanceAction" class="nextNumberMaintenance"></action> </package> <!--DISPOSITION 维护 --> <package name="dispositionMaintenance" namespace="/views/masterData/dispositionFunction/dispositionFunctionMaintenance" extends="struts-default"> <action name="dispositionGroupMaintenanceAction" class="dispositionGroupMaintenance"></action> </package> <!--MASKGROUP 维护 --> <package name="maskMaintenance" namespace="/views/masterData/maskGroup/maskGroupMaintenance" extends="struts-default"> <action name="maskGroupMaintenanceAction" class="maskGroupMaintenance"></action> </package> <!--PageUtilsAction 文件上传 --> <package name="pageUtilsAction" namespace="/views/system/utils" extends="struts-default"> <action name="pageUtilsAction" class="pageUtilsAction"></action> </package> <package name="uploadingAction" namespace="/views/system/fileImport" extends="struts-default"> <action name="uploadingAction" class="uploadingAction"></action> </package> <!-- 退货验证车间工单 --> <package name="rmaNumber" namespace="/views/masterData/rmaShopOrderReceipt" extends="struts-default"> <action name="rmaNumberAction" class="rmaNumber"> <result name="SUCCESS">/views/masterData/rmaShopOrderReceipt/shopOrder.jsp</result> </action> </package> </struts>