Commit 6dea1fc7 by wubh

包活干V2.2.0-功能开发

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@29243 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent df6c3c91
......@@ -36,6 +36,7 @@ public class QueryOrderReq implements Serializable {
private String dateStart;
private String dateEnd;
private String serviceCode;
private List<String> serviceCodeList;
private Boolean detail;
private Integer userType;
private Integer userId;
......@@ -157,6 +158,14 @@ public class QueryOrderReq implements Serializable {
this.serviceCode = serviceCode;
}
public List<String> getServiceCodeList() {
return serviceCodeList;
}
public void setServiceCodeList(List<String> serviceCodeList) {
this.serviceCodeList = serviceCodeList;
}
public Boolean getDetail() {
return detail;
}
......@@ -344,36 +353,39 @@ public class QueryOrderReq implements Serializable {
@Override
public String toString() {
return "QueryOrderReq{" +
"orderSn='" + orderSn + '\'' +
", orderChannel=" + orderChannel +
", serviceType='" + serviceType + '\'' +
", orderStatus=" + orderStatus +
", dateStart='" + dateStart + '\'' +
", dateEnd='" + dateEnd + '\'' +
", serviceCode='" + serviceCode + '\'' +
", detail=" + detail +
", userType=" + userType +
", userId=" + userId +
", vinNo='" + vinNo + '\'' +
", carOwner='" + carOwner + '\'' +
", carOwnerPhone='" + carOwnerPhone + '\'' +
", shopName='" + shopName + '\'' +
", province='" + province + '\'' +
", city='" + city + '\'' +
", workOrderNo='" + workOrderNo + '\'' +
", reserveInstallTimeStart='" + reserveInstallTimeStart + '\'' +
", reserveInstallTimeEnd='" + reserveInstallTimeEnd + '\'' +
", serviceName='" + serviceName + '\'' +
", orderType=" + orderType +
", mechanicInfo='" + mechanicInfo + '\'' +
", conditions='" + conditions + '\'' +
", keyWord='" + keyWord + '\'' +
", needMoreInfo=" + needMoreInfo +
", subsidy=" + subsidy +
", ids=" + ids +
", carBrand=" + carBrand +
", carSeries=" + carSeries +
", carType='" + carType + '\'' +
'}';
"completeTimeStart=" + completeTimeStart +
", completeTimeEnd=" + completeTimeEnd +
", orderSn='" + orderSn + '\'' +
", orderChannel=" + orderChannel +
", serviceType='" + serviceType + '\'' +
", orderStatus=" + orderStatus +
", dateStart='" + dateStart + '\'' +
", dateEnd='" + dateEnd + '\'' +
", serviceCode='" + serviceCode + '\'' +
", serviceCodeList=" + serviceCodeList +
", detail=" + detail +
", userType=" + userType +
", userId=" + userId +
", vinNo='" + vinNo + '\'' +
", carOwner='" + carOwner + '\'' +
", carOwnerPhone='" + carOwnerPhone + '\'' +
", shopName='" + shopName + '\'' +
", province='" + province + '\'' +
", city='" + city + '\'' +
", workOrderNo='" + workOrderNo + '\'' +
", reserveInstallTimeStart='" + reserveInstallTimeStart + '\'' +
", reserveInstallTimeEnd='" + reserveInstallTimeEnd + '\'' +
", serviceName='" + serviceName + '\'' +
", orderType=" + orderType +
", mechanicInfo='" + mechanicInfo + '\'' +
", conditions='" + conditions + '\'' +
", keyWord='" + keyWord + '\'' +
", needMoreInfo=" + needMoreInfo +
", subsidy=" + subsidy +
", ids=" + ids +
", carBrand=" + carBrand +
", carSeries=" + carSeries +
", carType='" + carType + '\'' +
'}';
}
}
......@@ -21,7 +21,12 @@ public class SysServiceItem extends BaseModel {
private String imgPath;
/**
* 车务单推送接口
* 设备验证接口
*/
private String deviceVerifyUrl;
/**
* 同步推送接口
*/
private String pushUrl;
......@@ -57,7 +62,6 @@ public class SysServiceItem extends BaseModel {
*/
private String deviceTypeName;
public Integer getId() {
return id;
}
......@@ -71,7 +75,7 @@ public class SysServiceItem extends BaseModel {
}
public void setServiceName(String serviceName) {
this.serviceName = serviceName == null ? null : serviceName.trim();
this.serviceName = serviceName;
}
public String getServiceCode() {
......@@ -79,7 +83,7 @@ public class SysServiceItem extends BaseModel {
}
public void setServiceCode(String serviceCode) {
this.serviceCode = serviceCode == null ? null : serviceCode.trim();
this.serviceCode = serviceCode;
}
public String getImgPath() {
......@@ -87,7 +91,23 @@ public class SysServiceItem extends BaseModel {
}
public void setImgPath(String imgPath) {
this.imgPath = imgPath == null ? null : imgPath.trim();
this.imgPath = imgPath;
}
public String getDeviceVerifyUrl() {
return deviceVerifyUrl;
}
public void setDeviceVerifyUrl(String deviceVerifyUrl) {
this.deviceVerifyUrl = deviceVerifyUrl;
}
public String getPushUrl() {
return pushUrl;
}
public void setPushUrl(String pushUrl) {
this.pushUrl = pushUrl;
}
public Byte getIsUpdateInfo() {
......@@ -106,6 +126,14 @@ public class SysServiceItem extends BaseModel {
this.isAudit = isAudit;
}
public Byte getType() {
return type;
}
public void setType(Byte type) {
this.type = type;
}
public List<SysServiceItemDeviceConfig> getDeviceConfigList() {
return deviceConfigList;
}
......@@ -119,7 +147,8 @@ public class SysServiceItem extends BaseModel {
return photoConfigList;
}
public void setPhotoConfigList(List<SysServiceItemPhotoConfig> photoConfigList) {
public void setPhotoConfigList(
List<SysServiceItemPhotoConfig> photoConfigList) {
this.photoConfigList = photoConfigList;
}
......@@ -139,22 +168,6 @@ public class SysServiceItem extends BaseModel {
this.deviceTypeName = deviceTypeName;
}
public String getPushUrl() {
return pushUrl;
}
public void setPushUrl(String pushUrl) {
this.pushUrl = pushUrl;
}
public Byte getType() {
return type;
}
public void setType(Byte type) {
this.type = type;
}
@Override
public String toString() {
return "SysServiceItem{" +
......@@ -162,6 +175,7 @@ public class SysServiceItem extends BaseModel {
", serviceName='" + serviceName + '\'' +
", serviceCode='" + serviceCode + '\'' +
", imgPath='" + imgPath + '\'' +
", deviceVerifyUrl='" + deviceVerifyUrl + '\'' +
", pushUrl='" + pushUrl + '\'' +
", isUpdateInfo=" + isUpdateInfo +
", isAudit=" + isAudit +
......
......@@ -21,7 +21,9 @@ public class SysMechanic {
private String mechanicStatus;
private Integer workStatus;
private Integer workStatus;
private Integer generateCheckSheet;
public Integer getId() {
return id;
......@@ -110,4 +112,30 @@ public class SysMechanic {
public void setWorkStatus(Integer workStatus) {
this.workStatus = workStatus;
}
}
\ No newline at end of file
public Integer getGenerateCheckSheet() {
return generateCheckSheet;
}
public void setGenerateCheckSheet(Integer generateCheckSheet) {
this.generateCheckSheet = generateCheckSheet;
}
@Override
public String toString() {
return "SysMechanic{" +
"id=" + id +
", userId=" + userId +
", district=" + district +
", address='" + address + '\'' +
", workTimeStart='" + workTimeStart + '\'' +
", workTimeEnd='" + workTimeEnd + '\'' +
", dispatchType=" + dispatchType +
", serviceType=" + serviceType +
", idcard='" + idcard + '\'' +
", mechanicStatus='" + mechanicStatus + '\'' +
", workStatus=" + workStatus +
", generateCheckSheet=" + generateCheckSheet +
'}';
}
}
......@@ -14,6 +14,7 @@
<result column="IDCard" jdbcType="VARCHAR" property="idcard"/>
<result column="mechanic_status" jdbcType="TINYINT" property="mechanicStatus"/>
<result column="work_status" jdbcType="TINYINT" property="workStatus"/>
<result column="generate_check_sheet" jdbcType="INTEGER" property="generateCheckSheet"/>
</resultMap>
<sql id="Example_Where_Clause">
......
......@@ -1459,8 +1459,14 @@
<if test="city != null and city!=''">
and( CONCAT(p.area_name, c.area_name) like "%"#{city}"%")
</if>
<if test="serviceCode != null and serviceCode !=''">
and so.service_code = #{serviceCode}
<!--<if test="serviceCode != null and serviceCode != ''">-->
<!-- and so.service_code = #{serviceCode,jdbcType=VARCHAR}-->
<!--</if>-->
<if test="serviceCodeList != null and serviceCodeList.size() != 0">
and so.service_code in
<foreach collection="serviceCodeList" item="item" open="(" separator="," close=")">
#{item,jdbcType=VARCHAR}
</foreach>
</if>
<if test="serviceName != null and serviceName!=''">
and ssp.provider_name like "%"#{serviceName}"%"
......
......@@ -6,9 +6,10 @@
<result column="service_name" jdbcType="VARCHAR" property="serviceName"/>
<result column="service_code" jdbcType="VARCHAR" property="serviceCode"/>
<result column="img_path" jdbcType="VARCHAR" property="imgPath"/>
<result column="push_url" jdbcType="VARCHAR" property="pushUrl"/>
<result column="is_update_info" jdbcType="TINYINT" property="isUpdateInfo"/>
<result column="is_audit" jdbcType="TINYINT" property="isAudit"/>
<result column="device_verify_url" jdbcType="VARCHAR" property="deviceVerifyUrl"/>
<result column="push_url" jdbcType="VARCHAR" property="pushUrl"/>
<result column="type" jdbcType="TINYINT" property="type"/>
<result column="remark" jdbcType="VARCHAR" property="remark"/>
<result column="create_by" jdbcType="INTEGER" property="createBy"/>
......@@ -19,8 +20,8 @@
<result column="photoCount" jdbcType="INTEGER" property="photoCount"/>
</resultMap>
<sql id="Base_Column_List">
id, service_name, service_code, push_url, type, img_path, is_update_info, is_audit, remark,
create_by, create_time, update_by,update_time
id, service_name, service_code, device_verify_url, push_url, type, img_path, is_update_info,
is_audit, remark, create_by, create_time, update_by,update_time
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
......@@ -58,6 +59,7 @@
#{remark,jdbcType=VARCHAR}, #{createBy,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{updateBy,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.glsx.ordercenter.pojo.SysServiceItem">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID()
......@@ -73,6 +75,9 @@
<if test="imgPath != null">
img_path,
</if>
<if test="deviceVerifyUrl != null">
device_verify_url,
</if>
<if test="pushUrl != null">
push_url,
</if>
......@@ -111,6 +116,9 @@
<if test="imgPath != null">
#{imgPath,jdbcType=VARCHAR},
</if>
<if test="deviceVerifyUrl != null">
#{deviceVerifyUrl,jdbcType=VARCHAR},
</if>
<if test="pushUrl != null">
#{pushUrl,jdbcType=VARCHAR},
</if>
......@@ -152,6 +160,9 @@
<if test="imgPath != null">
img_path = #{imgPath,jdbcType=VARCHAR},
</if>
<if test="deviceVerifyUrl != null">
device_verify_url = #{deviceVerifyUrl,jdbcType=VARCHAR},
</if>
<if test="pushUrl != null">
push_url = #{pushUrl,jdbcType=VARCHAR},
</if>
......@@ -187,6 +198,7 @@
set service_name = #{serviceName,jdbcType=VARCHAR},
service_code = #{serviceCode,jdbcType=VARCHAR},
img_path = #{imgPath,jdbcType=VARCHAR},
device_verify_url = #{deviceVerifyUrl,jdbcType=VARCHAR},
push_url = #{pushUrl,jdbcType=VARCHAR},
is_update_info = #{isUpdateInfo,jdbcType=TINYINT},
is_audit = #{isAudit,jdbcType=TINYINT},
......@@ -212,6 +224,7 @@
ssi.service_name,
ssi.service_code,
ssi.img_path,
ssi.device_verify_url,
ssi.push_url,
ssi.is_update_info,
ssi.is_audit,
......
......@@ -10,6 +10,7 @@ import java.util.List;
import java.util.Map;
import java.util.Set;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.util.StringUtil;
......@@ -516,7 +517,7 @@ public class UserController extends BaseController {
@ResponseBody
@Log(menuName = "技工管理目录-技工管理", operateType = com.glsx.common.constants.Constants.SYS_LOG_OPERATE_TYPE_UPDATE)
public ResultObject updateSysMechanicInfo(@Validated(value = {Default.class}) SysMechanic sysMechanic, BindingResult bindingResult) {
logger.info("编辑技工传入的参数为" + sysMechanic.toString());
logger.info("编辑技工传入的参数为:{}", JSON.toJSONString(sysMechanic));
if (bindingResult.hasErrors()) {
Map<String, String> errorMap = getErrors(bindingResult);
return new ResultObject(ResultCodeEnum.PARAM_ERROR.getCode(), ResultCodeEnum.PARAM_ERROR.getMsg(), errorMap);
......@@ -765,10 +766,10 @@ public class UserController extends BaseController {
for (Integer userId : userQueryVo.getIds()) {
//技工和商户下面若关联订单则无法删除
JSONObject obj = orderClient.getOrderByUserId(userId);
Object orderList = obj.get("data");
ArrayList list = (ArrayList) orderList;
if (list.size() != 0) {
return new ResultObject(ResultCodeEnum.USER_RELATE_ORDER.getCode(), ResultCodeEnum.USER_RELATE_ORDER.getMsg());
JSONArray orderList = obj.getJSONArray("data");
if (CollectionUtils.isNotEmpty(orderList)) {
return new ResultObject(ResultCodeEnum.USER_RELATE_ORDER.getCode(),
ResultCodeEnum.USER_RELATE_ORDER.getMsg());
}
userQueryVo.setUserId(userId);
userService.deleteUser(userQueryVo);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!