Commit ee3b9b58 by zhengxj

finish 技工认证 20200115 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@25841 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 956cb160
...@@ -39,6 +39,7 @@ import org.springframework.web.multipart.MultipartFile; ...@@ -39,6 +39,7 @@ import org.springframework.web.multipart.MultipartFile;
import com.alibaba.druid.util.StringUtils; import com.alibaba.druid.util.StringUtils;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.glsx.common.annotation.AuthCheck;
import com.glsx.common.constants.Constants; import com.glsx.common.constants.Constants;
import com.glsx.common.constants.ResultObject; import com.glsx.common.constants.ResultObject;
import com.glsx.common.feign.client.CommonClient; import com.glsx.common.feign.client.CommonClient;
...@@ -74,6 +75,7 @@ public class MechanicController extends BaseReportController { ...@@ -74,6 +75,7 @@ public class MechanicController extends BaseReportController {
@PostMapping("/verify") @PostMapping("/verify")
@AuthCheck
public ResultObject verify(SysMechanicEntity sysMechanicEntity) { public ResultObject verify(SysMechanicEntity sysMechanicEntity) {
if (StringUtils.isEmpty(sysMechanicEntity.getRealName())) { if (StringUtils.isEmpty(sysMechanicEntity.getRealName())) {
...@@ -112,7 +114,6 @@ public class MechanicController extends BaseReportController { ...@@ -112,7 +114,6 @@ public class MechanicController extends BaseReportController {
return new ResultObject(ResultCodeEnum.FAIL.getCode(), "请选择开户行所在地区!", null); return new ResultObject(ResultCodeEnum.FAIL.getCode(), "请选择开户行所在地区!", null);
} }
sysMechanicEntity.setUserId(ShiroUtil.getUserId()); sysMechanicEntity.setUserId(ShiroUtil.getUserId());
return mechanicService.verify(sysMechanicEntity); return mechanicService.verify(sysMechanicEntity);
} }
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, user_id, district, address, work_time_start, work_time_end, dispatch_type, service_type, id, user_id, district, address, work_time_start, work_time_end, dispatch_type, service_type,
IDCard, mechanic_status, work_status, send_type, bank_card_no, real_name,bank_name,bank_area,bank_province_code, IDCard, mechanic_status, work_status, send_type, bank_card_no, real_name,bank_name,bank_province_code,
bank_city_code,bank_district_code,bank_province,bank_city,bank_district bank_city_code,bank_district_code,bank_province,bank_city,bank_district
</sql> </sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
...@@ -196,7 +196,7 @@ ...@@ -196,7 +196,7 @@
bank_city_code = #{bankCityCode,jdbcType=INTEGER}, bank_city_code = #{bankCityCode,jdbcType=INTEGER},
</if> </if>
<if test="bankDistrictCode != null"> <if test="bankDistrictCode != null">
bank_ditstrict_code = #{bankDistrictCode,jdbcType=INTEGER}, bank_district_code = #{bankDistrictCode,jdbcType=INTEGER},
</if> </if>
<if test="bankProvince != null"> <if test="bankProvince != null">
bank_province = #{bankProvince,jdbcType=VARCHAR}, bank_province = #{bankProvince,jdbcType=VARCHAR},
...@@ -205,7 +205,7 @@ ...@@ -205,7 +205,7 @@
bank_city = #{bankCity,jdbcType=VARCHAR}, bank_city = #{bankCity,jdbcType=VARCHAR},
</if> </if>
<if test="bankDistrict != null"> <if test="bankDistrict != null">
bank_ditstrict = #{bankDistrict,jdbcType=VARCHAR}, bank_district = #{bankDistrict,jdbcType=VARCHAR},
</if> </if>
</set> </set>
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!