Ver Fonte

增加,乐器和配件配置文件

周箭河 há 5 anos atrás
pai
commit
04fd67666e

+ 31 - 6
src/main/java/com/ym/mec/collectfee/controller/YqPayController.java

@@ -1,20 +1,22 @@
 package com.ym.mec.collectfee.controller;
 
 import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONObject;
 import com.ym.mec.collectfee.common.web.BaseController;
 import com.ym.mec.collectfee.entity.Account;
+import com.ym.mec.collectfee.entity.CourseGroupInfo;
+import com.ym.mec.collectfee.entity.Instrument;
 import com.ym.mec.collectfee.entity.Order;
-import com.ym.mec.collectfee.service.AccountService;
-import com.ym.mec.collectfee.service.OrderService;
-import com.ym.mec.collectfee.service.YqPayService;
-import com.ym.mec.collectfee.service.YqQueryService;
+import com.ym.mec.collectfee.service.*;
 import com.ym.mec.collectfee.utils.GenerateNum;
 import com.ym.mec.collectfee.utils.yqpay.*;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import lombok.extern.slf4j.Slf4j;
+import org.apache.commons.io.IOUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.context.annotation.Lazy;
+import org.springframework.core.io.ClassPathResource;
 import org.springframework.scheduling.annotation.Scheduled;
 import org.springframework.transaction.annotation.Transactional;
 import org.springframework.validation.annotation.Validated;
@@ -24,6 +26,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 import springfox.documentation.annotations.ApiIgnore;
 
+import java.io.InputStreamReader;
 import java.math.BigDecimal;
 import java.util.*;
 
@@ -43,6 +46,8 @@ public class YqPayController extends BaseController {
     private OrderService orderService;
     @Autowired
     private AccountService accountService;
+    @Autowired
+    private CourseGroupInfoService CourseGroupInfoService;
 
 
     /**
@@ -56,6 +61,16 @@ public class YqPayController extends BaseController {
     @Transactional
     public Map toPay(@ModelAttribute @Validated Order order) throws Exception {
 
+        //2、判断已报名人数
+        CourseGroupInfo courseGroupInfo = CourseGroupInfoService.get(order.getCourse_id());
+
+//        ClassPathResource classPathResource = new ClassPathResource("instruments.json");
+//
+//        String str = IOUtils.toString(new InputStreamReader(classPathResource.getInputStream(),"UTF-8"));
+//        Instrument instrument = JSONObject.parseObject(str, Instrument.class);
+//
+//        System.out.println(instrument.getInstruments().get("flute").get("config"));
+
         String notifyUrl = "http://47.99.212.176:9000/yqpay/notify"; //异步通知地址
         String returnUrl = "http://dev.dayaedu.com";//支付后返回页面
         String payUrl = "https://qyfapi.95epay.com/api/api/hPay/toPayHtml";//支付跳转页
@@ -66,8 +81,6 @@ public class YqPayController extends BaseController {
         order.setCreateTime(new Date()); //订单提交时间
         order.setStatus(1); //订单状态
 
-        orderService.insert(order);
-
         //获取支付成功跟支付中的订单数
         int branchId = order.getBranchId();
         int payOrderNums = orderService.getPayOrderNums();
@@ -79,6 +92,8 @@ public class YqPayController extends BaseController {
         //获取分佣账户
         Account account = accountService.getAccountByBranchId(branchId);
         String routingMerNo = account.getSellerNo();
+        BigDecimal HasRouting = account.getHasRouting().add(order.getAmount());
+        account.setHasRouting(HasRouting);
 
         Map<String, Object> routingList = new LinkedHashMap<String, Object>();
         routingList.put("routingMerNo", routingMerNo);//分佣账户
@@ -86,6 +101,16 @@ public class YqPayController extends BaseController {
         List<Map> tempRoutingList = new ArrayList();
         tempRoutingList.add(routingList);
 
+
+        //1、插入订单
+        orderService.insert(order);
+        //2、修改已报名人数
+        courseGroupInfo.setRegNum(courseGroupInfo.getRegNum()+1);
+        CourseGroupInfoService.upByIdAndVersion(courseGroupInfo);
+        //3、修改分佣账户已收金额
+        accountService.upByIdAndVersion(account);
+
+
         /*订单信息*/
         String orderBody = "大雅乐盟培训课程";
         /*订单标题*/

+ 5 - 2
src/main/java/com/ym/mec/collectfee/dao/AccountDao.java

@@ -3,11 +3,14 @@ package com.ym.mec.collectfee.dao;
 import com.ym.mec.collectfee.common.dao.BaseDAO;
 import com.ym.mec.collectfee.entity.Account;
 import org.apache.ibatis.annotations.Param;
+import org.springframework.context.annotation.Bean;
 import org.springframework.stereotype.Component;
 
 @Component
 public interface AccountDao extends BaseDAO<Integer, Account> {
 
-    Account getAccountByBranchId(@Param("branchId") int branchId);
-	
+    Account getAccountByBranchId(@Param("branchId") Integer branchId);
+
+    int upByIdAndVersion(Account account);
+
 }

+ 2 - 0
src/main/java/com/ym/mec/collectfee/dao/CourseGroupInfoDao.java

@@ -15,4 +15,6 @@ public interface CourseGroupInfoDao extends BaseDAO<Integer, CourseGroupInfo> {
      * @return
      */
 	List<CourseGroupInfo> getCourses(Integer classId);
+
+    int upByIdAndVersion(CourseGroupInfo courseGroupInfo);
 }

+ 11 - 7
src/main/java/com/ym/mec/collectfee/entity/Account.java

@@ -2,6 +2,8 @@ package com.ym.mec.collectfee.entity;
 
 import org.apache.commons.lang3.builder.ToStringBuilder;
 
+import java.math.BigDecimal;
+
 /**
  * 对应数据库表(account):
  */
@@ -17,11 +19,13 @@ public class Account {
 	private String sellerNo;
 	
 	/** 最大收款金额 */
-	private java.math.BigDecimal maxRouting;
+	private BigDecimal maxRouting;
 	
 	/** 已收金额 */
-	private java.math.BigDecimal hasRouting;
-	
+	private BigDecimal hasRouting;
+	/** 版本 */
+	private Integer version;
+
 	public void setId(Integer id){
 		this.id = id;
 	}
@@ -46,19 +50,19 @@ public class Account {
 		return this.sellerNo;
 	}
 			
-	public void setMaxRouting(java.math.BigDecimal maxRouting){
+	public void setMaxRouting(BigDecimal maxRouting){
 		this.maxRouting = maxRouting;
 	}
 	
-	public java.math.BigDecimal getMaxRouting(){
+	public BigDecimal getMaxRouting(){
 		return this.maxRouting;
 	}
 			
-	public void setHasRouting(java.math.BigDecimal hasRouting){
+	public void setHasRouting(BigDecimal hasRouting){
 		this.hasRouting = hasRouting;
 	}
 	
-	public java.math.BigDecimal getHasRouting(){
+	public BigDecimal getHasRouting(){
 		return this.hasRouting;
 	}
 			

+ 9 - 0
src/main/java/com/ym/mec/collectfee/entity/CourseGroupInfo.java

@@ -39,6 +39,8 @@ public class CourseGroupInfo {
 	/**  */
 	private java.util.Date updateTime;
 
+	private Integer version;
+
 	public Integer getClassId() {
 		return classId;
 	}
@@ -132,4 +134,11 @@ public class CourseGroupInfo {
 		return ToStringBuilder.reflectionToString(this);
 	}
 
+	public Integer getVersion() {
+		return version;
+	}
+
+	public void setVersion(Integer version) {
+		this.version = version;
+	}
 }

+ 10 - 0
src/main/java/com/ym/mec/collectfee/entity/Instrument.java

@@ -0,0 +1,10 @@
+package com.ym.mec.collectfee.entity;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+
+public class Instrument {
+    private Map<String, Map<String,Map>> instruments;
+
+}

+ 20 - 8
src/main/java/com/ym/mec/collectfee/entity/Order.java

@@ -102,17 +102,21 @@ public class Order {
 	private String course;
 
 	/** 乐器 */
-	@ApiModelProperty(name = "musicalInstruments", value = "乐器-价格(以json内容)")
-	private String musicalInstruments;
+	@ApiModelProperty(name = "instrument", value = "乐器")
+	private String instrument;
 
 	/** 辅件 */
-	@ApiModelProperty(name = "adjunct", value = "辅件-价格(以json内容)")
+	@ApiModelProperty(name = "adjunct", value = "辅件")
 	private String adjunct;
 
 	/** 其他 */
-	@ApiModelProperty(name = "other", value = "其他-价格(以json内容)")
+	@ApiModelProperty(name = "other", value = "其他")
 	private String other;
 
+	/** 课程组id */
+	@ApiModelProperty(name = "course_id", value = "课程组id")
+	private Integer course_id;
+
 
 	//学费金额(元)。本次缴纳的学费金额。
 	private BigDecimal tuiFee;
@@ -327,12 +331,12 @@ public class Order {
 		this.course = course;
 	}
 
-	public String getMusicalInstruments() {
-		return musicalInstruments;
+	public String getInstrument() {
+		return instrument;
 	}
 
-	public void setMusicalInstruments(String musicalInstruments) {
-		this.musicalInstruments = musicalInstruments;
+	public void setInstrument(String instrument) {
+		this.instrument = instrument;
 	}
 
 	public String getAdjunct() {
@@ -363,4 +367,12 @@ public class Order {
 	public void setBranchId(Integer branchId) {
 		this.branchId = branchId;
 	}
+
+	public Integer getCourse_id() {
+		return course_id;
+	}
+
+	public void setCourse_id(Integer course_id) {
+		this.course_id = course_id;
+	}
 }

+ 9 - 1
src/main/java/com/ym/mec/collectfee/service/AccountService.java

@@ -11,5 +11,13 @@ public interface AccountService extends BaseService<Integer, Account> {
      * @param branchId 分部id
      * @return
      */
-    Account getAccountByBranchId(int branchId);
+    Account getAccountByBranchId(Integer branchId);
+
+    /**
+     *  根据id和version更新已收款
+     * @param account
+     * @return
+     */
+    int upByIdAndVersion(Account account);
+
 }

+ 7 - 0
src/main/java/com/ym/mec/collectfee/service/CourseGroupInfoService.java

@@ -21,4 +21,11 @@ public interface CourseGroupInfoService extends BaseService<Integer, CourseGroup
      */
     List<CourseGroupInfo> getCourses(Integer classId);
 
+    /**
+     *  根据id和version更新已招生人数
+     * @param courseGroupInfo
+     * @return
+     */
+    int upByIdAndVersion(CourseGroupInfo courseGroupInfo);
+
 }

+ 19 - 12
src/main/java/com/ym/mec/collectfee/service/impl/AccountServiceImpl.java

@@ -11,16 +11,23 @@ import org.springframework.stereotype.Service;
 @Service
 public class AccountServiceImpl extends BaseServiceImpl<Integer, Account> implements AccountService {
 
-	@Autowired
-	AccountDao accountDao;
-
-	@Override
-	public BaseDAO<Integer, Account> getDAO() {
-		return accountDao;
-	}
-
-	public Account getAccountByBranchId(int branchId){
-		return accountDao.getAccountByBranchId(branchId);
-	}
-	
+    @Autowired
+    AccountDao accountDao;
+
+    @Override
+    public BaseDAO<Integer, Account> getDAO() {
+        return accountDao;
+    }
+
+    @Override
+    public Account getAccountByBranchId(Integer branchId) {
+        return accountDao.getAccountByBranchId(branchId);
+    }
+
+    @Override
+    public int upByIdAndVersion(Account account) {
+        return accountDao.upByIdAndVersion(account);
+    }
+
+
 }

+ 5 - 0
src/main/java/com/ym/mec/collectfee/service/impl/CourseGroupInfoServiceImpl.java

@@ -54,4 +54,9 @@ public class CourseGroupInfoServiceImpl extends BaseServiceImpl<Integer, CourseG
 		return courseGroupInfoDao.getCourses(classId);
 	}
 
+	@Override
+	public int upByIdAndVersion(CourseGroupInfo courseGroupInfo) {
+		return courseGroupInfoDao.upByIdAndVersion(courseGroupInfo);
+	}
+
 }

+ 17 - 11
src/main/resources/config/mybatis/AccountMapper.xml

@@ -12,43 +12,44 @@
 		<result column="seller_no" property="sellerNo" />
 		<result column="max_routing" property="maxRouting" />
 		<result column="has_routing" property="hasRouting" />
+		<result column="version" property="version" />
 	</resultMap>
 	
 	<!-- 根据主键查询一条记录 -->
 	<select id="get" resultMap="Account" >
-		SELECT * FROM `account` WHERE id = #{id} 
+		SELECT * FROM `account` WHERE id = #{id}
 	</select>
-	
+
 	<!-- 全查询 -->
 	<select id="findAll" resultMap="Account">
 		SELECT * FROM `account` ORDER BY id
 	</select>
-	
+
 	<!-- 向数据库增加一条记录 -->
 	<insert id="insert" parameterType="com.ym.mec.collectfee.entity.Account" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
 		<!--
-		<selectKey resultClass="int" keyProperty="id" > 
-		SELECT SEQ_WSDEFINITION_ID.nextval AS ID FROM DUAL 
+		<selectKey resultClass="int" keyProperty="id" >
+		SELECT SEQ_WSDEFINITION_ID.nextval AS ID FROM DUAL
 		</selectKey>
 		-->
 		INSERT INTO `account` (id,branch_id,seller_no,max_routing,has_routing) VALUES(#{id},#{branchId},#{sellerNo},#{maxRouting},#{hasRouting})
 	</insert>
-	
+
 	<!-- 根据主键查询一条记录 -->
 	<update id="update" parameterType="com.ym.mec.collectfee.entity.Account">
-		UPDATE `account` SET has_routing = #{hasRouting},seller_no = #{sellerNo},max_routing = #{maxRouting},branch_id = #{branchId},id = #{id} WHERE id = #{id} 
+		UPDATE `account` SET has_routing = #{hasRouting},seller_no = #{sellerNo},max_routing = #{maxRouting},branch_id = #{branchId},id = #{id} WHERE id = #{id}
 	</update>
-	
+
 	<!-- 根据主键删除一条记录 -->
 	<delete id="delete" >
-		DELETE FROM `account` WHERE id = #{id} 
+		DELETE FROM `account` WHERE id = #{id}
 	</delete>
-	
+
 	<!-- 分页查询 -->
 	<select id="queryPage" resultMap="Account" parameterType="map">
 		SELECT * FROM `account` ORDER BY id <include refid="global.limit"/>
 	</select>
-	
+
 	<!-- 查询当前表的总记录数 -->
 	<select id="queryCount" resultType="int">
 		SELECT COUNT(*) FROM `account`
@@ -58,4 +59,9 @@
 	<select id="getAccountByBranchId" resultMap="Account" >
 		SELECT * FROM `account` WHERE branch_id = #{branchId} AND `max_routing` > `has_routing` ORDER BY `id` ASC LIMIT 1
 	</select>
+
+	<!-- 根据id和version更新已收金额 -->
+	<update id="upByIdAndVersion" parameterType="com.ym.mec.collectfee.entity.Account">
+		UPDATE `account` SET `has_routing` = #{hasRouting},`version` = `version`+1 WHERE id = #{id} AND `version`=#{version}
+	</update>
 </mapper>

+ 6 - 0
src/main/resources/config/mybatis/CourseGroupInfoMapper.xml

@@ -18,6 +18,7 @@
 		<result column="fee_amount_" property="feeAmount" />
 		<result column="create_time_" property="createTime" />
 		<result column="update_time_" property="updateTime" />
+		<result column="version" property="version" />
 	</resultMap>
 	
 	<!-- 根据主键查询一条记录 -->
@@ -64,4 +65,9 @@
 		SELECT * FROM course_group_info WHERE sub_id_ IN (SELECT MIN(sub_id_)sub_id_ FROM course_group_info
 		WHERE class_id_ = #{classId} GROUP BY sub_name_)
 	</select>
+
+	<!-- 根据id和version更新实际已招生人数 -->
+	<update id="upByIdAndVersion" parameterType="com.ym.mec.collectfee.entity.Account">
+		UPDATE `course_group_info` SET `reg_num_` = #{regNum},`version` = `version`+1 WHERE `id_` = #{id} AND `version`=#{version}
+	</update>
 </mapper>

+ 366 - 0
src/main/resources/instruments.json

@@ -0,0 +1,366 @@
+{
+  "instruments": {
+    "flute": {
+      "name": "长笛",
+      "config": {
+        "初级配置": {
+          "default": 1,
+          "name": "初级配置",
+          "marketPrice": 3150,
+          "referencePrice": 2680,
+          "checked": true,
+          "texture": "白铜管体"
+        },
+        "初级配置": {
+          "default": 0,
+          "name": "标准配置",
+          "marketPrice": 4500,
+          "referencePrice": 3570,
+          "checked": false,
+          "texture": "进口镍白铜管体、法式键"
+        }
+      },
+      "configuration": "C调 表面镀银厚度:8μm  管材厚度:0.42mm",
+      "auxiliaries": [
+        {
+          "name": "节拍器",
+          "marketPrice": 120,
+          "referencePrice": 95,
+          "checked": false
+        },
+        {
+          "name": "谱架",
+          "marketPrice": 80,
+          "referencePrice": 65,
+          "checked": false
+        },
+        {
+          "name": "乐器维护",
+          "marketPrice": 480,
+          "referencePrice": 300,
+          "checked": false
+        }
+      ]
+    },
+    "clarinet": {
+      "name": "单簧管",
+      "config": [
+        {
+          "default": 1,
+          "name": "初级配置",
+          "marketPrice": 3280,
+          "referencePrice": 2780,
+          "checked": true,
+          "texture": "胶木"
+        },
+        {
+          "default": 0,
+          "name": "标准配置",
+          "marketPrice": 4580,
+          "referencePrice": 3650,
+          "checked": false,
+          "texture": "聚碳酸酯、蓝钢针弹簧线"
+        }
+      ],
+      "configuration": "降B调、八字螺丝固定键柱 按键铍铜、镍白铜 喇叭口直径:8cm",
+      "auxiliaries": [
+        {
+          "name": "节拍器",
+          "marketPrice": 120,
+          "checked": false,
+          "referencePrice": 95
+        },
+        {
+          "name": "谱架",
+          "marketPrice": 80,
+          "checked": false,
+          "referencePrice": 65
+        },
+        {
+          "name": "软木膏",
+          "marketPrice": 30,
+          "checked": false,
+          "referencePrice": 25
+        },
+        {
+          "name": "哨片",
+          "marketPrice": 150,
+          "checked": false,
+          "referencePrice": 120
+        },
+        {
+          "name": "乐器维护",
+          "marketPrice": 480,
+          "checked": false,
+          "referencePrice": 300
+        }
+      ]
+    },
+    "saxophone": {
+      "name": "萨克斯管",
+      "config": [
+        {
+          "default": 1,
+          "name": "初级配置",
+          "marketPrice": 4200,
+          "referencePrice": 3550,
+          "checked": true,
+          "texture": "/"
+        },
+        {
+          "default": 0,
+          "name": "标准配置",
+          "marketPrice": 6080,
+          "referencePrice": 4500,
+          "checked": false,
+          "texture": "68铜、实心保护盖、蓝钢针弹簧线"
+        }
+      ],
+      "configuration": "降E调、黄铜材质、表面电泳处理 喇叭口直径:11.8cm",
+      "auxiliaries": [
+        {
+          "name": "节拍器",
+          "marketPrice": 120,
+          "checked": false,
+          "referencePrice": 95
+        },
+        {
+          "name": "谱架",
+          "marketPrice": 80,
+          "checked": false,
+          "referencePrice": 65
+        },
+        {
+          "name": "软木膏",
+          "marketPrice": 30,
+          "checked": false,
+          "referencePrice": 25
+        },
+        {
+          "name": "哨片",
+          "marketPrice": 150,
+          "checked": false,
+          "referencePrice": 120
+        },
+        {
+          "name": "乐器维护",
+          "marketPrice": 480,
+          "checked": false,
+          "referencePrice": 300
+        }
+      ]
+    },
+    "trumpet": {
+      "name": "小号",
+      "config": [
+        {
+          "default": 1,
+          "name": "标准配置",
+          "marketPrice": 4800,
+          "referencePrice": 3650,
+          "checked": true,
+          "texture": "白铜变音管磷铜发音管"
+        }
+      ],
+      "configuration": "降B调 特殊结构:可调试调音管控制环 喇叭口直径:123mm 内管:11.66mm",
+      "auxiliaries": [
+        {
+          "name": "节拍器",
+          "marketPrice": 120,
+          "checked": false,
+          "referencePrice": 95
+        },
+        {
+          "name": "谱架",
+          "marketPrice": 80,
+          "checked": false,
+          "referencePrice": 65
+        },
+        {
+          "name": "活塞油",
+          "marketPrice": 30,
+          "checked": false,
+          "referencePrice": 25
+        },
+        {
+          "name": "调音管油",
+          "marketPrice": 30,
+          "checked": false,
+          "referencePrice": 25
+        },
+        {
+          "name": "乐器维护",
+          "marketPrice": 480,
+          "checked": false,
+          "referencePrice": 300
+        }
+      ]
+    },
+    "trombone": {
+      "name": "长号",
+      "config": [
+        {
+          "default": 1,
+          "name": "标准配置",
+          "marketPrice": 5550,
+          "referencePrice": 3870,
+          "checked": true,
+          "texture": "白铜内外伸缩管"
+        }
+      ],
+      "configuration": "降B/F调、喇叭口:215mm、内管:13.9mm管:13.9mm",
+      "auxiliaries": [
+        {
+          "name": "节拍器",
+          "marketPrice": 120,
+          "checked": false,
+          "referencePrice": 95
+        },
+        {
+          "name": "谱架",
+          "marketPrice": 80,
+          "checked": false,
+          "referencePrice": 65
+        },
+        {
+          "name": "活塞油",
+          "marketPrice": 30,
+          "checked": false,
+          "referencePrice": 25
+        },
+        {
+          "name": "拉杆油",
+          "marketPrice": 30,
+          "checked": false,
+          "referencePrice": 25
+        },
+        {
+          "name": "乐器维护",
+          "marketPrice": 480,
+          "checked": false,
+          "referencePrice": 300
+        }
+      ]
+    },
+    "horn": {
+      "name": "圆号",
+      "config": [
+        {
+          "default": 1,
+          "name": "标准配置",
+          "marketPrice": 5500,
+          "referencePrice": 3910,
+          "checked": true,
+          "texture": "白铜变音管磷铜发音管"
+        }
+      ],
+      "configuration": "降B/F调、结构:双排管 喇叭口直径:306mm 内管:11.5mm",
+      "auxiliaries": [
+        {
+          "name": "节拍器",
+          "marketPrice": 120,
+          "checked": false,
+          "referencePrice": 95
+        },
+        {
+          "name": "谱架",
+          "marketPrice": 80,
+          "checked": false,
+          "referencePrice": 65
+        },
+        {
+          "name": "活塞油",
+          "marketPrice": 30,
+          "checked": false,
+          "referencePrice": 25
+        },
+        {
+          "name": "调音管油",
+          "marketPrice": 30,
+          "checked": false,
+          "referencePrice": 25
+        },
+        {
+          "name": "乐器维护",
+          "marketPrice": 480,
+          "checked": false,
+          "referencePrice": 300
+        }
+      ]
+    },
+    "upperBass": {
+      "name": "上低音号",
+      "config": [
+        {
+          "default": 1,
+          "name": "标准配置",
+          "marketPrice": 5800,
+          "referencePrice": 3980,
+          "checked": true,
+          "texture": "白铜变音管磷铜发音管"
+        }
+      ],
+      "configuration": "降B调、结构:三立键 喇叭口直径:278mm、内管:13.4mm",
+      "auxiliaries": [
+        {
+          "name": "节拍器",
+          "marketPrice": 120,
+          "checked": false,
+          "referencePrice": 95
+        },
+        {
+          "name": "谱架",
+          "marketPrice": 80,
+          "checked": false,
+          "referencePrice": 65
+        },
+        {
+          "name": "活塞油",
+          "marketPrice": 30,
+          "checked": false,
+          "referencePrice": 25
+        },
+        {
+          "name": "调音管油",
+          "marketPrice": 30,
+          "checked": false,
+          "referencePrice": 25
+        },
+        {
+          "name": "乐器维护",
+          "marketPrice": 480,
+          "checked": false,
+          "referencePrice": 300
+        }
+      ]
+    },
+    "snareDrum": {
+      "name": "小军鼓",
+      "config": [
+        {
+          "default": 1,
+          "name": "标准配置",
+          "marketPrice": 3700,
+          "referencePrice": 3190,
+          "checked": true,
+          "texture": ""
+        }
+      ],
+      "configuration": "珍珠镍小军鼓,桦木鼓腔,高碳钢纱带",
+      "auxiliaries": {
+        "1": {
+          "name": "节拍器",
+          "marketPrice": 120,
+          "checked": false,
+          "referencePrice": 95
+        },
+        "2": {
+          "name": "谱架",
+          "marketPrice": 80,
+          "checked": false,
+          "referencePrice": 65
+        }
+      }
+    }
+  }
+}