Commit 903dbaf4 authored by 耿迪迪's avatar 耿迪迪
parents 32050b4e b60a0a70
...@@ -43,7 +43,7 @@ public class APIController { ...@@ -43,7 +43,7 @@ public class APIController {
RsaToClient rsa = new RsaToClient(privateKeyString, publicKeyString); RsaToClient rsa = new RsaToClient(privateKeyString, publicKeyString);
TSiteStationInfo tSiteStationInfo=new TSiteStationInfo(); TSiteStationInfo tSiteStationInfo=new TSiteStationInfo();
tSiteStationInfo.setBeyondEnterpriseId(Long.valueOf(15)); tSiteStationInfo.setBeyondEnterpriseId("15");
List<TSiteStationInfo> tSiteStationInfos = tSiteStationInfoService.selectTSiteStationInfoList(tSiteStationInfo); List<TSiteStationInfo> tSiteStationInfos = tSiteStationInfoService.selectTSiteStationInfoList(tSiteStationInfo);
// 组装加密数据结构 (这里根据接口参数进行调整组装格式) // 组装加密数据结构 (这里根据接口参数进行调整组装格式)
......
...@@ -49,7 +49,7 @@ public class TComplainDealController extends BaseController ...@@ -49,7 +49,7 @@ public class TComplainDealController extends BaseController
public TableDataInfo list(TComplainDeal tComplainDeal, HttpServletRequest request) public TableDataInfo list(TComplainDeal tComplainDeal, HttpServletRequest request)
{ {
LoginUser loginUser = tokenService.getLoginUser(request); LoginUser loginUser = tokenService.getLoginUser(request);
if(loginUser.getUser().getDeptId()!=-2){ if(!"-2".equals(loginUser.getUser().getDeptId())){
tComplainDeal.setComplainAssignEnterproseId(loginUser.getUser().getDeptId()); tComplainDeal.setComplainAssignEnterproseId(loginUser.getUser().getDeptId());
} }
startPage(); startPage();
......
...@@ -102,7 +102,7 @@ public class TWorkOrderController extends BaseController ...@@ -102,7 +102,7 @@ public class TWorkOrderController extends BaseController
private void judgeUserRole(TWorkOrder tWorkOrder){ private void judgeUserRole(TWorkOrder tWorkOrder){
SysUser user = SecurityUtils.getLoginUser().getUser(); SysUser user = SecurityUtils.getLoginUser().getUser();
//获取用户所属单位 //获取用户所属单位
long enterpriseId = user.getDeptId(); String enterpriseId = user.getDeptId();
//判断是否为政府用户 //判断是否为政府用户
if(!"-2".equals(String.valueOf(enterpriseId))){ if(!"-2".equals(String.valueOf(enterpriseId))){
tWorkOrder.setWorkAssignEnterproseId(enterpriseId); tWorkOrder.setWorkAssignEnterproseId(enterpriseId);
...@@ -187,7 +187,7 @@ public class TWorkOrderController extends BaseController ...@@ -187,7 +187,7 @@ public class TWorkOrderController extends BaseController
//获取当前登录用户信息 //获取当前登录用户信息
LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest()); LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest());
SysUser user = loginUser.getUser(); SysUser user = loginUser.getUser();
if (user.getDeptId()==-2){ if ("-2".equals(user.getDeptId())){
// user.setDeptId((long) 0); // user.setDeptId((long) 0);
}else { }else {
enterpriseId= String.valueOf(user.getDeptId()); enterpriseId= String.valueOf(user.getDeptId());
......
...@@ -38,8 +38,8 @@ public class PipeInterfaceController extends BaseController { ...@@ -38,8 +38,8 @@ public class PipeInterfaceController extends BaseController {
SysUser user = loginUser.getUser(); SysUser user = loginUser.getUser();
//获取分组数据 //获取分组数据
List<PipeDate> pipeDatesGroup = iPipeInterfaceService.selectGroupPipeData(); List<PipeDate> pipeDatesGroup = iPipeInterfaceService.selectGroupPipeData();
if (user.getDeptId()==-2){ if ("-2".equals(user.getDeptId())){
user.setDeptId((long) 0); user.setDeptId("0");
} }
//查询管道数据列表 //查询管道数据列表
List<PipeDate> pipeDates = iPipeInterfaceService.selectPipeData(String.valueOf(user.getDeptId())); List<PipeDate> pipeDates = iPipeInterfaceService.selectPipeData(String.valueOf(user.getDeptId()));
...@@ -77,11 +77,11 @@ public class PipeInterfaceController extends BaseController { ...@@ -77,11 +77,11 @@ public class PipeInterfaceController extends BaseController {
LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest()); LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest());
SysUser user = loginUser.getUser(); SysUser user = loginUser.getUser();
if (user.getDeptId()==-2){ if ("-2".equals(user.getDeptId())){
user.setDeptId((long) 0); user.setDeptId("0");
} }
//调压箱数据查询方法 //调压箱数据查询方法
List<DeviceData> deviceData = iPipeInterfaceService.selectDeviceData(String.valueOf(user.getDeptId())); List<DeviceData> deviceData = iPipeInterfaceService.selectDeviceData(user.getDeptId());
// //查询下级全部数据方法 // //查询下级全部数据方法
// List<PressureFlow> pressureFlows1 = iPipeInterfaceService.selectPressureFlows("1"); // List<PressureFlow> pressureFlows1 = iPipeInterfaceService.selectPressureFlows("1");
// for (int i=0;i<deviceData.size();i++){ // for (int i=0;i<deviceData.size();i++){
...@@ -221,11 +221,11 @@ public class PipeInterfaceController extends BaseController { ...@@ -221,11 +221,11 @@ public class PipeInterfaceController extends BaseController {
LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest()); LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest());
SysUser user = loginUser.getUser(); SysUser user = loginUser.getUser();
if (user.getDeptId()==-2){ if ("-2".equals(user.getDeptId())){
user.setDeptId((long) 0); user.setDeptId("0");
} }
//调压箱数据查询方法 //调压箱数据查询方法
List<DeviceData> deviceData = iPipeInterfaceService.selectDeviceData(String.valueOf(user.getDeptId())); List<DeviceData> deviceData = iPipeInterfaceService.selectDeviceData(user.getDeptId());
//查询下级全部数据方法 //查询下级全部数据方法
List<PressureFlow> pressureFlows1 = iPipeInterfaceService.selectPressureFlow("1"); List<PressureFlow> pressureFlows1 = iPipeInterfaceService.selectPressureFlow("1");
//最后返回的封装类型 //最后返回的封装类型
...@@ -337,11 +337,11 @@ public class PipeInterfaceController extends BaseController { ...@@ -337,11 +337,11 @@ public class PipeInterfaceController extends BaseController {
TSiteStationInfoDataList tSiteStationInfoDataList=new TSiteStationInfoDataList(); TSiteStationInfoDataList tSiteStationInfoDataList=new TSiteStationInfoDataList();
LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest()); LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest());
SysUser user = loginUser.getUser(); SysUser user = loginUser.getUser();
if (user.getDeptId()==-2){ if ("-2".equals(user.getDeptId())){
user.setDeptId((long) 0); user.setDeptId("0");
} }
//场站信息查询方法 //场站信息查询方法
List<TSiteStationInfoData> tSiteStationInfoData = iPipeInterfaceService.selectTSiteStationInfoData(String.valueOf(user.getDeptId())); List<TSiteStationInfoData> tSiteStationInfoData = iPipeInterfaceService.selectTSiteStationInfoData(user.getDeptId());
List<TSiteStationInfoData> list=new ArrayList<>(); List<TSiteStationInfoData> list=new ArrayList<>();
// //查询下级全部数据方法 // //查询下级全部数据方法
// List<PressureFlow> pressureFlows1 = iPipeInterfaceService.selectPressureFlows("2"); // List<PressureFlow> pressureFlows1 = iPipeInterfaceService.selectPressureFlows("2");
...@@ -481,11 +481,11 @@ public class PipeInterfaceController extends BaseController { ...@@ -481,11 +481,11 @@ public class PipeInterfaceController extends BaseController {
public TSiteStationInfoDataList selectTSiteStationInfoDatas(){ public TSiteStationInfoDataList selectTSiteStationInfoDatas(){
LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest()); LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest());
SysUser user = loginUser.getUser(); SysUser user = loginUser.getUser();
if (user.getDeptId()==-2){ if ("-2".equals(user.getDeptId())){
user.setDeptId((long) 0); user.setDeptId("0");
} }
//场站信息查询方法 //场站信息查询方法
List<TSiteStationInfoData> tSiteStationInfoData = iPipeInterfaceService.selectTSiteStationInfoData(String.valueOf(user.getDeptId())); List<TSiteStationInfoData> tSiteStationInfoData = iPipeInterfaceService.selectTSiteStationInfoData(user.getDeptId());
//查询场站下级设备数据 //查询场站下级设备数据
List<PressureFlow> pressureFlows = iPipeInterfaceService.selecttSiteStationInfoDataList("1"); List<PressureFlow> pressureFlows = iPipeInterfaceService.selecttSiteStationInfoDataList("1");
TSiteStationInfoDataList tSiteStationInfoDataList=new TSiteStationInfoDataList(); TSiteStationInfoDataList tSiteStationInfoDataList=new TSiteStationInfoDataList();
...@@ -584,11 +584,11 @@ public class PipeInterfaceController extends BaseController { ...@@ -584,11 +584,11 @@ public class PipeInterfaceController extends BaseController {
LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest()); LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest());
SysUser user = loginUser.getUser(); SysUser user = loginUser.getUser();
if (user.getDeptId()==-2){ if ("-2".equals(user.getDeptId())){
user.setDeptId((long) 0); user.setDeptId("0");
} }
//查询阀门井数据 //查询阀门井数据
List<DeviceData> pipeDates = iPipeInterfaceService.selectvalveData(String.valueOf(user.getDeptId())); List<DeviceData> pipeDates = iPipeInterfaceService.selectvalveData(user.getDeptId());
// //查询下级全部数据方法 // //查询下级全部数据方法
// List<PressureFlow> pressureFlows1 = iPipeInterfaceService.selectPressureFlows("1"); // List<PressureFlow> pressureFlows1 = iPipeInterfaceService.selectPressureFlows("1");
// for (int i=0;i<pipeDates.size();i++){ // for (int i=0;i<pipeDates.size();i++){
...@@ -622,8 +622,8 @@ public class PipeInterfaceController extends BaseController { ...@@ -622,8 +622,8 @@ public class PipeInterfaceController extends BaseController {
public DeviceDataList selectvalveDatas(){ public DeviceDataList selectvalveDatas(){
LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest()); LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest());
SysUser user = loginUser.getUser(); SysUser user = loginUser.getUser();
if (user.getDeptId()==-2){ if ("-2".equals(user.getDeptId())){
user.setDeptId((long) 0); user.setDeptId("0");
} }
//查询阀门井数据 //查询阀门井数据
List<DeviceData> pipeDates = iPipeInterfaceService.selectvalveData(String.valueOf(user.getDeptId())); List<DeviceData> pipeDates = iPipeInterfaceService.selectvalveData(String.valueOf(user.getDeptId()));
......
...@@ -258,7 +258,7 @@ public class TDeviceInfoController extends BaseController ...@@ -258,7 +258,7 @@ public class TDeviceInfoController extends BaseController
//获取当前登录用户信息 //获取当前登录用户信息
LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest()); LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest());
SysUser user = loginUser.getUser(); SysUser user = loginUser.getUser();
if (user.getDeptId()==-2){ if ("-2".equals(user.getDeptId())){
// user.setDeptId((long) 0); // user.setDeptId((long) 0);
}else { }else {
enterpriseId= String.valueOf(user.getDeptId()); enterpriseId= String.valueOf(user.getDeptId());
......
...@@ -9,6 +9,7 @@ import com.zehong.common.core.page.TableDataInfo; ...@@ -9,6 +9,7 @@ import com.zehong.common.core.page.TableDataInfo;
import com.zehong.common.enums.BusinessType; import com.zehong.common.enums.BusinessType;
import com.zehong.common.utils.SecurityUtils; import com.zehong.common.utils.SecurityUtils;
import com.zehong.common.utils.poi.ExcelUtil; import com.zehong.common.utils.poi.ExcelUtil;
import com.zehong.common.utils.uuid.UUID;
import com.zehong.framework.config.ServerConfig; import com.zehong.framework.config.ServerConfig;
import com.zehong.system.domain.TEnterpriseInfo; import com.zehong.system.domain.TEnterpriseInfo;
import com.zehong.system.domain.vo.TEnterpriseInfoVO; import com.zehong.system.domain.vo.TEnterpriseInfoVO;
...@@ -107,7 +108,7 @@ public class TEnterpriseInfoController extends BaseController ...@@ -107,7 +108,7 @@ public class TEnterpriseInfoController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('regulation:info:query')") @PreAuthorize("@ss.hasPermi('regulation:info:query')")
@GetMapping(value = "/{enterpriseId}") @GetMapping(value = "/{enterpriseId}")
public AjaxResult getInfo(@PathVariable("enterpriseId") Long enterpriseId) public AjaxResult getInfo(@PathVariable("enterpriseId") String enterpriseId)
{ {
return AjaxResult.success(tEnterpriseInfoService.selectTEnterpriseInfoById(enterpriseId)); return AjaxResult.success(tEnterpriseInfoService.selectTEnterpriseInfoById(enterpriseId));
} }
...@@ -157,7 +158,7 @@ public class TEnterpriseInfoController extends BaseController ...@@ -157,7 +158,7 @@ public class TEnterpriseInfoController extends BaseController
@PreAuthorize("@ss.hasPermi('regulation:info:remove')") @PreAuthorize("@ss.hasPermi('regulation:info:remove')")
@Log(title = "企业信息", businessType = BusinessType.DELETE) @Log(title = "企业信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{enterpriseIds}") @DeleteMapping("/{enterpriseIds}")
public AjaxResult remove(@PathVariable Long[] enterpriseIds) public AjaxResult remove(@PathVariable String[] enterpriseIds)
{ {
return toAjax(tEnterpriseInfoService.deleteTEnterpriseInfoByIds(enterpriseIds)); return toAjax(tEnterpriseInfoService.deleteTEnterpriseInfoByIds(enterpriseIds));
} }
......
...@@ -95,7 +95,7 @@ public class TProjectInfoController extends BaseController ...@@ -95,7 +95,7 @@ public class TProjectInfoController extends BaseController
//重复年份删除方法 //重复年份删除方法
tProjectInfoService.deleteisSameYear(tProjectInfo.getProjectYear(),tProjectInfo.getBeyondEnterpriseId()); tProjectInfoService.deleteisSameYear(tProjectInfo.getProjectYear(),tProjectInfo.getBeyondEnterpriseId());
} }
if (user.getDeptId()!=-2){ if (!"-2".equals(user.getDeptId())){
//查询企业名称 //查询企业名称
String enterpriseName = tProjectInfoService.selectEnterpriseName(user.getDeptId()); String enterpriseName = tProjectInfoService.selectEnterpriseName(user.getDeptId());
tProjectInfo.setEnterpriseCode(String.valueOf(enterpriseName)); tProjectInfo.setEnterpriseCode(String.valueOf(enterpriseName));
......
...@@ -30,7 +30,7 @@ public class SysUser extends BaseEntity ...@@ -30,7 +30,7 @@ public class SysUser extends BaseEntity
/** 部门ID */ /** 部门ID */
@Excel(name = "部门编号", type = Type.IMPORT) @Excel(name = "部门编号", type = Type.IMPORT)
private Long deptId; private String deptId;
/** 用户账号 */ /** 用户账号 */
@Excel(name = "登录名称") @Excel(name = "登录名称")
...@@ -136,12 +136,12 @@ public class SysUser extends BaseEntity ...@@ -136,12 +136,12 @@ public class SysUser extends BaseEntity
return userId != null && 1L == userId; return userId != null && 1L == userId;
} }
public Long getDeptId() public String getDeptId()
{ {
return deptId; return deptId;
} }
public void setDeptId(Long deptId) public void setDeptId(String deptId)
{ {
this.deptId = deptId; this.deptId = deptId;
} }
......
...@@ -50,7 +50,7 @@ public class TComplainDeal extends BaseEntity ...@@ -50,7 +50,7 @@ public class TComplainDeal extends BaseEntity
/** 指派单位id */ /** 指派单位id */
@Excel(name = "指派单位id") @Excel(name = "指派单位id")
private Long complainAssignEnterproseId; private String complainAssignEnterproseId;
/** 指派人 */ /** 指派人 */
@Excel(name = "指派人id") @Excel(name = "指派人id")
...@@ -135,12 +135,12 @@ public class TComplainDeal extends BaseEntity ...@@ -135,12 +135,12 @@ public class TComplainDeal extends BaseEntity
{ {
return complainAssignEnterproseName; return complainAssignEnterproseName;
} }
public void setComplainAssignEnterproseId(Long complainAssignEnterproseId) public void setComplainAssignEnterproseId(String complainAssignEnterproseId)
{ {
this.complainAssignEnterproseId = complainAssignEnterproseId; this.complainAssignEnterproseId = complainAssignEnterproseId;
} }
public Long getComplainAssignEnterproseId() public String getComplainAssignEnterproseId()
{ {
return complainAssignEnterproseId; return complainAssignEnterproseId;
} }
......
...@@ -31,7 +31,7 @@ public class TDetectorUser extends BaseEntity ...@@ -31,7 +31,7 @@ public class TDetectorUser extends BaseEntity
private String nickName; private String nickName;
/** 权属单位 */ /** 权属单位 */
private Long beyondEnterpriseId; private String beyondEnterpriseId;
/** 用户类型(1居民用户,2商业用户,3工业用户) */ /** 用户类型(1居民用户,2商业用户,3工业用户) */
@Excel(name = "用户类型") @Excel(name = "用户类型")
...@@ -114,11 +114,11 @@ public class TDetectorUser extends BaseEntity ...@@ -114,11 +114,11 @@ public class TDetectorUser extends BaseEntity
return serialVersionUID; return serialVersionUID;
} }
public Long getBeyondEnterpriseId() { public String getBeyondEnterpriseId() {
return beyondEnterpriseId; return beyondEnterpriseId;
} }
public void setBeyondEnterpriseId(Long beyondEnterpriseId) { public void setBeyondEnterpriseId(String beyondEnterpriseId) {
this.beyondEnterpriseId = beyondEnterpriseId; this.beyondEnterpriseId = beyondEnterpriseId;
} }
......
...@@ -45,7 +45,7 @@ public class TDeviceInfo extends BaseEntity ...@@ -45,7 +45,7 @@ public class TDeviceInfo extends BaseEntity
private String deviceType; private String deviceType;
/** 权属单位 */ /** 权属单位 */
private Long beyondEnterpriseId; private String beyondEnterpriseId;
/** 权属单位名称 */ /** 权属单位名称 */
@Excel(name = "权属单位名称") @Excel(name = "权属单位名称")
...@@ -158,12 +158,12 @@ public class TDeviceInfo extends BaseEntity ...@@ -158,12 +158,12 @@ public class TDeviceInfo extends BaseEntity
{ {
return deviceType; return deviceType;
} }
public void setBeyondEnterpriseId(Long beyondEnterpriseId) public void setBeyondEnterpriseId(String beyondEnterpriseId)
{ {
this.beyondEnterpriseId = beyondEnterpriseId; this.beyondEnterpriseId = beyondEnterpriseId;
} }
public Long getBeyondEnterpriseId() public String getBeyondEnterpriseId()
{ {
return beyondEnterpriseId; return beyondEnterpriseId;
} }
......
...@@ -39,7 +39,7 @@ public class TEmployedPeopleInfo extends BaseEntity ...@@ -39,7 +39,7 @@ public class TEmployedPeopleInfo extends BaseEntity
private String beyondEnterpriseName; private String beyondEnterpriseName;
/** 受聘企业id */ /** 受聘企业id */
private Long beyondEnterpriseId; private String beyondEnterpriseId;
/** 发证部门 */ /** 发证部门 */
@Excel(name = "发证部门") @Excel(name = "发证部门")
...@@ -121,12 +121,12 @@ public class TEmployedPeopleInfo extends BaseEntity ...@@ -121,12 +121,12 @@ public class TEmployedPeopleInfo extends BaseEntity
{ {
return beyondEnterpriseName; return beyondEnterpriseName;
} }
public void setBeyondEnterpriseId(Long beyondEnterpriseId) public void setBeyondEnterpriseId(String beyondEnterpriseId)
{ {
this.beyondEnterpriseId = beyondEnterpriseId; this.beyondEnterpriseId = beyondEnterpriseId;
} }
public Long getBeyondEnterpriseId() public String getBeyondEnterpriseId()
{ {
return beyondEnterpriseId; return beyondEnterpriseId;
} }
......
...@@ -18,10 +18,10 @@ public class TEnterpriseInfo extends BaseEntity ...@@ -18,10 +18,10 @@ public class TEnterpriseInfo extends BaseEntity
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** 企业id */ /** 企业id */
private Long enterpriseId; private String enterpriseId;
/**创建企业id*/ /**创建企业id*/
private Long createEnterpriseId; private String createEnterpriseId;
/** 企业名称 */ /** 企业名称 */
@Excel(name = "企业名称") @Excel(name = "企业名称")
...@@ -84,11 +84,11 @@ public class TEnterpriseInfo extends BaseEntity ...@@ -84,11 +84,11 @@ public class TEnterpriseInfo extends BaseEntity
this.enterpriseType = enterpriseType; this.enterpriseType = enterpriseType;
} }
public Long getCreateEnterpriseId() { public String getCreateEnterpriseId() {
return createEnterpriseId; return createEnterpriseId;
} }
public void setCreateEnterpriseId(Long createEnterpriseId) { public void setCreateEnterpriseId(String createEnterpriseId) {
this.createEnterpriseId = createEnterpriseId; this.createEnterpriseId = createEnterpriseId;
} }
...@@ -112,12 +112,12 @@ public class TEnterpriseInfo extends BaseEntity ...@@ -112,12 +112,12 @@ public class TEnterpriseInfo extends BaseEntity
this.doDusiness = doDusiness; this.doDusiness = doDusiness;
} }
public void setEnterpriseId(Long enterpriseId) public void setEnterpriseId(String enterpriseId)
{ {
this.enterpriseId = enterpriseId; this.enterpriseId = enterpriseId;
} }
public Long getEnterpriseId() public String getEnterpriseId()
{ {
return enterpriseId; return enterpriseId;
} }
......
...@@ -73,7 +73,7 @@ public class THiddenDangerStandingBook extends BaseEntity ...@@ -73,7 +73,7 @@ public class THiddenDangerStandingBook extends BaseEntity
/** 权属单位 */ /** 权属单位 */
private Long beyondEnterpriseId; private String beyondEnterpriseId;
private String source; private String source;
...@@ -111,11 +111,11 @@ public class THiddenDangerStandingBook extends BaseEntity ...@@ -111,11 +111,11 @@ public class THiddenDangerStandingBook extends BaseEntity
return serialVersionUID; return serialVersionUID;
} }
public Long getBeyondEnterpriseId() { public String getBeyondEnterpriseId() {
return beyondEnterpriseId; return beyondEnterpriseId;
} }
public void setBeyondEnterpriseId(Long beyondEnterpriseId) { public void setBeyondEnterpriseId(String beyondEnterpriseId) {
this.beyondEnterpriseId = beyondEnterpriseId; this.beyondEnterpriseId = beyondEnterpriseId;
} }
......
...@@ -22,7 +22,7 @@ public class THiddenTroubleInfo extends BaseEntity ...@@ -22,7 +22,7 @@ public class THiddenTroubleInfo extends BaseEntity
private Long hiddenTroubleId; private Long hiddenTroubleId;
/** 权属单位 */ /** 权属单位 */
private Long beyondEnterpriseId; private String beyondEnterpriseId;
/** 巡检任务id */ /** 巡检任务id */
private Long workId; private Long workId;
...@@ -218,11 +218,11 @@ public class THiddenTroubleInfo extends BaseEntity ...@@ -218,11 +218,11 @@ public class THiddenTroubleInfo extends BaseEntity
return serialVersionUID; return serialVersionUID;
} }
public Long getBeyondEnterpriseId() { public String getBeyondEnterpriseId() {
return beyondEnterpriseId; return beyondEnterpriseId;
} }
public void setBeyondEnterpriseId(Long beyondEnterpriseId) { public void setBeyondEnterpriseId(String beyondEnterpriseId) {
this.beyondEnterpriseId = beyondEnterpriseId; this.beyondEnterpriseId = beyondEnterpriseId;
} }
......
...@@ -36,7 +36,7 @@ public class TLinePatrolPerson extends BaseEntity ...@@ -36,7 +36,7 @@ public class TLinePatrolPerson extends BaseEntity
/** $column.columnComment */ /** $column.columnComment */
@Excel(name = "组号") @Excel(name = "组号")
private Long beyondEnterpriseId; private String beyondEnterpriseId;
/** 账号 */ /** 账号 */
@Excel(name = "账号") @Excel(name = "账号")
...@@ -109,12 +109,12 @@ public class TLinePatrolPerson extends BaseEntity ...@@ -109,12 +109,12 @@ public class TLinePatrolPerson extends BaseEntity
{ {
return groupNum; return groupNum;
} }
public void setBeyondEnterpriseId(Long beyondEnterpriseId) public void setBeyondEnterpriseId(String beyondEnterpriseId)
{ {
this.beyondEnterpriseId = beyondEnterpriseId; this.beyondEnterpriseId = beyondEnterpriseId;
} }
public Long getBeyondEnterpriseId() public String getBeyondEnterpriseId()
{ {
return beyondEnterpriseId; return beyondEnterpriseId;
} }
......
...@@ -58,7 +58,7 @@ public class TPipeInfo extends BaseEntity ...@@ -58,7 +58,7 @@ public class TPipeInfo extends BaseEntity
private String peopleOccupation; private String peopleOccupation;
/** 权属单位 */ /** 权属单位 */
private Long beyondEnterpriseId; private String beyondEnterpriseId;
/** 权属单位名称 */ /** 权属单位名称 */
@Excel(name = "权属单位名称") @Excel(name = "权属单位名称")
...@@ -172,12 +172,12 @@ public class TPipeInfo extends BaseEntity ...@@ -172,12 +172,12 @@ public class TPipeInfo extends BaseEntity
{ {
return buildUnit; return buildUnit;
} }
public void setBeyondEnterpriseId(Long beyondEnterpriseId) public void setBeyondEnterpriseId(String beyondEnterpriseId)
{ {
this.beyondEnterpriseId = beyondEnterpriseId; this.beyondEnterpriseId = beyondEnterpriseId;
} }
public Long getBeyondEnterpriseId() public String getBeyondEnterpriseId()
{ {
return beyondEnterpriseId; return beyondEnterpriseId;
} }
......
...@@ -30,7 +30,7 @@ public class TProjectInfo extends BaseEntity ...@@ -30,7 +30,7 @@ public class TProjectInfo extends BaseEntity
private String enterpriseCode; private String enterpriseCode;
/** 权属单位 */ /** 权属单位 */
private Long beyondEnterpriseId; private String beyondEnterpriseId;
/** 门站地址 */ /** 门站地址 */
@Excel(name = "门站地址") @Excel(name = "门站地址")
...@@ -62,11 +62,11 @@ public class TProjectInfo extends BaseEntity ...@@ -62,11 +62,11 @@ public class TProjectInfo extends BaseEntity
@Excel(name = "备注") @Excel(name = "备注")
private String remarks; private String remarks;
public Long getBeyondEnterpriseId() { public String getBeyondEnterpriseId() {
return beyondEnterpriseId; return beyondEnterpriseId;
} }
public void setBeyondEnterpriseId(Long beyondEnterpriseId) { public void setBeyondEnterpriseId(String beyondEnterpriseId) {
this.beyondEnterpriseId = beyondEnterpriseId; this.beyondEnterpriseId = beyondEnterpriseId;
} }
......
...@@ -36,7 +36,7 @@ public class TSiteStationInfo extends BaseEntity ...@@ -36,7 +36,7 @@ public class TSiteStationInfo extends BaseEntity
private String buildUnit; private String buildUnit;
/** 权属单位 */ /** 权属单位 */
private Long beyondEnterpriseId; private String beyondEnterpriseId;
/** 权属单位名称 */ /** 权属单位名称 */
@Excel(name = "权属单位名称") @Excel(name = "权属单位名称")
...@@ -139,12 +139,12 @@ public class TSiteStationInfo extends BaseEntity ...@@ -139,12 +139,12 @@ public class TSiteStationInfo extends BaseEntity
{ {
return buildUnit; return buildUnit;
} }
public void setBeyondEnterpriseId(Long beyondEnterpriseId) public void setBeyondEnterpriseId(String beyondEnterpriseId)
{ {
this.beyondEnterpriseId = beyondEnterpriseId; this.beyondEnterpriseId = beyondEnterpriseId;
} }
public Long getBeyondEnterpriseId() public String getBeyondEnterpriseId()
{ {
return beyondEnterpriseId; return beyondEnterpriseId;
} }
......
...@@ -45,7 +45,7 @@ public class TVideoManager extends BaseEntity ...@@ -45,7 +45,7 @@ public class TVideoManager extends BaseEntity
/** 所属企业 */ /** 所属企业 */
@Excel(name = "所属企业") @Excel(name = "所属企业")
private Long beyondEnterpriseId; private String beyondEnterpriseId;
/** 所属企业名称 */ /** 所属企业名称 */
@Excel(name = "所属企业名称") @Excel(name = "所属企业名称")
...@@ -122,12 +122,12 @@ public class TVideoManager extends BaseEntity ...@@ -122,12 +122,12 @@ public class TVideoManager extends BaseEntity
{ {
return type; return type;
} }
public void setBeyondEnterpriseId(Long beyondEnterpriseId) public void setBeyondEnterpriseId(String beyondEnterpriseId)
{ {
this.beyondEnterpriseId = beyondEnterpriseId; this.beyondEnterpriseId = beyondEnterpriseId;
} }
public Long getBeyondEnterpriseId() public String getBeyondEnterpriseId()
{ {
return beyondEnterpriseId; return beyondEnterpriseId;
} }
......
...@@ -48,7 +48,7 @@ public class TWorkOrder extends BaseEntity ...@@ -48,7 +48,7 @@ public class TWorkOrder extends BaseEntity
/** 指派单位id */ /** 指派单位id */
@Excel(name = "指派单位id") @Excel(name = "指派单位id")
private Long workAssignEnterproseId; private String workAssignEnterproseId;
/** 指派人 */ /** 指派人 */
@Excel(name = "指派人") @Excel(name = "指派人")
...@@ -243,12 +243,12 @@ public class TWorkOrder extends BaseEntity ...@@ -243,12 +243,12 @@ public class TWorkOrder extends BaseEntity
{ {
return workAssignEnterproseName; return workAssignEnterproseName;
} }
public void setWorkAssignEnterproseId(Long workAssignEnterproseId) public void setWorkAssignEnterproseId(String workAssignEnterproseId)
{ {
this.workAssignEnterproseId = workAssignEnterproseId; this.workAssignEnterproseId = workAssignEnterproseId;
} }
public Long getWorkAssignEnterproseId() public String getWorkAssignEnterproseId()
{ {
return workAssignEnterproseId; return workAssignEnterproseId;
} }
......
...@@ -41,7 +41,7 @@ public class TWorkTask extends BaseEntity ...@@ -41,7 +41,7 @@ public class TWorkTask extends BaseEntity
/** 创建企业id */ /** 创建企业id */
@Excel(name = "创建企业id") @Excel(name = "创建企业id")
private Long createEnterpriseId; private String createEnterpriseId;
private String groupNum; private String groupNum;
...@@ -166,12 +166,12 @@ public class TWorkTask extends BaseEntity ...@@ -166,12 +166,12 @@ public class TWorkTask extends BaseEntity
{ {
return status; return status;
} }
public void setCreateEnterpriseId(Long createEnterpriseId) public void setCreateEnterpriseId(String createEnterpriseId)
{ {
this.createEnterpriseId = createEnterpriseId; this.createEnterpriseId = createEnterpriseId;
} }
public Long getCreateEnterpriseId() public String getCreateEnterpriseId()
{ {
return createEnterpriseId; return createEnterpriseId;
} }
......
...@@ -32,6 +32,6 @@ public class THiddenDangerStandingBookForm ...@@ -32,6 +32,6 @@ public class THiddenDangerStandingBookForm
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date hiddenFindDateEnd; private Date hiddenFindDateEnd;
private Long beyondEnterpriseId; private String beyondEnterpriseId;
} }
...@@ -24,7 +24,7 @@ public class TDetectorUserInspectVo { ...@@ -24,7 +24,7 @@ public class TDetectorUserInspectVo {
private String nickName; private String nickName;
/** 权属单位 */ /** 权属单位 */
private Long beyondEnterpriseId; private String beyondEnterpriseId;
/** 用户类型(1居民用户,2商业用户,3工业用户) */ /** 用户类型(1居民用户,2商业用户,3工业用户) */
@Excel(name = "用户类型") @Excel(name = "用户类型")
...@@ -101,11 +101,11 @@ public class TDetectorUserInspectVo { ...@@ -101,11 +101,11 @@ public class TDetectorUserInspectVo {
} }
public Long getBeyondEnterpriseId() { public String getBeyondEnterpriseId() {
return beyondEnterpriseId; return beyondEnterpriseId;
} }
public void setBeyondEnterpriseId(Long beyondEnterpriseId) { public void setBeyondEnterpriseId(String beyondEnterpriseId) {
this.beyondEnterpriseId = beyondEnterpriseId; this.beyondEnterpriseId = beyondEnterpriseId;
} }
......
...@@ -98,7 +98,7 @@ public interface TDetectorUserMapper ...@@ -98,7 +98,7 @@ public interface TDetectorUserMapper
* 查询用户统计信息 * 查询用户统计信息
* @return * @return
*/ */
TDetectorUserCount userStatistics(Long id); TDetectorUserCount userStatistics(String id);
/** /**
* 获取用户安检信息 * 获取用户安检信息
......
...@@ -64,12 +64,12 @@ public interface TEmployedPeopleInfoMapper ...@@ -64,12 +64,12 @@ public interface TEmployedPeopleInfoMapper
* 企业信息查询(下拉框数据) * 企业信息查询(下拉框数据)
* @return * @return
*/ */
List<TEnterpriseInfo> selectTEnterprise(Long deptId); List<TEnterpriseInfo> selectTEnterprise(String deptId);
/** /**
* 根据企业id查询企业名称 * 根据企业id查询企业名称
* @param bId * @param bId
* @return * @return
*/ */
String selectEnterpriseName(Long bId); String selectEnterpriseName(String bId);
} }
...@@ -17,7 +17,7 @@ public interface TEnterpriseInfoMapper ...@@ -17,7 +17,7 @@ public interface TEnterpriseInfoMapper
* @param enterpriseId 企业信息ID * @param enterpriseId 企业信息ID
* @return 企业信息 * @return 企业信息
*/ */
public TEnterpriseInfo selectTEnterpriseInfoById(Long enterpriseId); public TEnterpriseInfo selectTEnterpriseInfoById(String enterpriseId);
/** /**
* 查询企业信息列表 * 查询企业信息列表
...@@ -49,7 +49,7 @@ public interface TEnterpriseInfoMapper ...@@ -49,7 +49,7 @@ public interface TEnterpriseInfoMapper
* @param enterpriseId 企业信息ID * @param enterpriseId 企业信息ID
* @return 结果 * @return 结果
*/ */
public int deleteTEnterpriseInfoById(Long enterpriseId); public int deleteTEnterpriseInfoById(String enterpriseId);
/** /**
* 批量删除企业信息 * 批量删除企业信息
...@@ -57,5 +57,5 @@ public interface TEnterpriseInfoMapper ...@@ -57,5 +57,5 @@ public interface TEnterpriseInfoMapper
* @param enterpriseIds 需要删除的数据ID * @param enterpriseIds 需要删除的数据ID
* @return 结果 * @return 结果
*/ */
public int deleteTEnterpriseInfoByIds(Long[] enterpriseIds); public int deleteTEnterpriseInfoByIds(String[] enterpriseIds);
} }
...@@ -68,13 +68,13 @@ public interface TProjectInfoMapper ...@@ -68,13 +68,13 @@ public interface TProjectInfoMapper
* @param projectYear * @param projectYear
* @return * @return
*/ */
List<TProjectInfo> selectSameYear(@Param("projectYear") Date projectYear,@Param("beyondEnterpriseId") Long beyondEnterpriseId); List<TProjectInfo> selectSameYear(@Param("projectYear") Date projectYear,@Param("beyondEnterpriseId") String beyondEnterpriseId);
/** /**
* 重复年份删除方法 * 重复年份删除方法
* @param isSameYear * @param isSameYear
*/ */
void deleteisSameYear(@Param("isSameYear")Date isSameYear,@Param("beyondEnterpriseId")Long beyondEnterpriseId); void deleteisSameYear(@Param("isSameYear")Date isSameYear,@Param("beyondEnterpriseId")String beyondEnterpriseId);
/** /**
* 查询修改文件之前的路径 * 查询修改文件之前的路径
...@@ -88,7 +88,7 @@ public interface TProjectInfoMapper ...@@ -88,7 +88,7 @@ public interface TProjectInfoMapper
* @param deptId * @param deptId
* @return * @return
*/ */
String selectEnterpriseName(Long deptId); String selectEnterpriseName(String deptId);
/** /**
* *
......
...@@ -107,7 +107,7 @@ public interface ITDetectorUserService ...@@ -107,7 +107,7 @@ public interface ITDetectorUserService
* 查询用户统计信息 * 查询用户统计信息
* @return * @return
*/ */
TDetectorUserCount userStatistics(Long id); TDetectorUserCount userStatistics(String id);
/** /**
* 获取用户安检信息 * 获取用户安检信息
......
...@@ -64,11 +64,11 @@ public interface ITEmployedPeopleInfoService ...@@ -64,11 +64,11 @@ public interface ITEmployedPeopleInfoService
* 企业信息查询(下拉框数据) * 企业信息查询(下拉框数据)
* @return * @return
*/ */
public List<TEnterpriseInfo> selectTEnterprise(Long deptId); public List<TEnterpriseInfo> selectTEnterprise(String deptId);
/** /**
* 根据企业id查询企业名称 * 根据企业id查询企业名称
* @return * @return
*/ */
String selectEnterpriseName(Long bId); String selectEnterpriseName(String bId);
} }
...@@ -18,7 +18,7 @@ public interface ITEnterpriseInfoService ...@@ -18,7 +18,7 @@ public interface ITEnterpriseInfoService
* @param enterpriseId 企业信息ID * @param enterpriseId 企业信息ID
* @return 企业信息 * @return 企业信息
*/ */
public TEnterpriseInfo selectTEnterpriseInfoById(Long enterpriseId); public TEnterpriseInfo selectTEnterpriseInfoById(String enterpriseId);
public List<TEnterpriseInfoVO> enterpriseInfoList(TEnterpriseInfo tEnterpriseInfo); public List<TEnterpriseInfoVO> enterpriseInfoList(TEnterpriseInfo tEnterpriseInfo);
...@@ -52,7 +52,7 @@ public interface ITEnterpriseInfoService ...@@ -52,7 +52,7 @@ public interface ITEnterpriseInfoService
* @param enterpriseIds 需要删除的企业信息ID * @param enterpriseIds 需要删除的企业信息ID
* @return 结果 * @return 结果
*/ */
public int deleteTEnterpriseInfoByIds(Long[] enterpriseIds); public int deleteTEnterpriseInfoByIds(String[] enterpriseIds);
/** /**
* 删除企业信息信息 * 删除企业信息信息
...@@ -60,7 +60,7 @@ public interface ITEnterpriseInfoService ...@@ -60,7 +60,7 @@ public interface ITEnterpriseInfoService
* @param enterpriseId 企业信息ID * @param enterpriseId 企业信息ID
* @return 结果 * @return 结果
*/ */
public int deleteTEnterpriseInfoById(Long enterpriseId); public int deleteTEnterpriseInfoById(String enterpriseId);
} }
...@@ -67,13 +67,13 @@ public interface ITProjectInfoService ...@@ -67,13 +67,13 @@ public interface ITProjectInfoService
* @param projectYear * @param projectYear
* @return * @return
*/ */
List<TProjectInfo> selectSameYear(Date projectYear,Long beyondEnterpriseId); List<TProjectInfo> selectSameYear(Date projectYear,String beyondEnterpriseId);
/** /**
* 重复年份删除方法 * 重复年份删除方法
* @param isSameYear * @param isSameYear
*/ */
void deleteisSameYear(Date isSameYear,Long beyondEnterpriseId); void deleteisSameYear(Date isSameYear,String beyondEnterpriseId);
/** /**
* 查询修改文件之前的路径 * 查询修改文件之前的路径
...@@ -86,7 +86,7 @@ public interface ITProjectInfoService ...@@ -86,7 +86,7 @@ public interface ITProjectInfoService
* @param deptId * @param deptId
* @return * @return
*/ */
String selectEnterpriseName(Long deptId); String selectEnterpriseName(String deptId);
Map<String,Object> selectNum(); Map<String,Object> selectNum();
} }
...@@ -232,7 +232,7 @@ public class TDetectorUserServiceImpl implements ITDetectorUserService ...@@ -232,7 +232,7 @@ public class TDetectorUserServiceImpl implements ITDetectorUserService
* @return * @return
*/ */
@Override @Override
public TDetectorUserCount userStatistics(Long id) { public TDetectorUserCount userStatistics(String id) {
return tDetectorUserMapper.userStatistics(id); return tDetectorUserMapper.userStatistics(id);
} }
......
...@@ -100,7 +100,7 @@ public class TEmployedPeopleInfoServiceImpl implements ITEmployedPeopleInfoServi ...@@ -100,7 +100,7 @@ public class TEmployedPeopleInfoServiceImpl implements ITEmployedPeopleInfoServi
* @return * @return
*/ */
@Override @Override
public List<TEnterpriseInfo> selectTEnterprise(Long deptId) { public List<TEnterpriseInfo> selectTEnterprise(String deptId) {
return tEmployedPeopleInfoMapper.selectTEnterprise(deptId); return tEmployedPeopleInfoMapper.selectTEnterprise(deptId);
} }
...@@ -110,7 +110,7 @@ public class TEmployedPeopleInfoServiceImpl implements ITEmployedPeopleInfoServi ...@@ -110,7 +110,7 @@ public class TEmployedPeopleInfoServiceImpl implements ITEmployedPeopleInfoServi
* @return * @return
*/ */
@Override @Override
public String selectEnterpriseName(Long bId) { public String selectEnterpriseName(String bId) {
String s = tEmployedPeopleInfoMapper.selectEnterpriseName(bId); String s = tEmployedPeopleInfoMapper.selectEnterpriseName(bId);
return s; return s;
} }
......
...@@ -30,7 +30,7 @@ public class TEnterpriseInfoServiceImpl implements ITEnterpriseInfoService ...@@ -30,7 +30,7 @@ public class TEnterpriseInfoServiceImpl implements ITEnterpriseInfoService
* @return 企业信息 * @return 企业信息
*/ */
@Override @Override
public TEnterpriseInfo selectTEnterpriseInfoById(Long enterpriseId) public TEnterpriseInfo selectTEnterpriseInfoById(String enterpriseId)
{ {
return tEnterpriseInfoMapper.selectTEnterpriseInfoById(enterpriseId); return tEnterpriseInfoMapper.selectTEnterpriseInfoById(enterpriseId);
} }
...@@ -101,7 +101,7 @@ public class TEnterpriseInfoServiceImpl implements ITEnterpriseInfoService ...@@ -101,7 +101,7 @@ public class TEnterpriseInfoServiceImpl implements ITEnterpriseInfoService
* @return 结果 * @return 结果
*/ */
@Override @Override
public int deleteTEnterpriseInfoByIds(Long[] enterpriseIds) public int deleteTEnterpriseInfoByIds(String[] enterpriseIds)
{ {
return tEnterpriseInfoMapper.deleteTEnterpriseInfoByIds(enterpriseIds); return tEnterpriseInfoMapper.deleteTEnterpriseInfoByIds(enterpriseIds);
} }
...@@ -113,7 +113,7 @@ public class TEnterpriseInfoServiceImpl implements ITEnterpriseInfoService ...@@ -113,7 +113,7 @@ public class TEnterpriseInfoServiceImpl implements ITEnterpriseInfoService
* @return 结果 * @return 结果
*/ */
@Override @Override
public int deleteTEnterpriseInfoById(Long enterpriseId) public int deleteTEnterpriseInfoById(String enterpriseId)
{ {
return tEnterpriseInfoMapper.deleteTEnterpriseInfoById(enterpriseId); return tEnterpriseInfoMapper.deleteTEnterpriseInfoById(enterpriseId);
} }
......
...@@ -103,7 +103,7 @@ public class TProjectInfoServiceImpl implements ITProjectInfoService ...@@ -103,7 +103,7 @@ public class TProjectInfoServiceImpl implements ITProjectInfoService
* @return * @return
*/ */
@Override @Override
public List<TProjectInfo> selectSameYear(Date projectYear,Long beyondEnterpriseId) { public List<TProjectInfo> selectSameYear(Date projectYear,String beyondEnterpriseId) {
List<TProjectInfo> tProjectInfos = tProjectInfoMapper.selectSameYear(projectYear,beyondEnterpriseId); List<TProjectInfo> tProjectInfos = tProjectInfoMapper.selectSameYear(projectYear,beyondEnterpriseId);
return tProjectInfos; return tProjectInfos;
} }
...@@ -113,7 +113,7 @@ public class TProjectInfoServiceImpl implements ITProjectInfoService ...@@ -113,7 +113,7 @@ public class TProjectInfoServiceImpl implements ITProjectInfoService
* @param isSameYear * @param isSameYear
*/ */
@Override @Override
public void deleteisSameYear(Date isSameYear,Long beyondEnterpriseId) { public void deleteisSameYear(Date isSameYear,String beyondEnterpriseId) {
tProjectInfoMapper.deleteisSameYear(isSameYear,beyondEnterpriseId); tProjectInfoMapper.deleteisSameYear(isSameYear,beyondEnterpriseId);
} }
...@@ -134,7 +134,7 @@ public class TProjectInfoServiceImpl implements ITProjectInfoService ...@@ -134,7 +134,7 @@ public class TProjectInfoServiceImpl implements ITProjectInfoService
* @return * @return
*/ */
@Override @Override
public String selectEnterpriseName(Long deptId) { public String selectEnterpriseName(String deptId) {
String enterpriseName = tProjectInfoMapper.selectEnterpriseName(deptId); String enterpriseName = tProjectInfoMapper.selectEnterpriseName(deptId);
return enterpriseName; return enterpriseName;
} }
......
...@@ -96,7 +96,7 @@ public class TWorkOrderServiceImpl implements ITWorkOrderService ...@@ -96,7 +96,7 @@ public class TWorkOrderServiceImpl implements ITWorkOrderService
SysUser user = SecurityUtils.getLoginUser().getUser(); SysUser user = SecurityUtils.getLoginUser().getUser();
tWorkOrder.setCreateTime(DateUtils.getNowDate()); tWorkOrder.setCreateTime(DateUtils.getNowDate());
tWorkOrder.setCreateBy(SecurityUtils.getUsername()); tWorkOrder.setCreateBy(SecurityUtils.getUsername());
Long enterpriseId = user.getDeptId(); String enterpriseId = user.getDeptId();
if(null != enterpriseId){ if(null != enterpriseId){
if("-2".equals(enterpriseId.toString())){ if("-2".equals(enterpriseId.toString())){
tWorkOrder.setWorkCreateEnterpriseId("-2"); tWorkOrder.setWorkCreateEnterpriseId("-2");
...@@ -118,8 +118,8 @@ public class TWorkOrderServiceImpl implements ITWorkOrderService ...@@ -118,8 +118,8 @@ public class TWorkOrderServiceImpl implements ITWorkOrderService
} }
} }
if(tWorkOrder.getCreateType() != null && tWorkOrder.getCreateType()==2){ if(tWorkOrder.getCreateType() != null && tWorkOrder.getCreateType()==2){
tWorkOrder.setShangbaoTime(new Date(new Date().getTime()+1000*60*5)); tWorkOrder.setShangbaoTime(new Date(System.currentTimeMillis()+1000*60*5));
tWorkOrder.setJiedanTime(new Date(new Date().getTime()-1000*60*5)); tWorkOrder.setJiedanTime(new Date(System.currentTimeMillis()-1000*60*5));
} }
return tWorkOrderMapper.insertTWorkOrder(tWorkOrder); return tWorkOrderMapper.insertTWorkOrder(tWorkOrder);
} }
......
...@@ -53,7 +53,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -53,7 +53,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
order by enterprise_id desc order by enterprise_id desc
</select> </select>
<select id="selectTEnterpriseInfoById" parameterType="Long" resultMap="TEnterpriseInfoResult"> <select id="selectTEnterpriseInfoById" parameterType="String" resultMap="TEnterpriseInfoResult">
<include refid="selectTEnterpriseInfoVo"/> <include refid="selectTEnterpriseInfoVo"/>
where enterprise_id = #{enterpriseId} and is_del='0' where enterprise_id = #{enterpriseId} and is_del='0'
</select> </select>
...@@ -61,6 +61,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -61,6 +61,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<insert id="insertTEnterpriseInfo" parameterType="TEnterpriseInfo" useGeneratedKeys="true" keyProperty="enterpriseId"> <insert id="insertTEnterpriseInfo" parameterType="TEnterpriseInfo" useGeneratedKeys="true" keyProperty="enterpriseId">
insert into t_enterprise_info insert into t_enterprise_info
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="enterpriseId != null">enterprise_id,</if>
<if test="createEnterpriseId != null">create_enterprise_id,</if> <if test="createEnterpriseId != null">create_enterprise_id,</if>
<if test="enterpriseName != null">enterprise_name,</if> <if test="enterpriseName != null">enterprise_name,</if>
<if test="enterpriseType!=null">enterprise_type,</if> <if test="enterpriseType!=null">enterprise_type,</if>
...@@ -82,6 +83,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -82,6 +83,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="doDusiness != null">do_business,</if> <if test="doDusiness != null">do_business,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="enterpriseId != null">#{enterpriseId},</if>
<if test="createEnterpriseId != null">#{createEnterpriseId},</if> <if test="createEnterpriseId != null">#{createEnterpriseId},</if>
<if test="enterpriseName != null">#{enterpriseName},</if> <if test="enterpriseName != null">#{enterpriseName},</if>
<if test="enterpriseType != null"> #{enterpriseType},</if> <if test="enterpriseType != null"> #{enterpriseType},</if>
...@@ -128,7 +130,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -128,7 +130,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where enterprise_id = #{enterpriseId} where enterprise_id = #{enterpriseId}
</update> </update>
<update id="deleteTEnterpriseInfoById" parameterType="Long"> <update id="deleteTEnterpriseInfoById" parameterType="String">
update t_enterprise_info set is_del='1' where enterprise_id = #{enterpriseId} update t_enterprise_info set is_del='1' where enterprise_id = #{enterpriseId}
</update> </update>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment