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;
import com.alibaba.druid.util.StringUtils;
import com.alibaba.fastjson.JSONObject;
import com.glsx.common.annotation.AuthCheck;
import com.glsx.common.constants.Constants;
import com.glsx.common.constants.ResultObject;
import com.glsx.common.feign.client.CommonClient;
......@@ -74,6 +75,7 @@ public class MechanicController extends BaseReportController {
@PostMapping("/verify")
@AuthCheck
public ResultObject verify(SysMechanicEntity sysMechanicEntity) {
if (StringUtils.isEmpty(sysMechanicEntity.getRealName())) {
......@@ -112,7 +114,6 @@ public class MechanicController extends BaseReportController {
return new ResultObject(ResultCodeEnum.FAIL.getCode(), "请选择开户行所在地区!", null);
}
sysMechanicEntity.setUserId(ShiroUtil.getUserId());
return mechanicService.verify(sysMechanicEntity);
}
......
......@@ -26,7 +26,7 @@
</resultMap>
<sql id="Base_Column_List">
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
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
......@@ -196,7 +196,7 @@
bank_city_code = #{bankCityCode,jdbcType=INTEGER},
</if>
<if test="bankDistrictCode != null">
bank_ditstrict_code = #{bankDistrictCode,jdbcType=INTEGER},
bank_district_code = #{bankDistrictCode,jdbcType=INTEGER},
</if>
<if test="bankProvince != null">
bank_province = #{bankProvince,jdbcType=VARCHAR},
......@@ -205,7 +205,7 @@
bank_city = #{bankCity,jdbcType=VARCHAR},
</if>
<if test="bankDistrict != null">
bank_ditstrict = #{bankDistrict,jdbcType=VARCHAR},
bank_district = #{bankDistrict,jdbcType=VARCHAR},
</if>
</set>
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!