Commit bcd46668 by zhanghj

V1.5.0--提交设备验证相关代码

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@24461 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 38436103
...@@ -35,6 +35,7 @@ import javax.validation.groups.Default; ...@@ -35,6 +35,7 @@ import javax.validation.groups.Default;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.BindingResult; import org.springframework.validation.BindingResult;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RequestParam;
...@@ -57,6 +58,7 @@ import com.glsx.ordercenter.dto.BizAmountResp; ...@@ -57,6 +58,7 @@ import com.glsx.ordercenter.dto.BizAmountResp;
import com.glsx.ordercenter.dto.MechanicBusiness; import com.glsx.ordercenter.dto.MechanicBusiness;
import com.glsx.ordercenter.dto.MechanicStatistics; import com.glsx.ordercenter.dto.MechanicStatistics;
import com.glsx.ordercenter.dto.OrderActivateReq; import com.glsx.ordercenter.dto.OrderActivateReq;
import com.glsx.ordercenter.dto.OrderDeviceReq;
import com.glsx.ordercenter.dto.OrderRepairReq; import com.glsx.ordercenter.dto.OrderRepairReq;
import com.glsx.ordercenter.dto.OrderStastic; import com.glsx.ordercenter.dto.OrderStastic;
import com.glsx.ordercenter.dto.QueryOrderReq; import com.glsx.ordercenter.dto.QueryOrderReq;
...@@ -853,4 +855,26 @@ public class OrderController extends BaseController { ...@@ -853,4 +855,26 @@ public class OrderController extends BaseController {
return new ResultObject(ResultCodeEnum.SUCCESS.getCode(), ResultCodeEnum.SUCCESS.getMsg(), photoConfigList); return new ResultObject(ResultCodeEnum.SUCCESS.getCode(), ResultCodeEnum.SUCCESS.getMsg(), photoConfigList);
} }
/**
*
* @author zhanghj
* @Title: deviceCheck
* @Description: TODO 设备验证
* @param request
* @param orderDeviceReq
* @return
* ResultObject
* @version V1.5.0
*/
@AuthCheck
@RequestMapping(value = "/deviceCheck", method = { RequestMethod.GET, RequestMethod.POST })
public ResultObject deviceCheck(HttpServletRequest request, @RequestBody @Validated(value = {Default.class}) OrderDeviceReq orderDeviceReq) {
Map<String, String> errorMap = getErrors(orderDeviceReq);
if (!errorMap.isEmpty()) {
return new ResultObject(ResultCodeEnum.PARAM_ERROR.getCode(), ResultCodeEnum.PARAM_ERROR.getMsg(), errorMap);
}
ResultObject result = orderService.deviceCheck(orderDeviceReq);
return result;
}
} }
...@@ -66,6 +66,7 @@ public class StandardOrderController extends BaseController { ...@@ -66,6 +66,7 @@ public class StandardOrderController extends BaseController {
* @Title: multiDeviceActive * @Title: multiDeviceActive
* @Description: TODO 设备激活验证 * @Description: TODO 设备激活验证
*/ */
@Deprecated
@RequestMapping(value = "/multiDeviceActive", method = {RequestMethod.GET, RequestMethod.POST}) @RequestMapping(value = "/multiDeviceActive", method = {RequestMethod.GET, RequestMethod.POST})
public ResultObject multiDeviceActive(DeviceActiveModel model, BindingResult bindingResult) { public ResultObject multiDeviceActive(DeviceActiveModel model, BindingResult bindingResult) {
......
...@@ -4,8 +4,10 @@ ...@@ -4,8 +4,10 @@
<resultMap id="BaseResultMap" type="com.glsx.ordercenter.pojo.SysOrderFile"> <resultMap id="BaseResultMap" type="com.glsx.ordercenter.pojo.SysOrderFile">
<id column="id" jdbcType="INTEGER" property="id" /> <id column="id" jdbcType="INTEGER" property="id" />
<result column="order_id" jdbcType="INTEGER" property="orderId" /> <result column="order_id" jdbcType="INTEGER" property="orderId" />
<result column="file_name" jdbcType="VARCHAR" property="fileName" />
<result column="file_path" jdbcType="VARCHAR" property="filePath" /> <result column="file_path" jdbcType="VARCHAR" property="filePath" />
<result column="file_type" jdbcType="TINYINT" property="fileType" /> <result column="file_type" jdbcType="TINYINT" property="fileType" />
<result column="file_desc" jdbcType="VARCHAR" property="fileDesc" />
<result column="sort" jdbcType="TINYINT" property="sort" /> <result column="sort" jdbcType="TINYINT" property="sort" />
<result column="create_by" jdbcType="INTEGER" property="createBy" /> <result column="create_by" jdbcType="INTEGER" property="createBy" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
...@@ -45,12 +47,18 @@ ...@@ -45,12 +47,18 @@
<if test="orderId != null"> <if test="orderId != null">
order_id, order_id,
</if> </if>
<if test="fileName != null">
file_name,
</if>
<if test="filePath != null"> <if test="filePath != null">
file_path, file_path,
</if> </if>
<if test="fileType != null"> <if test="fileType != null">
file_type, file_type,
</if> </if>
<if test="fileDesc != null">
file_desc,
</if>
<if test="sort != null"> <if test="sort != null">
sort, sort,
</if> </if>
...@@ -65,12 +73,18 @@ ...@@ -65,12 +73,18 @@
<if test="orderId != null"> <if test="orderId != null">
#{orderId,jdbcType=INTEGER}, #{orderId,jdbcType=INTEGER},
</if> </if>
<if test="fileName != null">
#{fileName},
</if>
<if test="filePath != null"> <if test="filePath != null">
#{filePath,jdbcType=VARCHAR}, #{filePath,jdbcType=VARCHAR},
</if> </if>
<if test="fileType != null"> <if test="fileType != null">
#{fileType,jdbcType=TINYINT}, #{fileType,jdbcType=TINYINT},
</if> </if>
<if test="fileDesc != null">
#{fileDesc},
</if>
<if test="sort != null"> <if test="sort != null">
#{sort,jdbcType=TINYINT}, #{sort,jdbcType=TINYINT},
</if> </if>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!