Merge branch 'master' of http://121.40.234.130:8899/root/lanzhouhailiang_one
This commit is contained in:
@@ -52,25 +52,14 @@
|
||||
<result column="updateTime" property="updateTime" />
|
||||
<result column="extpersonId" property="extpersonId" />
|
||||
<result column="extuserId" property="extuserId" />
|
||||
<collection property="depts" ofType="org.nl.system.service.dept.dao.SysDept">
|
||||
<id property="deptId" column="deptId"/>
|
||||
<result column="deptName" property="name"/>
|
||||
</collection>
|
||||
<collection property="roles" ofType="org.nl.system.service.role.dao.SysRole">
|
||||
<id property="roleId" column="roleId"/>
|
||||
</collection>
|
||||
<collection property="depts" ofType="org.nl.system.service.dept.dao.SysDept" column="userId" select="selectDept"></collection>
|
||||
<collection property="roles" ofType="org.nl.system.service.role.dao.SysRole" column="userId" select="selectRole"></collection>
|
||||
</resultMap>
|
||||
<select id="getUserDetail" resultMap="UserDetail">
|
||||
SELECT
|
||||
<include refid="Base_Column_List"/>
|
||||
,sys_dept.dept_id as deptId
|
||||
,sys_dept.name as deptName
|
||||
,sys_users_roles.role_id as roleId
|
||||
FROM
|
||||
sys_user
|
||||
left join sys_user_dept on sys_user.user_id = sys_user_dept.user_id
|
||||
left join sys_users_roles on sys_users_roles.user_id = sys_user.user_id
|
||||
left join sys_dept on sys_user_dept.dept_id = sys_dept.dept_id
|
||||
<where>
|
||||
<if test="query.deptId != null">
|
||||
and
|
||||
@@ -90,6 +79,20 @@
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
<select id="selectDept" resultType="org.nl.system.service.dept.dao.SysDept">
|
||||
select
|
||||
sys_dept.dept_id as deptId,
|
||||
sys_dept.name as name
|
||||
from sys_dept
|
||||
left join sys_user_dept
|
||||
on sys_user_dept.dept_id = sys_dept.dept_id
|
||||
where user_id = #{userId}
|
||||
</select>
|
||||
<select id="selectRole" resultType="org.nl.system.service.role.dao.SysRole">
|
||||
select role_id as roleId
|
||||
from sys_users_roles
|
||||
where user_id = #{userId}
|
||||
</select>
|
||||
|
||||
<select id="getDetailForMap" resultType="java.util.Map">
|
||||
SELECT
|
||||
|
||||
@@ -85,6 +85,10 @@ public class HandMoveStorServiceImpl implements HandMoveStorService {
|
||||
WQLObject wo_mst = WQLObject.getWQLObject("ST_IVT_MoveInv");
|
||||
//任务表
|
||||
WQLObject wo_Task = WQLObject.getWQLObject("SCH_BASE_Task");
|
||||
//点位表
|
||||
WQLObject wo_Point = WQLObject.getWQLObject("sch_base_point");
|
||||
//仓位表
|
||||
WQLObject wo_Attr = WQLObject.getWQLObject("st_ivt_structattr");
|
||||
|
||||
String currentUserId = SecurityUtils.getCurrentUserId();
|
||||
String nickName = SecurityUtils.getCurrentNickName();
|
||||
@@ -96,11 +100,13 @@ public class HandMoveStorServiceImpl implements HandMoveStorService {
|
||||
map.put("update_time", now);
|
||||
JSONObject jo_mst = wo_mst.query("moveinv_id='" + moveinv_id + "'").uniqueResult(0);
|
||||
JSONArray ja = wo_dtl.query("moveinv_id='" + moveinv_id + "'").getResultJSONArray(0);
|
||||
String point_code2 = "";
|
||||
for (int i = 0; i < ja.size(); i++) {
|
||||
JSONObject jo = ja.getJSONObject(i);
|
||||
//删除任务
|
||||
HashMap<String, String> task_map = new HashMap<>();
|
||||
task_map.put("is_delete", "1");
|
||||
point_code2 = wo_Task.query("task_id = '" + jo.getString("task_id") + "'").uniqueResult(0).getString("point_code2");
|
||||
wo_Task.update(task_map, "task_id='" + jo.getString("task_id") + "'");
|
||||
//解锁起点点位、仓位
|
||||
JSONObject from_start = new JSONObject();
|
||||
@@ -133,6 +139,15 @@ public class HandMoveStorServiceImpl implements HandMoveStorService {
|
||||
}
|
||||
//更新主表
|
||||
wo_mst.update(map, "moveinv_id='" + moveinv_id + "'");
|
||||
// 更新移入点位
|
||||
JSONObject jsonPoint = wo_Point.query("point_code = '" + point_code2 + "'").uniqueResult(0);
|
||||
jsonPoint.put("vehicle_code", "");
|
||||
wo_Point.update(jsonPoint);
|
||||
|
||||
JSONObject jsonAttr = wo_Attr.query("struct_code = '" + point_code2 + "'").uniqueResult(0);
|
||||
jsonAttr.put("storagevehicle_code", "");
|
||||
wo_Attr.update(jsonAttr);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -4864,6 +4864,7 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
oneMap.put("deliveryaddress", jsonMst.getString("deliveryaddress")); // 送货方地址
|
||||
oneMap.put("deliveryname", jsonMst.getString("deliveryname")); // 送货方联系人
|
||||
oneMap.put("deliveryphone", jsonMst.getString("deliveryphone")); // 送货方联系电话
|
||||
oneMap.put("contractno", jsonMst.getString("contractno")); // 合同号
|
||||
} else {
|
||||
|
||||
if (ObjectUtil.isEmpty(jsonCust)) throw new BadRequestException("客户不存在");
|
||||
@@ -4918,6 +4919,7 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
oneMap.put("deliveryaddress", jsonMst.getString("deliveryaddress")); // 送货方地址
|
||||
oneMap.put("deliveryname", jsonMst.getString("deliveryname")); // 送货方联系人
|
||||
oneMap.put("deliveryphone", jsonMst.getString("deliveryphone")); // 送货方联系电话
|
||||
oneMap.put("contractno", jsonMst.getString("contractno")); // 合同号
|
||||
}
|
||||
|
||||
// 6.多组填充
|
||||
|
||||
Reference in New Issue
Block a user