浏览代码

师傅实体类添加会员等级字段

yanliming 1 月之前
父节点
当前提交
021a4afb7e

+ 4 - 0
common/src/main/java/com/jpsoft/employment/modules/base/entity/TechnicianInfo.java

@@ -85,5 +85,9 @@ public class TechnicianInfo {
 	
 				@ApiModelProperty(value = "入驻状态")
 	private String status;
+
+
+	@ApiModelProperty(value = "会员等级")
+	private Integer level;
 	
 		}

+ 10 - 3
common/src/main/resources/mapper/base/TechnicianInfo.xml

@@ -26,6 +26,8 @@
 			<result property="createBy" column="create_by" />
 			<result property="updateBy" column="update_by" />
 			<result property="status" column="status_" />
+			<result property="level" column="level_" />
+
 			</resultMap>
 	<insert id="insert" parameterType="com.jpsoft.employment.modules.base.entity.TechnicianInfo">
 	<!--
@@ -35,7 +37,7 @@
 	-->
 	<![CDATA[
 		insert into base_technician_info
-	    (id_,user_name,password_,open_id,phone_,id_card,real_name,region_,image_,gender_,introduction_,service_info,business_scope,id_card_image,is_verified,promo_code,create_time,update_time,del_flag,create_by,update_by,status_)
+	    (id_,user_name,password_,open_id,phone_,id_card,real_name,region_,image_,gender_,introduction_,service_info,business_scope,id_card_image,is_verified,promo_code,create_time,update_time,del_flag,create_by,update_by,status_,level_)
 		values
 		(
 #{id,jdbcType=VARCHAR}
@@ -60,6 +62,9 @@
 ,#{createBy,jdbcType=VARCHAR}
 ,#{updateBy,jdbcType=VARCHAR}
 ,#{status,jdbcType=VARCHAR}
+,#{level,jdbcType= NUMERIC }
+
+
 		)
 	]]>
 	</insert>
@@ -132,12 +137,14 @@
 				<if test="status!=null">
 		status_=#{status,jdbcType=VARCHAR},
 		</if>
+			<if test="level!=null">
+				level_=#{level,jdbcType= NUMERIC },
+			</if>
 		</set>
 	where id_=#{id}
 	</update>
 	<select id="get" parameterType="string" resultMap="TechnicianInfoMap">
-		select 
-id_,user_name,password_,open_id,phone_,id_card,real_name,region_,image_,gender_,introduction_,service_info,business_scope,id_card_image,is_verified,promo_code,create_time,update_time,del_flag,create_by,update_by,status_		from base_technician_info where id_=#{0}
+		select * from base_technician_info where id_=#{0}
 	</select>
 	<select id="exist" parameterType="string" resultType="int">
 		select count(*) from base_technician_info where id_=#{0}

+ 17 - 0
web/src/main/java/com/jpsoft/employment/modules/mobile/controller/WorkOrderApiController.java

@@ -0,0 +1,17 @@
+package com.jpsoft.employment.modules.mobile.controller;
+
+import com.jpsoft.employment.modules.base.service.WorkOrderService;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+@RestController
+@RequestMapping("/mobile/workOrder")
+public class WorkOrderApiController {
+    private Logger logger = LoggerFactory.getLogger(getClass());
+
+    @Autowired
+    private WorkOrderService workOrderService;
+}