| | |
| | | * 此方法只支持一二三级都只是一个的 |
| | | * */ |
| | | public static String getStr(List<AppealTypeVo> appealTypeVoList) { |
| | | |
| | | //父级标识 |
| | | String parenId = ""; |
| | | //二级名称拼接 |
| | |
| | | parentMap.put(appealTypeVo.getParentId(),appealTypeVo); |
| | | } |
| | | } |
| | | |
| | | //二级 |
| | | AppealTypeVo secondVo = parentMap.get(parenId); |
| | | if (secondVo != null){ |
| | |
| | | //三级 |
| | | AppealTypeVo thirdVo = parentMap.get(secondVo.getId()); |
| | | if (thirdVo != null){ |
| | | if (towName.length() > 0){ |
| | | towName.append("/").append(thirdVo.getName()); |
| | | } |
| | | if (threeName.length() > 0){ |
| | | threeName.append("/").append(thirdVo.getName()); |
| | | } |
| | |
| | | <!-- 整个实体类修改,表字段=实体类字段--> |
| | | <sql id="Update_Column_All"> |
| | | <trim prefixOverrides=","> |
| | | ,orderNo = #{orderNo},performId = #{performId},orderId = #{orderId},commonItemId = #{commonItemId},remarks = #{remarks},userCardId = #{userCardId},commonId = #{commonId},platformType = #{platformType},platformTypeId = #{platformTypeId},platformTypeName = #{platformTypeName},type = #{type},goodsNo = #{goodsNo},goodsName = #{goodsName},goodsImage = #{goodsImage},specs = #{specs},single = #{single},isLimitBug = #{isLimitBug},bodyPartsId = #{bodyPartsId},bodyPartsName = #{bodyPartsName},specsName = #{specsName},aptitudeNo = #{aptitudeNo},aptitudeName = #{aptitudeName},doctorQualification = #{doctorQualification},oriPrice = #{oriPrice},proPrice = #{proPrice},discount = #{discount},curPrice = #{curPrice},buyNum = #{buyNum},total = #{total},actualTotal = #{actualTotal},userPaidTotal = #{userPaidTotal},noDeductionAmount = #{noDeductionAmount},payTotal = #{payTotal},payRecharge = #{payRecharge},payIncrement = #{payIncrement},snapPayTotal = #{snapPayTotal},discountPrice = #{discountPrice},activityPrice = #{activityPrice},discountOrderPrice = #{discountOrderPrice},discountIntegral = #{discountIntegral},originalIntegral = #{originalIntegral},proIntegral = #{proIntegral},sellPoints = #{sellPoints},oriIntegralTotal = #{oriIntegralTotal},proIntegralTotal = #{proIntegralTotal},totalPoints = #{totalPoints},shouldTotalPoints = #{shouldTotalPoints},actualTotalPoints = #{actualTotalPoints},hasReNum = #{hasReNum},reTotal = #{reTotal},reIntegralTotal = #{reIntegralTotal},reCashTotal = #{reCashTotal},reCashPurenessTotal = #{reCashPurenessTotal},reRechargeTotal = #{reRechargeTotal},reIncrementTotal = #{reIncrementTotal},usedTotal = #{usedTotal},payStatus = #{payStatus},refundStatus = #{refundStatus},isSpa = #{isSpa},transferIntoShopId = #{transferIntoShopId},transferIntoShopName = #{transferIntoShopName},isTransfer = #{isTransfer},isTurn = #{isTurn},isDel = #{isDel},createTime = #{createTime},editTime = #{editTime} |
| | | ,orderNo = #{orderNo},performId = #{performId},orderId = #{orderId},commonItemId = #{commonItemId},remarks = #{remarks},userCardId = #{userCardId},commonId = #{commonId},platformType = #{platformType},platformTypeId = #{platformTypeId},platformTypeName = #{platformTypeName},type = #{type},goodsNo = #{goodsNo},goodsName = #{goodsName},goodsImage = #{goodsImage},specs = #{specs},single = #{single},isLimitBug = #{isLimitBug},bodyPartsId = #{bodyPartsId},bodyPartsName = #{bodyPartsName},specsName = #{specsName},aptitudeNo = #{aptitudeNo},aptitudeName = #{aptitudeName},doctorQualification = #{doctorQualification},oriPrice = #{oriPrice},proPrice = #{proPrice},discount = #{discount},curPrice = #{curPrice},buyNum = #{buyNum},total = #{total},actualTotal = #{actualTotal},userPaidTotal = #{userPaidTotal},noDeductionAmount = #{noDeductionAmount},payTotal = #{payTotal},payRecharge = #{payRecharge},payIncrement = #{payIncrement},snapPayTotal = #{snapPayTotal},discountPrice = #{discountPrice},activityPrice = #{activityPrice},discountOrderPrice = #{discountOrderPrice},discountIntegral = #{discountIntegral},originalIntegral = #{originalIntegral},proIntegral = #{proIntegral},sellPoints = #{sellPoints},oriIntegralTotal = #{oriIntegralTotal},proIntegralTotal = #{proIntegralTotal},totalPoints = #{totalPoints},shouldTotalPoints = #{shouldTotalPoints},actualTotalPoints = #{actualTotalPoints},hasReNum = #{hasReNum},reTotal = #{reTotal},reIntegralTotal = #{reIntegralTotal},reCashTotal = #{reCashTotal},reCashPurenessTotal = #{reCashPurenessTotal},reRechargeTotal = #{reRechargeTotal},reIncrementTotal = #{reIncrementTotal},usedTotal = #{usedTotal},payStatus = #{payStatus},refundStatus = #{refundStatus},isSpa = #{isSpa},appealSecond = #{appealSecond},appealThird = #{appealThird},transferIntoShopId = #{transferIntoShopId},transferIntoShopName = #{transferIntoShopName},isTransfer = #{isTransfer},isTurn = #{isTurn},isDel = #{isDel},createTime = #{createTime},editTime = #{editTime} |
| | | </trim> |
| | | </sql> |
| | | |
| | |
| | | <selectKey keyProperty="id" resultType="String" order="BEFORE"> |
| | | select replace(uuid(),'-','') from dual |
| | | </selectKey> |
| | | insert into order_item (id,orderNo,performId,orderId,commonItemId,remarks,userCardId,commonId,platformType,platformTypeId,platformTypeName,type,goodsNo,goodsName,goodsImage,specs,single,isLimitBug,bodyPartsId,bodyPartsName,specsName,aptitudeNo,aptitudeName,doctorQualification,oriPrice,proPrice,discount,curPrice,buyNum,total,actualTotal,userPaidTotal,noDeductionAmount,payTotal,payRecharge,payIncrement,snapPayTotal,discountPrice,activityPrice,discountOrderPrice,discountIntegral,originalIntegral,proIntegral,sellPoints,oriIntegralTotal,proIntegralTotal,totalPoints,shouldTotalPoints,actualTotalPoints,hasReNum,reTotal,reIntegralTotal,reCashTotal,reCashPurenessTotal,reRechargeTotal,reIncrementTotal,usedTotal,payStatus,refundStatus,isSpa,transferIntoShopId,transferIntoShopName,isTransfer,isTurn,isDel,createTime,editTime) values (#{id},#{orderNo},#{performId},#{orderId},#{commonItemId},#{remarks},#{userCardId},#{commonId},#{platformType},#{platformTypeId},#{platformTypeName},#{type},#{goodsNo},#{goodsName},#{goodsImage},#{specs},#{single},#{isLimitBug},#{bodyPartsId},#{bodyPartsName},#{specsName},#{aptitudeNo},#{aptitudeName},#{doctorQualification},#{oriPrice},#{proPrice},#{discount},#{curPrice},#{buyNum},#{total},#{actualTotal},#{userPaidTotal},#{noDeductionAmount},#{payTotal},#{payRecharge},#{payIncrement},#{snapPayTotal},#{discountPrice},#{activityPrice},#{discountOrderPrice},#{discountIntegral},#{originalIntegral},#{proIntegral},#{sellPoints},#{oriIntegralTotal},#{proIntegralTotal},#{totalPoints},#{shouldTotalPoints},#{actualTotalPoints},#{hasReNum},#{reTotal},#{reIntegralTotal},#{reCashTotal},#{reCashPurenessTotal},#{reRechargeTotal},#{reIncrementTotal},#{usedTotal},#{payStatus},#{refundStatus},#{isSpa},#{transferIntoShopId},#{transferIntoShopName},#{isTransfer},#{isTurn},#{isDel},#{createTime},#{editTime}) |
| | | insert into order_item (id,orderNo,performId,orderId,commonItemId,remarks,userCardId,commonId,platformType,platformTypeId,platformTypeName,type,goodsNo,goodsName,goodsImage,specs,single,isLimitBug,bodyPartsId,bodyPartsName,specsName,aptitudeNo,aptitudeName,doctorQualification,oriPrice,proPrice,discount,curPrice,buyNum,total,actualTotal,userPaidTotal,noDeductionAmount,payTotal,payRecharge,payIncrement,snapPayTotal,discountPrice,activityPrice,discountOrderPrice,discountIntegral,originalIntegral,proIntegral,sellPoints,oriIntegralTotal,proIntegralTotal,totalPoints,shouldTotalPoints,actualTotalPoints,hasReNum,reTotal,reIntegralTotal,reCashTotal,reCashPurenessTotal,reRechargeTotal,reIncrementTotal,usedTotal,payStatus,refundStatus,isSpa,appealSecond,appealThird,transferIntoShopId,transferIntoShopName,isTransfer,isTurn,isDel,createTime,editTime) values (#{id},#{orderNo},#{performId},#{orderId},#{commonItemId},#{remarks},#{userCardId},#{commonId},#{platformType},#{platformTypeId},#{platformTypeName},#{type},#{goodsNo},#{goodsName},#{goodsImage},#{specs},#{single},#{isLimitBug},#{bodyPartsId},#{bodyPartsName},#{specsName},#{aptitudeNo},#{aptitudeName},#{doctorQualification},#{oriPrice},#{proPrice},#{discount},#{curPrice},#{buyNum},#{total},#{actualTotal},#{userPaidTotal},#{noDeductionAmount},#{payTotal},#{payRecharge},#{payIncrement},#{snapPayTotal},#{discountPrice},#{activityPrice},#{discountOrderPrice},#{discountIntegral},#{originalIntegral},#{proIntegral},#{sellPoints},#{oriIntegralTotal},#{proIntegralTotal},#{totalPoints},#{shouldTotalPoints},#{actualTotalPoints},#{hasReNum},#{reTotal},#{reIntegralTotal},#{reCashTotal},#{reCashPurenessTotal},#{reRechargeTotal},#{reIncrementTotal},#{usedTotal},#{payStatus},#{refundStatus},#{isSpa},#{appealSecond},#{appealThird},#{transferIntoShopId},#{transferIntoShopName},#{isTransfer},#{isTurn},#{isDel},#{createTime},#{editTime}) |
| | | </insert> |
| | | |
| | | <insert id="insertById" parameterType="com.hx.phiappt.model.order.OrderItem"> |
| | | insert into order_item (id,orderNo,performId,orderId,commonItemId,remarks,userCardId,commonId,platformType,platformTypeId,platformTypeName,type,goodsNo,goodsName,goodsImage,specs,single,isLimitBug,bodyPartsId,bodyPartsName,specsName,aptitudeNo,aptitudeName,doctorQualification,oriPrice,proPrice,discount,curPrice,buyNum,total,actualTotal,userPaidTotal,noDeductionAmount,payTotal,payRecharge,payIncrement,snapPayTotal,discountPrice,activityPrice,discountOrderPrice,discountIntegral,originalIntegral,proIntegral,sellPoints,oriIntegralTotal,proIntegralTotal,totalPoints,shouldTotalPoints,actualTotalPoints,hasReNum,reTotal,reIntegralTotal,reCashTotal,reCashPurenessTotal,reRechargeTotal,reIncrementTotal,usedTotal,payStatus,refundStatus,isSpa,transferIntoShopId,transferIntoShopName,isTransfer,isTurn,isDel,createTime,editTime) values (#{id},#{orderNo},#{performId},#{orderId},#{commonItemId},#{remarks},#{userCardId},#{commonId},#{platformType},#{platformTypeId},#{platformTypeName},#{type},#{goodsNo},#{goodsName},#{goodsImage},#{specs},#{single},#{isLimitBug},#{bodyPartsId},#{bodyPartsName},#{specsName},#{aptitudeNo},#{aptitudeName},#{doctorQualification},#{oriPrice},#{proPrice},#{discount},#{curPrice},#{buyNum},#{total},#{actualTotal},#{userPaidTotal},#{noDeductionAmount},#{payTotal},#{payRecharge},#{payIncrement},#{snapPayTotal},#{discountPrice},#{activityPrice},#{discountOrderPrice},#{discountIntegral},#{originalIntegral},#{proIntegral},#{sellPoints},#{oriIntegralTotal},#{proIntegralTotal},#{totalPoints},#{shouldTotalPoints},#{actualTotalPoints},#{hasReNum},#{reTotal},#{reIntegralTotal},#{reCashTotal},#{reCashPurenessTotal},#{reRechargeTotal},#{reIncrementTotal},#{usedTotal},#{payStatus},#{refundStatus},#{isSpa},#{transferIntoShopId},#{transferIntoShopName},#{isTransfer},#{isTurn},#{isDel},#{createTime},#{editTime}) |
| | | insert into order_item (id,orderNo,performId,orderId,commonItemId,remarks,userCardId,commonId,platformType,platformTypeId,platformTypeName,type,goodsNo,goodsName,goodsImage,specs,single,isLimitBug,bodyPartsId,bodyPartsName,specsName,aptitudeNo,aptitudeName,doctorQualification,oriPrice,proPrice,discount,curPrice,buyNum,total,actualTotal,userPaidTotal,noDeductionAmount,payTotal,payRecharge,payIncrement,snapPayTotal,discountPrice,activityPrice,discountOrderPrice,discountIntegral,originalIntegral,proIntegral,sellPoints,oriIntegralTotal,proIntegralTotal,totalPoints,shouldTotalPoints,actualTotalPoints,hasReNum,reTotal,reIntegralTotal,reCashTotal,reCashPurenessTotal,reRechargeTotal,reIncrementTotal,usedTotal,payStatus,refundStatus,isSpa,appealSecond,appealThird,transferIntoShopId,transferIntoShopName,isTransfer,isTurn,isDel,createTime,editTime) values (#{id},#{orderNo},#{performId},#{orderId},#{commonItemId},#{remarks},#{userCardId},#{commonId},#{platformType},#{platformTypeId},#{platformTypeName},#{type},#{goodsNo},#{goodsName},#{goodsImage},#{specs},#{single},#{isLimitBug},#{bodyPartsId},#{bodyPartsName},#{specsName},#{aptitudeNo},#{aptitudeName},#{doctorQualification},#{oriPrice},#{proPrice},#{discount},#{curPrice},#{buyNum},#{total},#{actualTotal},#{userPaidTotal},#{noDeductionAmount},#{payTotal},#{payRecharge},#{payIncrement},#{snapPayTotal},#{discountPrice},#{activityPrice},#{discountOrderPrice},#{discountIntegral},#{originalIntegral},#{proIntegral},#{sellPoints},#{oriIntegralTotal},#{proIntegralTotal},#{totalPoints},#{shouldTotalPoints},#{actualTotalPoints},#{hasReNum},#{reTotal},#{reIntegralTotal},#{reCashTotal},#{reCashPurenessTotal},#{reRechargeTotal},#{reIncrementTotal},#{usedTotal},#{payStatus},#{refundStatus},#{isSpa},#{appealSecond},#{appealThird},#{transferIntoShopId},#{transferIntoShopName},#{isTransfer},#{isTurn},#{isDel},#{createTime},#{editTime}) |
| | | </insert> |
| | | |
| | | <select id="selectList" resultType="com.hx.phiappt.model.order.OrderItem" parameterType="com.hx.mybatisTool.SqlSentence" > |
| | |
| | | |
| | | <select id="selectOneByKey" resultType="com.hx.phiappt.model.order.OrderItem" parameterType="java.lang.Object" > |
| | | select |
| | | id,orderNo,performId,orderId,commonItemId,remarks,userCardId,commonId,platformType,platformTypeId,platformTypeName,type,goodsNo,goodsName,goodsImage,specs,single,isLimitBug,bodyPartsId,bodyPartsName,specsName,aptitudeNo,aptitudeName,doctorQualification,oriPrice,proPrice,discount,curPrice,buyNum,total,actualTotal,userPaidTotal,noDeductionAmount,payTotal,payRecharge,payIncrement,snapPayTotal,discountPrice,activityPrice,discountOrderPrice,discountIntegral,originalIntegral,proIntegral,sellPoints,oriIntegralTotal,proIntegralTotal,totalPoints,shouldTotalPoints,actualTotalPoints,hasReNum,reTotal,reIntegralTotal,reCashTotal,reCashPurenessTotal,reRechargeTotal,reIncrementTotal,usedTotal,payStatus,refundStatus,isSpa,transferIntoShopId,transferIntoShopName,isTransfer,isTurn,isDel,createTime,editTime |
| | | id,orderNo,performId,orderId,commonItemId,remarks,userCardId,commonId,platformType,platformTypeId,platformTypeName,type,goodsNo,goodsName,goodsImage,specs,single,isLimitBug,bodyPartsId,bodyPartsName,specsName,aptitudeNo,aptitudeName,doctorQualification,oriPrice,proPrice,discount,curPrice,buyNum,total,actualTotal,userPaidTotal,noDeductionAmount,payTotal,payRecharge,payIncrement,snapPayTotal,discountPrice,activityPrice,discountOrderPrice,discountIntegral,originalIntegral,proIntegral,sellPoints,oriIntegralTotal,proIntegralTotal,totalPoints,shouldTotalPoints,actualTotalPoints,hasReNum,reTotal,reIntegralTotal,reCashTotal,reCashPurenessTotal,reRechargeTotal,reIncrementTotal,usedTotal,payStatus,refundStatus,isSpa,appealSecond,appealThird,transferIntoShopId,transferIntoShopName,isTransfer,isTurn,isDel,createTime,editTime |
| | | from order_item |
| | | WHERE id = #{value} |
| | | </select> |
| | | |
| | | <select id="selectOneByKeyBlob" resultType="com.hx.phiappt.model.order.OrderItem" parameterType="java.lang.Object" > |
| | | select |
| | | id,orderNo,performId,orderId,commonItemId,remarks,userCardId,commonId,platformType,platformTypeId,platformTypeName,type,goodsNo,goodsName,goodsImage,specs,single,isLimitBug,bodyPartsId,bodyPartsName,specsName,aptitudeNo,aptitudeName,doctorQualification,oriPrice,proPrice,discount,curPrice,buyNum,total,actualTotal,userPaidTotal,noDeductionAmount,payTotal,payRecharge,payIncrement,snapPayTotal,discountPrice,activityPrice,discountOrderPrice,discountIntegral,originalIntegral,proIntegral,sellPoints,oriIntegralTotal,proIntegralTotal,totalPoints,shouldTotalPoints,actualTotalPoints,hasReNum,reTotal,reIntegralTotal,reCashTotal,reCashPurenessTotal,reRechargeTotal,reIncrementTotal,usedTotal,payStatus,refundStatus,isSpa,transferIntoShopId,transferIntoShopName,isTransfer,isTurn,isDel,createTime,editTime |
| | | id,orderNo,performId,orderId,commonItemId,remarks,userCardId,commonId,platformType,platformTypeId,platformTypeName,type,goodsNo,goodsName,goodsImage,specs,single,isLimitBug,bodyPartsId,bodyPartsName,specsName,aptitudeNo,aptitudeName,doctorQualification,oriPrice,proPrice,discount,curPrice,buyNum,total,actualTotal,userPaidTotal,noDeductionAmount,payTotal,payRecharge,payIncrement,snapPayTotal,discountPrice,activityPrice,discountOrderPrice,discountIntegral,originalIntegral,proIntegral,sellPoints,oriIntegralTotal,proIntegralTotal,totalPoints,shouldTotalPoints,actualTotalPoints,hasReNum,reTotal,reIntegralTotal,reCashTotal,reCashPurenessTotal,reRechargeTotal,reIncrementTotal,usedTotal,payStatus,refundStatus,isSpa,appealSecond,appealThird,transferIntoShopId,transferIntoShopName,isTransfer,isTurn,isDel,createTime,editTime |
| | | from order_item |
| | | WHERE id = #{value} |
| | | </select> |