5 files modified
	
		
		1 files added
	
	
 
	
	
	
	
	
	
	
	
 |  |  | 
 |  |  | import com.matrix.system.hive.pojo.ShoppingCarItem; | 
 |  |  | import com.matrix.system.hive.pojo.ShoppingCarItemsVo; | 
 |  |  | import com.matrix.system.hive.service.*; | 
 |  |  | import com.matrix.system.shopXcx.mqTask.MQTaskRouting; | 
 |  |  | import com.matrix.system.wechart.templateMsg.UniformMsgParam; | 
 |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
 |  |  | import org.springframework.beans.factory.annotation.Value; | 
 |  |  | import org.springframework.stereotype.Controller; | 
 |  |  | 
 |  |  |         orderService.updateReceiptMoney(sysOrder); | 
 |  |  |  | 
 |  |  |         //发送微信公众号提醒 | 
 |  |  | //        UniformMsgParam uniformMsgParam=new UniformMsgParam(user.getCompanyId(),UniformMsgParam.GZH_GMCG); | 
 |  |  | //        uniformMsgParam.put("orderId",sysOrder.getId()); | 
 |  |  | //        rabiitMqTemplate.sendMsg(MQTaskRouting.SEND_UNIFORM_TEMPLATE_MSG+evn,uniformMsgParam.toJSONString()); | 
 |  |  |         UniformMsgParam uniformMsgParam=new UniformMsgParam(user.getCompanyId(),UniformMsgParam.GZH_GMCG); | 
 |  |  |         uniformMsgParam.put("orderId",sysOrder.getId()); | 
 |  |  |         rabiitMqTemplate.sendMsg(MQTaskRouting.SEND_UNIFORM_TEMPLATE_MSG+evn,uniformMsgParam.toJSONString()); | 
 |  |  |  | 
 |  |  |  | 
 |  |  |         //处理用户购买的产品 | 
 
 |  |  | 
 |  |  |     /** | 
 |  |  |      * 现金单次,购买项目的业绩 | 
 |  |  |      */ | 
 |  |  |     @Deprecated | 
 |  |  |     private Double  projCash; | 
 |  |  |              | 
 |  |  |      | 
 |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 业绩种类 1-现金业绩 2-划扣业绩 | 
 |  |  |      * 岗位业绩 | 
 |  |  |      */ | 
 |  |  |     private String  t3; | 
 |  |  |              | 
 |  |  | 	 | 
 |  |  |     /** | 
 |  |  |      * 业绩类型 | 
 |  |  |      */ | 
 |  |  |     private String  t4; | 
 |  |  |              | 
 |  |  |      | 
 |  |  | 
 |  |  |     /** | 
 |  |  |      * 分配的业绩金额 | 
 |  |  |      */ | 
 |  |  |     @Extend | 
 |  |  |     private Double achieveMoney; | 
 |  |  |  | 
 |  |  |     private String goodsNo; | 
 
 |  |  | 
 |  |  |         achieveNew.setShoppingGoodsId(orderItem.getGoodsId()); | 
 |  |  |         // 是否赠送 | 
 |  |  |         achieveNew.setT2(orderItem.getIsFree()); | 
 |  |  |         // 根据商品类型设置业绩类型 | 
 |  |  |  | 
 |  |  |         if (Dictionary.ACHIEVE_TYPE_CASH.equals(achieveNew.getT3())){ | 
 |  |  |             achieveNew.setCardCash(Double.parseDouble(achieveNew.getT1())); | 
 |  |  |         } else { | 
 |  |  |             // 设置划扣金额 | 
 |  |  |             achieveNew.setConsume(Double.parseDouble(achieveNew.getT1())); | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @Override | 
 
| New file | 
 |  |  | 
 |  |  | ALTER TABLE `achieve_new` | 
 |  |  | DROP COLUMN `achieveMoney`, | 
 |  |  | ADD COLUMN `achieveMoney` double(10, 0) NULL AFTER `company_id`; | 
 
 |  |  | 
 |  |  |         <result property="remark" column="remark" /> | 
 |  |  |         <result property="orderType" column="order_type" /> | 
 |  |  |         <result property="projPercentage" column="proj_percentage" /> | 
 |  |  |         <result property="achieveMoney" column="achieveMoney" /> | 
 |  |  |         <result property="t1" column="t1" /> | 
 |  |  |         <result property="t2" column="t2" /> | 
 |  |  |         <result property="t3" column="t3" /> | 
 |  |  | 
 |  |  |         a.consume, | 
 |  |  |         a.his_consume, | 
 |  |  |         a.free_consume, | 
 |  |  |         a.achieveMoney, | 
 |  |  |         f.su_name meiliao, | 
 |  |  |         g.su_name guwen, | 
 |  |  |         a.proj_percentage, | 
 |  |  | 
 |  |  |         <result property="remark" column="remark" /> | 
 |  |  |         <result property="orderType" column="order_type" /> | 
 |  |  |         <result property="projPercentage" column="proj_percentage" /> | 
 |  |  |         <result property="achieveMoney" column="achieveMoney" /> | 
 |  |  |         <result property="t1" column="t1" /> | 
 |  |  |         <result property="t2" column="t2" /> | 
 |  |  |         <result property="t3" column="t3" /> | 
 |  |  | 
 |  |  |         remark, | 
 |  |  |         order_type, | 
 |  |  |         proj_percentage, | 
 |  |  |         achieveMoney, | 
 |  |  |         t1, | 
 |  |  |         t2, | 
 |  |  |         t3, | 
 |  |  | 
 |  |  |         #{item.remark}, | 
 |  |  |         #{item.orderType}, | 
 |  |  |         #{item.projPercentage}, | 
 |  |  |         #{item.achieveMoney}, | 
 |  |  |         #{item.t1}, | 
 |  |  |         #{item.t2}, | 
 |  |  |         #{item.t3}, | 
 |  |  | 
 |  |  |             <if test="_parameter.containsKey('projPercentage')"> | 
 |  |  |                 proj_percentage = #{projPercentage}, | 
 |  |  |             </if> | 
 |  |  |             <if test="_parameter.containsKey('achieveMoney')"> | 
 |  |  |                 achieveMoney = #{achieveMoney}, | 
 |  |  |             </if> | 
 |  |  |             <if test="_parameter.containsKey('t1')"> | 
 |  |  |                 t1 = #{t1}, | 
 |  |  |             </if> | 
 |  |  | 
 |  |  |             <if test="record.projPercentage != null "> | 
 |  |  |                 proj_percentage = #{record.projPercentage}, | 
 |  |  |             </if> | 
 |  |  |             <if test="record.achieveMoney != null "> | 
 |  |  |                 achieveMoney = #{record.achieveMoney}, | 
 |  |  |             </if> | 
 |  |  |             <if test="record.t1 != null and record.t1 != '' "> | 
 |  |  |                 t1 = #{record.t1}, | 
 |  |  |             </if> | 
 
 |  |  | 
 |  |  |                                 let achieveNew = { | 
 |  |  |                                     uuid:item.uuid, | 
 |  |  |                                     beaultId: achieve.saleId, | 
 |  |  |                                     t1: achieve.achieveMoney, | 
 |  |  |                                     t3: achieve.t3, | 
 |  |  |                                     projPercentage: achieve.commission, | 
 |  |  |                                 }; | 
 |  |  |  |