parent
5ec6d127d2
commit
2bbc759c3f
Binary file not shown.
@ -0,0 +1,79 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
||||
http://www.springframework.org/schema/beans/spring-beans.xsd">
|
||||
|
||||
<!-- 1. 用户管理 -->
|
||||
<bean id="user" class="com.lab.manager.entity.User">
|
||||
<property name="userId" value="U001"/>
|
||||
<property name="userName" value="张三"/>
|
||||
<property name="userPwd" value="123456"/>
|
||||
<property name="userRole" value="教师"/>
|
||||
<property name="userPhone" value="13800138000"/>
|
||||
</bean>
|
||||
|
||||
<!-- 2. 实验室管理 -->
|
||||
<bean id="lab" class="com.lab.manager.entity.Lab">
|
||||
<property name="labId" value="L001"/>
|
||||
<property name="labName" value="化学实验室"/>
|
||||
<property name="labLocation" value="实验楼302"/>
|
||||
<property name="labStatus" value="正常"/>
|
||||
</bean>
|
||||
|
||||
<!-- 3. 材料类型管理 -->
|
||||
<bean id="materialType" class="com.lab.manager.entity.MaterialType">
|
||||
<property name="typeId" value="T001"/>
|
||||
<property name="typeName" value="化学试剂"/>
|
||||
<property name="typeDesc" value="液体实验试剂"/>
|
||||
</bean>
|
||||
|
||||
<!-- 4. 材料管理(关联:材料类型 + 实验室) -->
|
||||
<bean id="material" class="com.lab.manager.entity.Material">
|
||||
<property name="materialId" value="M001"/>
|
||||
<property name="materialName" value="无水乙醇"/>
|
||||
<property name="materialSpec" value="500ml"/>
|
||||
<property name="materialStock" value="100"/>
|
||||
<property name="materialType" ref="materialType"/>
|
||||
<property name="materialLab" ref="lab"/>
|
||||
</bean>
|
||||
|
||||
<!-- 5. 材料维护管理(关联:材料) -->
|
||||
<bean id="maintain" class="com.lab.manager.entity.Maintain">
|
||||
<property name="maintainId" value="Mt001"/>
|
||||
<property name="maintainTime" value="2025-06-01"/>
|
||||
<property name="maintainContent" value="更换标签"/>
|
||||
<property name="maintainPerson" value="管理员"/>
|
||||
<property name="material" ref="material"/>
|
||||
</bean>
|
||||
|
||||
<!-- 6. 材料报废管理(关联:材料) -->
|
||||
<bean id="scrap" class="com.lab.manager.entity.Scrap">
|
||||
<property name="scrapId" value="Sp001"/>
|
||||
<property name="scrapTime" value="2025-06-02"/>
|
||||
<property name="scrapReason" value="过期失效"/>
|
||||
<property name="scrapCount" value="5"/>
|
||||
<property name="material" ref="material"/>
|
||||
</bean>
|
||||
|
||||
<!-- 7. 预约管理(关联:用户 + 实验室) -->
|
||||
<bean id="reserve" class="com.lab.manager.entity.Reserve">
|
||||
<property name="reserveId" value="R001"/>
|
||||
<property name="reserveTime" value="2025-06-03"/>
|
||||
<property name="reserveUse" value="教学实验"/>
|
||||
<property name="reserveStatus" value="已通过"/>
|
||||
<property name="user" ref="user"/>
|
||||
<property name="lab" ref="lab"/>
|
||||
</bean>
|
||||
|
||||
<!-- 8. 材料出入库管理(关联:材料) -->
|
||||
<bean id="stock" class="com.lab.manager.entity.Stock">
|
||||
<property name="stockId" value="St001"/>
|
||||
<property name="stockType" value="入库"/>
|
||||
<property name="stockTime" value="2025-06-01"/>
|
||||
<property name="stockCount" value="50"/>
|
||||
<property name="stockPerson" value="管理员"/>
|
||||
<property name="material" ref="material"/>
|
||||
</bean>
|
||||
|
||||
</beans>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue