forked from integrated_whb/integrated_whb
Compare commits
No commits in common. "a893aa83b27e5a52bcabe6a986876094c5f4ef51" and "04b40acb8d8b71c01070607c30c0165de0a06248" have entirely different histories.
a893aa83b2
...
04b40acb8d
|
@ -4,7 +4,6 @@ import com.zcloud.controller.base.BaseController;
|
|||
import com.zcloud.entity.Page;
|
||||
import com.zcloud.entity.PageData;
|
||||
import com.zcloud.logs.LogAnno;
|
||||
import com.zcloud.service.assignedManage.AssignedManageService;
|
||||
import com.zcloud.service.operatingvehicles.OperatingVehiclesService;
|
||||
import com.zcloud.util.*;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
@ -52,7 +51,6 @@ public class OperatingVehiclesController extends BaseController {
|
|||
pd.put("OPERATOR", Jurisdiction.getUSER_ID()); //修改人id
|
||||
pd.put("OPERATORNAME", Jurisdiction.getUsername()); // 修改人名字
|
||||
pd.put("OPERATTIME", DateUtil.date2Str(new Date())); // 修改时间
|
||||
pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID());
|
||||
if (null != headstockFile && !headstockFile.isEmpty()) {
|
||||
String ffile = DateUtil.getDays();
|
||||
//本地
|
||||
|
@ -100,10 +98,6 @@ public class OperatingVehiclesController extends BaseController {
|
|||
String errInfo = "success";
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
pd.put("DELETOR", Jurisdiction.getUSER_ID());
|
||||
pd.put("DELETORNAME", Jurisdiction.getUsername());
|
||||
pd.put("DELETTIME", DateUtil.date2Str(new Date()));
|
||||
operatingVehiclesService.delete(pd);
|
||||
map.put("result", errInfo); //返回结果
|
||||
return map;
|
||||
}
|
||||
|
@ -192,7 +186,6 @@ public class OperatingVehiclesController extends BaseController {
|
|||
map.put("varList", varList);
|
||||
map.put("page", page);
|
||||
map.put("result", errInfo);
|
||||
System.out.println();
|
||||
return map;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1030,27 +1030,4 @@ public class DictionariesController extends BaseController {
|
|||
return map;
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/getVehicleType")
|
||||
@ResponseBody
|
||||
public Object getVehicleType() throws Exception {
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
String errInfo = "success";
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
String DICTIONARIES_ID = pd.getString("DICTIONARIES_ID");
|
||||
DICTIONARIES_ID = Tools.isEmpty(DICTIONARIES_ID) ? "0" : DICTIONARIES_ID;
|
||||
List<Dictionaries> varList = dictionariesService.listgetVehicleType(DICTIONARIES_ID); //用传过来的ID获取此ID下的子列表数据
|
||||
List<PageData> pdList = new ArrayList<PageData>();
|
||||
for (Dictionaries d : varList) {
|
||||
PageData pdf = new PageData();
|
||||
pdf.put("DICTIONARIES_ID", d.getDICTIONARIES_ID());
|
||||
pdf.put("BIANMA", d.getBIANMA());
|
||||
pdf.put("NAME", d.getNAME());
|
||||
pdList.add(pdf);
|
||||
}
|
||||
map.put("list", pdList);
|
||||
map.put("result", errInfo); //返回结果
|
||||
return map;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -154,6 +154,4 @@ public interface DictionariesMapper {
|
|||
List<Dictionaries> listgetAssignedVehicleModel(String parentId);
|
||||
|
||||
List<Dictionaries> listgetAssignedVehicle(String parentId);
|
||||
|
||||
List<Dictionaries> listgetVehicleType(String parentId);
|
||||
}
|
||||
|
|
|
@ -199,6 +199,4 @@ public interface DictionariesService {
|
|||
List<Dictionaries> listgetAssignedVehicleModel(String parentId);
|
||||
|
||||
List<Dictionaries> listgetAssignedVehicle(String parentId);
|
||||
|
||||
List<Dictionaries> listgetVehicleType(String parentId);
|
||||
}
|
||||
|
|
|
@ -496,9 +496,4 @@ public class DictionariesServiceImpl implements DictionariesService {
|
|||
public List<Dictionaries> listgetAssignedVehicle(String parentId) {
|
||||
return dictionariesMapper.listgetAssignedVehicle(parentId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Dictionaries> listgetVehicleType(String parentId) {
|
||||
return dictionariesMapper.listgetVehicleType(parentId);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
f.VEHICLE_TYPE,
|
||||
f.FIRSTSHOW_DATE,
|
||||
f.EXPIRE_DATE,
|
||||
f.VEHICLE_EQUIPMENT,
|
||||
f.BELONGING_DEPARTMENT,
|
||||
f.TRANSPORT_ENTERPRISES,
|
||||
f.TRANSPORT_TYPE,
|
||||
|
@ -49,7 +48,6 @@
|
|||
f.VOUCH_NUMBERLOAD,
|
||||
f.VOUCH_PAYLOAD,
|
||||
f.RACTIONMASS_QUALITY,
|
||||
f.HOME_TERRITORY,
|
||||
f.REMARK,
|
||||
f.HEADSTOCK_PHOTO,
|
||||
f.DRIVINGLICENSE_PHOTO,
|
||||
|
@ -66,8 +64,7 @@
|
|||
f.OPERATTIME,
|
||||
f.DELETOR,
|
||||
f.DELETORNAME,
|
||||
f.DELETTIME,
|
||||
f.CORPINFO_ID
|
||||
f.DELETTIME
|
||||
</sql>
|
||||
|
||||
<!-- 字段用于新增 -->
|
||||
|
@ -82,7 +79,6 @@
|
|||
VEHICLE_TYPE,
|
||||
FIRSTSHOW_DATE,
|
||||
EXPIRE_DATE,
|
||||
VEHICLE_EQUIPMENT,
|
||||
BELONGING_DEPARTMENT,
|
||||
TRANSPORT_ENTERPRISES,
|
||||
TRANSPORT_TYPE,
|
||||
|
@ -107,7 +103,6 @@
|
|||
VOUCH_NUMBERLOAD,
|
||||
VOUCH_PAYLOAD,
|
||||
RACTIONMASS_QUALITY,
|
||||
HOME_TERRITORY,
|
||||
REMARK,
|
||||
HEADSTOCK_PHOTO,
|
||||
DRIVINGLICENSE_PHOTO,
|
||||
|
@ -124,8 +119,7 @@
|
|||
OPERATTIME,
|
||||
DELETOR,
|
||||
DELETORNAME,
|
||||
DELETTIME,
|
||||
CORPINFO_ID
|
||||
DELETTIME
|
||||
</sql>
|
||||
|
||||
<!-- 字段值 -->
|
||||
|
@ -140,7 +134,6 @@
|
|||
#{VEHICLE_TYPE},
|
||||
#{FIRSTSHOW_DATE},
|
||||
#{EXPIRE_DATE},
|
||||
#{VEHICLE_EQUIPMENT},
|
||||
#{BELONGING_DEPARTMENT},
|
||||
#{TRANSPORT_ENTERPRISES},
|
||||
#{TRANSPORT_TYPE},
|
||||
|
@ -165,7 +158,6 @@
|
|||
#{VOUCH_NUMBERLOAD},
|
||||
#{VOUCH_PAYLOAD},
|
||||
#{RACTIONMASS_QUALITY},
|
||||
#{HOME_TERRITORY},
|
||||
#{REMARK},
|
||||
#{HEADSTOCK_PHOTO},
|
||||
#{DRIVINGLICENSE_PHOTO},
|
||||
|
@ -183,7 +175,6 @@
|
|||
#{DELETOR},
|
||||
#{DELETORNAME},
|
||||
#{DELETTIME}
|
||||
#{CORPINFO_ID}
|
||||
</sql>
|
||||
|
||||
<!-- 新增-->
|
||||
|
@ -222,7 +213,6 @@
|
|||
VEHICLE_TYPE = #{VEHICLE_TYPE},
|
||||
FIRSTSHOW_DATE = #{FIRSTSHOW_DATE},
|
||||
EXPIRE_DATE = #{EXPIRE_DATE},
|
||||
VEHICLE_EQUIPMENT = #{VEHICLE_EQUIPMENT},
|
||||
BELONGING_DEPARTMENT = #{BELONGING_DEPARTMENT},
|
||||
TRANSPORT_ENTERPRISES = #{TRANSPORT_ENTERPRISES},
|
||||
TRANSPORT_TYPE = #{TRANSPORT_TYPE},
|
||||
|
@ -246,7 +236,6 @@
|
|||
VOUCH_TOTALMASS = #{VOUCH_TOTALMASS},
|
||||
VOUCH_NUMBERLOAD = #{VOUCH_NUMBERLOAD},
|
||||
VOUCH_PAYLOAD = #{VOUCH_PAYLOAD},
|
||||
HOME_TERRITORY = #{HOME_TERRITORY},
|
||||
RACTIONMASS_QUALITY = #{RACTIONMASS_QUALITY},
|
||||
REMARK = #{REMARK},
|
||||
HEADSTOCK_PHOTO = #{HEADSTOCK_PHOTO},
|
||||
|
@ -264,8 +253,7 @@
|
|||
OPERATTIME = #{OPERATTIME},
|
||||
DELETOR = #{DELETOR},
|
||||
DELETORNAME = #{DELETORNAME},
|
||||
DELETTIME = #{DELETTIME},
|
||||
CORPINFO_ID = #{CORPINFO_ID}
|
||||
DELETTIME = #{DELETTIME}
|
||||
where
|
||||
OPERATING_ID = #{OPERATING_ID}
|
||||
</update>
|
||||
|
@ -463,7 +451,7 @@
|
|||
and f.PLATE_NUMBER LIKE CONCAT(CONCAT('%', #{pd.PLATE_NUMBER}),'%')
|
||||
</if>
|
||||
<if test="pd.VEHICLE_COLOR != null and pd.VEHICLE_COLOR != ''"><!-- 关键词检索 -->
|
||||
and f.VEHICLE_COLOR LIKE CONCAT(CONCAT('%', #{pd.VEHICLE_COLOR}),'%')
|
||||
and f.VEHICLE_COLOR = #{pd.VEHICLE_COLOR}
|
||||
</if>
|
||||
<if test="pd.FRAMES_NUMBER != null and pd.FRAMES_NUMBER != ''"><!-- 关键词检索 -->
|
||||
and f.FRAMES_NUMBER LIKE CONCAT(CONCAT('%', #{pd.FRAMES_NUMBER}),'%')
|
||||
|
@ -474,8 +462,8 @@
|
|||
<if test="pd.BELONGING_DEPARTMENT != null and pd.BELONGING_DEPARTMENT != ''"><!-- 关键词检索 -->
|
||||
and f.BELONGING_DEPARTMENT LIKE CONCAT(CONCAT('%', #{pd.BELONGING_DEPARTMENT}),'%')
|
||||
</if>
|
||||
<if test="pd.TRANSPORT_TYPE != null and pd.TRANSPORT_TYPE != ''"><!-- 关键词检索 -->
|
||||
and f.TRANSPORT_TYPE = #{pd.TRANSPORT_TYPE}
|
||||
<if test="pd.TRANSPORT_ENTERPRISES != null and pd.TRANSPORT_ENTERPRISES != ''"><!-- 关键词检索 -->
|
||||
and f.TRANSPORT_ENTERPRISES = #{pd.TRANSPORT_ENTERPRISES}
|
||||
</if>
|
||||
<if test="pd.NETWORK_STATUS != null and pd.NETWORK_STATUS != ''"><!-- 关键词检索 -->
|
||||
and f.NETWORK_STATUS = #{pd.NETWORK_STATUS}
|
||||
|
|
|
@ -437,14 +437,5 @@
|
|||
PARENT_ID = #{parentId} order by ORDER_BY
|
||||
</select>
|
||||
|
||||
<select id="listgetVehicleType" parameterType="String" resultMap="dictResultMap">
|
||||
select
|
||||
<include refid="Field"></include>
|
||||
from
|
||||
<include refid="tableName"></include>
|
||||
where
|
||||
PARENT_ID = #{parentId} order by ORDER_BY
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
|
Loading…
Reference in New Issue