Commit 086fa89f by duanhq

库存列表bug修改 v 1.2.0

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@21727 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 9ca92186
......@@ -20,6 +20,7 @@ public enum ResultCodeEnum {
NO_ACCESS_RIGHT(401, "没有访问权限"),
SMS_VERIFY_CODE_NOT_RIGHT(2006, "短信验证码错误或已过期"),
SMS_SEND_FAIL(2007, "短信发送失败!"),
;
/**
......
......@@ -30,16 +30,6 @@ public class SysIndentLogistics {
private Date updateTime;
private String logisticsDate;
public String getLogisticsDate() {
return logisticsDate;
}
public void setLogisticsDate(String logisticsDate) {
this.logisticsDate = logisticsDate;
}
public Integer getId() {
return id;
}
......
......@@ -95,7 +95,7 @@ public class IndentServiceImpl implements IndentService {
//添加到物流信息表
sysIndentLogistics.setCreateBy(userId);
sysIndentLogistics.setCreateTime(new Date());
sysIndentLogistics.setLogisticsTime(DateUtil.parseDateYmd(sysIndentLogistics.getLogisticsDate()));
sysIndentLogistics.setLogisticsTime(sysIndentLogistics.getLogisticsTime());
return sysIndentLogisticsMapper.insertSelective(sysIndentLogistics);
}
......
......@@ -283,10 +283,10 @@
LEFT JOIN sys_dict_data sdd ON sdr.device_type = sdd.data_key
<where>
<if test="name != null">
su.name LIKE "%"#{name}"%",
and su.name LIKE "%"#{name}"%"
</if>
<if test="deviceType != null">
sdr.device_type = #{deviceType},
and sdr.device_type = #{deviceType}
</if>
</where>
<choose>
......@@ -313,10 +313,10 @@
<where>
sd.user_id = #{userId}
<if test="deviceNo != null">
sd.device_no LIKE "%"#{deviceNo}"%",
and sd.device_no LIKE "%"#{deviceNo}"%"
</if>
<if test="deviceType != null and deviceType != '' ">
sdr.device_type = #{deviceType},
and sdr.device_type = #{deviceType}
</if>
</where>
ORDER BY sd.stock_time DESC
......@@ -342,13 +342,13 @@
where ssm.service_id = #{serviceId}
)
<if test="mechanicId != null">
sd.user_id = #{mechanicId},
and sd.user_id = #{mechanicId}
</if>
<if test="deviceNo != null">
sd.device_no LIKE "%"#{deviceNo}"%",
and sd.device_no LIKE "%"#{deviceNo}"%"
</if>
<if test="deviceType != null and deviceType != ''">
sdr.device_type = #{deviceType},
and sdr.device_type = #{deviceType}
</if>
ORDER BY sd.stock_time DESC
</select>
......@@ -366,10 +366,10 @@
<where>
sd.user_id = #{userId}
<if test="deviceNo != null">
sd.device_no LIKE "%"#{deviceNo}"%",
and sd.device_no LIKE "%"#{deviceNo}"%"
</if>
<if test="deviceType != null and deviceType != '' ">
sdr.device_type = #{deviceType},
and sdr.device_type = #{deviceType}
</if>
<if test="dateStart != null and dateEnd!=null and dateStart !='' and dateEnd !=''">
and sd.stock_time between #{dateStart,jdbcType=TIMESTAMP} and #{dateEnd,jdbcType=TIMESTAMP}
......@@ -390,7 +390,7 @@
su.id id,
su.name name,
su.phone_number phoneNumber,
sdr.device_num deviceNum
SUM(sdr.device_num) deviceNum
FROM
sys_device_repertory sdr
LEFT JOIN sys_user su ON sdr.user_id = su.id
......@@ -402,11 +402,12 @@
where ssm.service_id = #{userId}
)
<if test="name != null and name!= ''">
su.name LIKE "%"#{name}"%",
and su.name LIKE "%"#{name}"%"
</if>
<if test="deviceType != null and deviceType != ''">
sdr.device_type = #{deviceType},
and sdr.device_type = #{deviceType}
</if>
GROUP BY sdr.user_id
<choose>
<when test="sortType == 1">
ORDER BY sdr.device_num DESC
......
......@@ -114,7 +114,7 @@ public class CommonController {
smsUtil.send(phone, msgContent, PropertiesUtil.getProperty(Constants.SMS_REGISTER_SOURCE));
} catch (Exception e) {
logger.error(phone + "技工注册成功发送短信失败" + e.getMessage(), e);
return new ResultObject(ResultCodeEnum.ERROR.getCode(), ResultCodeEnum.ERROR.getMsg());
return new ResultObject(ResultCodeEnum.SMS_SEND_FAIL.getCode(), ResultCodeEnum.SMS_SEND_FAIL.getMsg());
}
return new ResultObject(ResultCodeEnum.SUCCESS.getCode(), ResultCodeEnum.SUCCESS.getMsg());
}
......@@ -136,7 +136,7 @@ public class CommonController {
smsUtil.send(phone, msgContent, PropertiesUtil.getProperty(Constants.SMS_CHECK_INDENT_SOURCE));
} catch (Exception e) {
logger.error(phone + "发送订货单审核通过短信失败" + e.getMessage(), e);
return new ResultObject(ResultCodeEnum.ERROR.getCode(), ResultCodeEnum.ERROR.getMsg());
return new ResultObject(ResultCodeEnum.SMS_SEND_FAIL.getCode(), ResultCodeEnum.SMS_SEND_FAIL.getMsg());
}
return new ResultObject(ResultCodeEnum.SUCCESS.getCode(), ResultCodeEnum.SUCCESS.getMsg());
}
......@@ -159,7 +159,7 @@ public class CommonController {
smsUtil.send(phone, msgContent, PropertiesUtil.getProperty(Constants.SMS_SEND_DEVICE_SOURCE));
} catch (Exception e) {
logger.error(phone + "发送已发货短信失败" + e.getMessage(), e);
return new ResultObject(ResultCodeEnum.ERROR.getCode(), ResultCodeEnum.ERROR.getMsg());
return new ResultObject(ResultCodeEnum.SMS_SEND_FAIL.getCode(), ResultCodeEnum.SMS_SEND_FAIL.getMsg());
}
return new ResultObject(ResultCodeEnum.SUCCESS.getCode(), ResultCodeEnum.SUCCESS.getMsg());
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!