bug修改

This commit is contained in:
liang.chao 2024-03-22 17:38:48 +08:00
parent 9528d79d90
commit 3e32f0087d
12 changed files with 132 additions and 57 deletions

View File

@ -1,5 +1,6 @@
package com.bonus.sgzb.base.api.domain; package com.bonus.sgzb.base.api.domain;
import com.bonus.sgzb.common.core.annotation.Excel;
import com.bonus.sgzb.common.core.web.domain.BaseEntity; import com.bonus.sgzb.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
@ -30,6 +31,7 @@ public class MaType extends BaseEntity {
/** 类型名称 */ /** 类型名称 */
@ApiModelProperty(value = "类型名称") @ApiModelProperty(value = "类型名称")
@Excel(name = "名称")
private String typeName; private String typeName;
/** 类型ID */ /** 类型ID */
@ -58,6 +60,7 @@ public class MaType extends BaseEntity {
/** 计量单位 */ /** 计量单位 */
@ApiModelProperty(value = "计量单位") @ApiModelProperty(value = "计量单位")
@Excel(name = "计量单位")
private String unitName; private String unitName;
/** 管理方式 */ /** 管理方式 */
@ -66,6 +69,7 @@ public class MaType extends BaseEntity {
/** 租赁单价 */ /** 租赁单价 */
@ApiModelProperty(value = "租赁单价") @ApiModelProperty(value = "租赁单价")
@Excel(name = "租赁价格")
private String leasePrice; private String leasePrice;
/** 租赁单价 */ /** 租赁单价 */
@ -79,10 +83,12 @@ public class MaType extends BaseEntity {
/** 原价 */ /** 原价 */
@ApiModelProperty(value = "原价") @ApiModelProperty(value = "原价")
@Excel(name = "原值")
private String buyPrice; private String buyPrice;
/** 丢失赔偿价 */ /** 丢失赔偿价 */
@ApiModelProperty(value = "丢失赔偿价") @ApiModelProperty(value = "丢失|赔偿价")
@Excel(name = "丢失赔偿价")
private String payPrice; private String payPrice;
/** 层级 */ /** 层级 */
@ -137,6 +143,7 @@ public class MaType extends BaseEntity {
/** 备注 */ /** 备注 */
@ApiModelProperty(value = "备注") @ApiModelProperty(value = "备注")
@Excel(name = "备注信息")
private String remark; private String remark;
/** 数据所属组织 */ /** 数据所属组织 */
@ -145,6 +152,7 @@ public class MaType extends BaseEntity {
/** 图片名称 */ /** 图片名称 */
@ApiModelProperty(value = "图片名称") @ApiModelProperty(value = "图片名称")
@Excel(name = "图片")
private String photoName; private String photoName;
/** 图片路径 */ /** 图片路径 */
@ -154,6 +162,7 @@ public class MaType extends BaseEntity {
/** 文档名称 */ /** 文档名称 */
@ApiModelProperty(value = "文档名称") @ApiModelProperty(value = "文档名称")
@Excel(name = "文档资料")
private String documentName; private String documentName;
/** 文档路径 */ /** 文档路径 */
@ -166,6 +175,7 @@ public class MaType extends BaseEntity {
/** 库管员名称 */ /** 库管员名称 */
@ApiModelProperty(value = "库管员名称") @ApiModelProperty(value = "库管员名称")
@Excel(name = "库管员")
private String keeperUserName; private String keeperUserName;
/** 库管员id */ /** 库管员id */
@ -182,6 +192,7 @@ public class MaType extends BaseEntity {
/** 资产属性名称 */ /** 资产属性名称 */
@ApiModelProperty(value = "资产属性名称") @ApiModelProperty(value = "资产属性名称")
@Excel(name = "资产属性")
private String propName; private String propName;
/** 资产属性名称 */ /** 资产属性名称 */

View File

@ -202,6 +202,7 @@ public class TmTaskController extends BaseController {
leaseApplyInfo.setCompanyId(leaseApplyDetailsList.get(0).getCompanyId()); // 设置设备所属分公司,用于交给哪家审核 leaseApplyInfo.setCompanyId(leaseApplyDetailsList.get(0).getCompanyId()); // 设置设备所属分公司,用于交给哪家审核
leaseApplyInfo.setType("2"); // 设置审批层级先固定2层后期根据接口传入Type区分来源设定 leaseApplyInfo.setType("2"); // 设置审批层级先固定2层后期根据接口传入Type区分来源设定
leaseApplyInfo.setLeaseType(task.getLeaseType()); leaseApplyInfo.setLeaseType(task.getLeaseType());
leaseApplyInfo.setEstimateLeaseTime(task.getEstimateLeaseTime());
// 创建领料任务返回领料任务编号 // 创建领料任务返回领料任务编号
boolean addLeaseTaskResult = leaseApplyInfoService.genderLeaseCode(leaseApplyInfo) > 0; boolean addLeaseTaskResult = leaseApplyInfoService.genderLeaseCode(leaseApplyInfo) > 0;

View File

@ -162,4 +162,9 @@ public class LeaseApplyInfo implements Serializable {
@ApiModelProperty(value="领用类型0 短期租赁 1长期领用") @ApiModelProperty(value="领用类型0 短期租赁 1长期领用")
private String leaseType; private String leaseType;
@ApiModelProperty(value="预领取时间")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date estimateLeaseTime;
} }

View File

@ -1,5 +1,6 @@
package com.bonus.sgzb.app.domain; package com.bonus.sgzb.app.domain;
import com.alibaba.fastjson2.annotation.JSONField;
import com.bonus.sgzb.common.core.annotation.Excel; import com.bonus.sgzb.common.core.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
@ -244,8 +245,9 @@ public class TmTask implements Serializable {
private String manageType; private String manageType;
private String typeId; private String typeId;
@ApiModelProperty(value="预计领料时间(重庆)")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date estimateLeaseTime;
} }

View File

@ -992,6 +992,7 @@ public class TmTaskServiceImpl implements TmTaskService {
if (res == 0) { if (res == 0) {
throw new RuntimeException("insertNewData异常"); throw new RuntimeException("insertNewData异常");
} }
// 再插入lease apply detail
res = insertNewDetailData(tmTask); res = insertNewDetailData(tmTask);
if (res == 0) { if (res == 0) {
throw new RuntimeException("insertNewDetailData异常"); throw new RuntimeException("insertNewDetailData异常");

View File

@ -1,8 +1,10 @@
package com.bonus.sgzb.base.controller; package com.bonus.sgzb.base.controller;
import com.bonus.sgzb.base.domain.BmProjectInfo;
import com.bonus.sgzb.base.domain.BmProjectLot; import com.bonus.sgzb.base.domain.BmProjectLot;
import com.bonus.sgzb.base.service.BmProjectLotService; import com.bonus.sgzb.base.service.BmProjectLotService;
import com.bonus.sgzb.common.core.utils.poi.ExcelUtil;
import com.bonus.sgzb.common.core.web.controller.BaseController; import com.bonus.sgzb.common.core.web.controller.BaseController;
import com.bonus.sgzb.common.core.web.domain.AjaxResult; import com.bonus.sgzb.common.core.web.domain.AjaxResult;
import com.bonus.sgzb.common.core.web.page.TableDataInfo; import com.bonus.sgzb.common.core.web.page.TableDataInfo;
@ -15,7 +17,7 @@ import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List; import java.util.List;
/** /**
@ -26,7 +28,7 @@ import java.util.List;
@Api(tags = "标段工程项目") @Api(tags = "标段工程项目")
@RestController @RestController
@RequestMapping("/bmProjectLot") @RequestMapping("/bmProjectLot")
public class BmProjectLotController extends BaseController{ public class BmProjectLotController extends BaseController {
@Autowired @Autowired
private BmProjectLotService bmProjectLotService; private BmProjectLotService bmProjectLotService;
@ -36,21 +38,33 @@ public class BmProjectLotController extends BaseController{
*/ */
@ApiOperation(value = "获取标段工程项目") @ApiOperation(value = "获取标段工程项目")
@GetMapping("/projectLotAll") @GetMapping("/projectLotAll")
public TableDataInfo getProjectLotAll(BmProjectLot bmProjectLot) public TableDataInfo getProjectLotAll(BmProjectLot bmProjectLot) {
{
startPage(); startPage();
List<BmProjectLot> list = bmProjectLotService.getProjectLotAll(bmProjectLot); List<BmProjectLot> list = bmProjectLotService.getProjectLotAll(bmProjectLot);
return getDataTable(list); return getDataTable(list);
} }
/**
* 获取标段工程项
*/
@ApiOperation(value = "导出标段工程项目")
@PostMapping("/export")
public void export(HttpServletResponse response, BmProjectLot bmProjectLot) {
startPage();
List<BmProjectLot> list = bmProjectLotService.getProjectLotAll(bmProjectLot);
ExcelUtil<BmProjectLot> util = new ExcelUtil<BmProjectLot>(BmProjectLot.class);
util.exportExcel(response, list, "标段工程");
}
/** /**
* 新增项目管理 * 新增项目管理
*/ */
@ApiOperation("新增标段工程项目") @ApiOperation("新增标段工程项目")
@Log(title = "参数管理", businessType = BusinessType.INSERT) @Log(title = "参数管理", businessType = BusinessType.INSERT)
@PostMapping @PostMapping
public AjaxResult projectLotAdd(@Validated @RequestBody BmProjectLot bmProjectLot) public AjaxResult projectLotAdd(@Validated @RequestBody BmProjectLot bmProjectLot) {
{
return toAjax(bmProjectLotService.projectLotAdd(bmProjectLot)); return toAjax(bmProjectLotService.projectLotAdd(bmProjectLot));
} }
@ -59,9 +73,8 @@ public class BmProjectLotController extends BaseController{
*/ */
@ApiOperation("删除项目管理") @ApiOperation("删除项目管理")
@Log(title = "参数管理", businessType = BusinessType.DELETE) @Log(title = "参数管理", businessType = BusinessType.DELETE)
@DeleteMapping ("/{lotId}") @DeleteMapping("/{lotId}")
public AjaxResult deleteProjectLotById(@PathVariable Long lotId) public AjaxResult deleteProjectLotById(@PathVariable Long lotId) {
{
bmProjectLotService.deleteProjectLotById(lotId); bmProjectLotService.deleteProjectLotById(lotId);
return success(); return success();
} }
@ -72,8 +85,7 @@ public class BmProjectLotController extends BaseController{
@ApiOperation("修改项目管理") @ApiOperation("修改项目管理")
@Log(title = "参数管理", businessType = BusinessType.UPDATE) @Log(title = "参数管理", businessType = BusinessType.UPDATE)
@PutMapping @PutMapping
public AjaxResult edit(@Validated @RequestBody BmProjectLot bmProjectLot) public AjaxResult edit(@Validated @RequestBody BmProjectLot bmProjectLot) {
{
return toAjax(bmProjectLotService.updateBmProjectLot(bmProjectLot)); return toAjax(bmProjectLotService.updateBmProjectLot(bmProjectLot));
} }

View File

@ -46,49 +46,54 @@ public class MaPropInfoController extends BaseController {
/** /**
* 查询资产属性列表 * 查询资产属性列表
*
* @param maPropInfo * @param maPropInfo
* @return * @return
*/ */
@GetMapping("/list") @GetMapping("/list")
@ApiOperation(value = "查询资产属性列表") @ApiOperation(value = "查询资产属性列表")
public TableDataInfo list(MaPropInfo maPropInfo) public TableDataInfo list(MaPropInfo maPropInfo) {
{
startPage(); startPage();
List<MaPropInfo> list = maPropInfoService.selectMaPropInfoList(maPropInfo); List<MaPropInfo> list = maPropInfoService.selectMaPropInfoList(maPropInfo);
return getDataTable(list); return getDataTable(list);
} }
/** /**
* 查询资产属性列表 * 查询资产属性列表
* @param查询资产属性列表 *
* @return * @return
* @param查询资产属性列表
*/ */
@GetMapping("/lists") @GetMapping("/lists")
@ApiOperation(value = "查询资产属性列表") @ApiOperation(value = "查询资产属性列表")
public TableDataInfo list(String bindingName) public TableDataInfo list(String bindingName) {
{
List<MaPropInfo> list = maPropInfoService.selectMaPropInfoLists(bindingName); List<MaPropInfo> list = maPropInfoService.selectMaPropInfoLists(bindingName);
return getDataTable(list); return getDataTable(list);
} }
/** /**
* 根据类型名称查询类型 * 根据类型名称查询类型
*
* @return 结果 * @return 结果
*/ */
@ApiOperation(value = "根据类型名称查询类型") @ApiOperation(value = "根据类型名称查询类型")
@GetMapping("/getMaTypeList") @GetMapping("/getMaTypeList")
public TableDataInfo getMaTypeList(String typeName){ public TableDataInfo getMaTypeList(String typeName) {
startPage(); startPage();
List<MaType> maTypeList = maPropInfoService.selectMaType(typeName); List<MaType> maTypeList = maPropInfoService.selectMaType(typeName);
return getDataTable(maTypeList); return getDataTable(maTypeList);
} }
/** /**
* 资产属性配置保存 * 资产属性配置保存
*
* @param maPropSet * @param maPropSet
* @return * @return
*/ */
@ApiOperation(value = "资产属性配置保存") @ApiOperation(value = "资产属性配置保存")
@Log(title = "参数管理", businessType = BusinessType.INSERT) @Log(title = "参数管理", businessType = BusinessType.INSERT)
@PostMapping("/save") @PostMapping("/save")
public AjaxResult save(@Validated @RequestBody MaPropSet maPropSet){ public AjaxResult save(@Validated @RequestBody MaPropSet maPropSet) {
// Long fieldValue =maPropSet.getTypeId(); // Long fieldValue =maPropSet.getTypeId();
// Long fieldValues =maPropSet.getPropId(); // Long fieldValues =maPropSet.getPropId();
// if (maPropSet.getPropName() != null){ // if (maPropSet.getPropName() != null){
@ -98,43 +103,47 @@ public class MaPropInfoController extends BaseController {
return toAjax(maPropInfoService.save(maPropSet)); return toAjax(maPropInfoService.save(maPropSet));
} }
/** /**
* 新建资产属性 * 新建资产属性
*
* @param maPropInfo * @param maPropInfo
* @return * @return
*/ */
@ApiOperation(value = "新建资产属性") @ApiOperation(value = "新建资产属性")
@Log(title = "参数管理", businessType = BusinessType.INSERT) @Log(title = "参数管理", businessType = BusinessType.INSERT)
@PostMapping @PostMapping
public AjaxResult add(@Validated @RequestBody MaPropInfo maPropInfo){ public AjaxResult add(@Validated @RequestBody MaPropInfo maPropInfo) {
if (!maPropInfoService.checkPropNameUnique(maPropInfo)) { if (!maPropInfoService.checkPropNameUnique(maPropInfo)) {
return error("新增资产名称'" + maPropInfo.getPropName() + "'失败,资产名称已存在"); return error("新增资产名称'" + maPropInfo.getPropName() + "'失败,资产名称已存在");
} }
maPropInfo.setCreateBy(SecurityUtils.getUsername()); maPropInfo.setCreateBy(SecurityUtils.getLoginUser().getUsername());
return toAjax(maPropInfoService.insertMaPropInfo(maPropInfo)); return toAjax(maPropInfoService.insertMaPropInfo(maPropInfo));
} }
/** /**
* 删除资产管理 * 删除资产管理
*
* @param propId * @param propId
* @return * @return
*/ */
@ApiOperation(value = "删除资产管理") @ApiOperation(value = "删除资产管理")
@Log(title = "参数管理", businessType = BusinessType.DELETE) @Log(title = "参数管理", businessType = BusinessType.DELETE)
@DeleteMapping("/{propId}") @DeleteMapping("/{propId}")
public AjaxResult delete(@PathVariable("propId") Long propId){ public AjaxResult delete(@PathVariable("propId") Long propId) {
return toAjax(maPropInfoService.deleteMaPropById(propId)); return toAjax(maPropInfoService.deleteMaPropById(propId));
} }
/** /**
* 修改资产管理 * 修改资产管理
*
* @param maPropInfo * @param maPropInfo
* @return * @return
*/ */
@ApiOperation(value = "修改资产管理") @ApiOperation(value = "修改资产管理")
@Log(title = "参数管理", businessType = BusinessType.UPDATE) @Log(title = "参数管理", businessType = BusinessType.UPDATE)
@PutMapping @PutMapping
public AjaxResult update(@Validated @RequestBody MaPropInfo maPropInfo){ public AjaxResult update(@Validated @RequestBody MaPropInfo maPropInfo) {
if (!maPropInfoService.checkPropNameUnique(maPropInfo)) { if (!maPropInfoService.checkPropNameUnique(maPropInfo)) {
return error("新增资产名称'" + maPropInfo.getPropName() + "'失败,资产名称已存在"); return error("新增资产名称'" + maPropInfo.getPropName() + "'失败,资产名称已存在");
} }
@ -143,22 +152,38 @@ public class MaPropInfoController extends BaseController {
} }
/** /**
* 资产属性导出 * 资产属性管理导出
*
* @param response * @param response
* @param propName * @param maPropInfo
*/ */
@ApiOperation(value = "资产属性导出") @ApiOperation(value = "资产属性管理导出")
@Log(title = "资产属性导出", businessType = BusinessType.EXPORT) @Log(title = "资产属性管理导出", businessType = BusinessType.EXPORT)
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, String propName) public void export(HttpServletResponse response, MaPropInfo maPropInfo) {
{ List<MaPropInfo> list = maPropInfoService.selectMaPropInfoList(maPropInfo);
// List<MaPropInfo> list = maPropInfoService.selectMaPropInfoList(propName); ExcelUtil<MaPropInfo> util = new ExcelUtil<MaPropInfo>(MaPropInfo.class);
// ExcelUtil<MaPropInfo> util = new ExcelUtil<MaPropInfo>(MaPropInfo.class); util.exportExcel(response, list, "资产属性管理数据");
// util.exportExcel(response, list, "资产属性类型数据"); }
/**
* 资产属性配置导出
*
* @param response
* @param typeName
*/
@ApiOperation(value = "资产属性配置导出")
@Log(title = "资产属性配置导出", businessType = BusinessType.EXPORT)
@PostMapping("/exportConfig")
public void exportConfig(HttpServletResponse response, String typeName) {
List<MaType> list = maPropInfoService.selectMaType(typeName);
ExcelUtil<MaType> util = new ExcelUtil<MaType>(MaType.class);
util.exportExcel(response, list, "资产属性配置数据");
} }
/** /**
* 资产属性管理导入 * 资产属性管理导入
*
* @param file * @param file
* @param updateSupport * @param updateSupport
* @return * @return
@ -167,8 +192,7 @@ public class MaPropInfoController extends BaseController {
@ApiOperation(value = "资产属性管理导入") @ApiOperation(value = "资产属性管理导入")
@Log(title = "资产属性管理导入", businessType = BusinessType.IMPORT) @Log(title = "资产属性管理导入", businessType = BusinessType.IMPORT)
@PostMapping("/importData") @PostMapping("/importData")
public AjaxResult importData(MultipartFile file, boolean updateSupport) throws Exception public AjaxResult importData(MultipartFile file, boolean updateSupport) throws Exception {
{
String fileName = file.getOriginalFilename(); String fileName = file.getOriginalFilename();
if (fileName != null) { if (fileName != null) {
String fileExtension = fileName.substring(fileName.lastIndexOf(".") + 1); String fileExtension = fileName.substring(fileName.lastIndexOf(".") + 1);

View File

@ -1,5 +1,6 @@
package com.bonus.sgzb.base.vo; package com.bonus.sgzb.base.vo;
import com.bonus.sgzb.common.core.annotation.Excel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
@ -25,6 +26,7 @@ public class MaLabelBindVO {
private Long labelType; private Long labelType;
//标签编号 //标签编号
@Excel(name = "标签编号", sort = 2)
@ApiModelProperty(value = "标签编号") @ApiModelProperty(value = "标签编号")
private String labelCode; private String labelCode;
@ -34,6 +36,7 @@ public class MaLabelBindVO {
//绑定时间 //绑定时间
@ApiModelProperty(value = "绑定时间") @ApiModelProperty(value = "绑定时间")
@Excel(name = "绑定时间", sort = 8)
private String bindTime; private String bindTime;
//是否绑定(0 , 1 ) //是否绑定(0 , 1 )
@ -41,37 +44,43 @@ public class MaLabelBindVO {
private String isBind; private String isBind;
//规格型号 //规格型号
@ApiModelProperty(value = "规格型号") @ApiModelProperty(value = "规格型号")
@Excel(name = "规格型号", sort = 5)
private String typeName; private String typeName;
@ApiModelProperty(value = "规格型号") @ApiModelProperty(value = "规格型号")
private String modelId; private String modelId;
//设备类型 //设备类型
@ApiModelProperty(value = "设备类型") @ApiModelProperty(value = "设备类型")
@Excel(name = "物品名称", sort = 4)
private String modelName; private String modelName;
//物品种类 //物品种类
@ApiModelProperty(value = "物品种类") @ApiModelProperty(value = "物品种类")
private String wpName; private String wpName;
//物品种类 //物品种类
@ApiModelProperty(value = "物品种类") @ApiModelProperty(value = "物品种类")
@Excel(name = "物品类型", sort = 3)
private String kindName; private String kindName;
//机具编号 //机具编号
@ApiModelProperty(value = "类型名称") @ApiModelProperty(value = "设备编码")
@Excel(name = "设备编码", sort = 6)
private String maCode; private String maCode;
//机具编号 //机具编号
@ApiModelProperty(value = "类型名称") @ApiModelProperty(value = "机具id")
private String maId; private String maId;
//机具编号 //机具编号
@ApiModelProperty(value = "组织") @ApiModelProperty(value = "组织")
private String companyId; private String companyId;
@ApiModelProperty(value = "物品种类") @ApiModelProperty(value = "物品种类")
@Excel(name = "标签类型", sort = 1)
private String name; private String name;
//是否绑定(0 , 1 ) //是否绑定(0 , 1 )
@ApiModelProperty(value = "狀態") @ApiModelProperty(value = "状态")
@Excel(name = "操作类型", sort = 9, readConverterExp = "1=正常")
private String status; private String status;
@ApiModelProperty(value = "用户姓名") @ApiModelProperty(value = "用户姓名")
@Excel(name = "绑定人员", sort = 7)
private String userName; private String userName;
@ApiModelProperty(value = "中间表主键") @ApiModelProperty(value = "中间表主键")
private String id; private String id;

View File

@ -125,6 +125,9 @@
<if test="leaseType != null and leaseType != ''"> <if test="leaseType != null and leaseType != ''">
lease_type, lease_type,
</if> </if>
<if test="estimateLeaseTime != null">
estimate_lease_time,
</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="code != null"> <if test="code != null">
@ -181,6 +184,9 @@
<if test="leaseType != null and leaseType != ''"> <if test="leaseType != null and leaseType != ''">
#{leaseType,jdbcType=VARCHAR}, #{leaseType,jdbcType=VARCHAR},
</if> </if>
<if test="estimateLeaseTime != null">
#{estimateLeaseTime,jdbcType=TIMESTAMP},
</if>
</trim> </trim>
</insert> </insert>

View File

@ -458,14 +458,14 @@
tt.*, su.phonenumber AS phoneNumber, sd.dept_name as deptName, tt.*, su.phonenumber AS phoneNumber, sd.dept_name as deptName,
bpl.lot_id as proId,bpl.lot_name as proName, bpl.lot_id as proId,bpl.lot_name as proName,
bui.unit_id as unitId,bui.unit_name as unitName, bui.unit_id as unitId,bui.unit_name as unitName,
lai.lease_person as leasePerson, lai.phone as leasePhone, tt.create_by as applyFor,d.`name` as taskName,lai.lease_type as leaseType, lai.lease_person as leasePerson, lai.phone as leasePhone, tt.create_by as applyFor,d.`name` as taskName,lai.lease_type as leaseType,lai.estimate_lease_time as estimateLeaseTime,
case when d.id = '30' then lai.company_audit_remark case when d.id = '30' then lai.company_audit_remark
when d.id = '31' then lai.dept_audit_remark when d.id = '31' then lai.dept_audit_remark
when d.id = '32' then lai.direct_audit_remark when d.id = '32' then lai.direct_audit_remark
when d.id = '98' then lai.company_audit_remark when d.id = '98' then lai.company_audit_remark
when d.id = '99' then lai.dept_audit_remark when d.id = '99' then lai.dept_audit_remark
when d.id = '100' then lai.direct_audit_remark when d.id = '100' then lai.direct_audit_remark
end examineStatus , end examineStatus,
d.id as examineStatusId, d.id as examineStatusId,
bai.agreement_code as agreementCode, bai.agreement_code as agreementCode,
tt.create_time as createTimes, tt.update_time as updateTimes tt.create_time as createTimes, tt.update_time as updateTimes
@ -494,11 +494,12 @@
</if> </if>
<if test="record.projectId != null and record.projectId != ''"> <if test="record.projectId != null and record.projectId != ''">
AND bpi.pro_id = #{record.projectId} AND bpl.lot_id = #{record.projectId}
</if> </if>
<if test="record.keyWord != null and record.keyWord != ''"> <if test="record.keyWord != null and record.keyWord != ''">
AND bai.agreement_code like concat('%', #{record.keyWord}, '%') AND (bai.agreement_code like concat('%', #{record.keyWord}, '%') or
tt.code like concat('%', #{record.keyWord}, '%'))
</if> </if>
ORDER BY tt.update_time DESC ORDER BY tt.update_time DESC
</select> </select>
@ -508,7 +509,7 @@
tt.*, su.phonenumber AS phoneNumber, sd.dept_name as deptName, tt.*, su.phonenumber AS phoneNumber, sd.dept_name as deptName,
bpl.lot_id as proId,bpl.lot_name as proName, bpl.lot_id as proId,bpl.lot_name as proName,
bui.unit_id as unitId,bui.unit_name as unitName, bui.unit_id as unitId,bui.unit_name as unitName,
lai.lease_person as leasePerson, lai.phone as leasePhone, tt.create_by as applyFor,d.`name` as taskName, lai.lease_person as leasePerson, lai.phone as leasePhone,lai.lease_type as leaseType, lai.estimate_lease_time as estimateLeaseTime,tt.create_by as applyFor,d.`name` as taskName,
case when d.id = '30' then lai.company_audit_remark case when d.id = '30' then lai.company_audit_remark
when d.id = '31' then lai.dept_audit_remark when d.id = '31' then lai.dept_audit_remark
when d.id = '32' then lai.direct_audit_remark when d.id = '32' then lai.direct_audit_remark
@ -544,7 +545,7 @@
</if> </if>
<if test="record.projectId != null and record.projectId != ''"> <if test="record.projectId != null and record.projectId != ''">
AND bpi.pro_id = #{record.projectId} AND bpl.lot_id = #{record.projectId}
</if> </if>
<if test="record.keyWord != null and record.keyWord != ''"> <if test="record.keyWord != null and record.keyWord != ''">
@ -626,6 +627,7 @@
lai.direct_audit_time as directAuditTime, lai.direct_audit_time as directAuditTime,
lai.direct_audit_remark as directAuditRemark, lai.direct_audit_remark as directAuditRemark,
lai.lease_type as leaseType, lai.lease_type as leaseType,
lai.estimate_lease_time as estimateLeaseTime,
d.id as examineStatusId, d.id as examineStatusId,
bai.agreement_code as agreementCode, bai.agreement_code as agreementCode,
@ -710,6 +712,7 @@
company_audit_by = #{record.companyAuditBy}, company_audit_by = #{record.companyAuditBy},
company_audit_time = now(), company_audit_time = now(),
company_audit_remark = #{record.companyAuditRemark}, company_audit_remark = #{record.companyAuditRemark},
status = #{record.status},
</if> </if>
<if test="record.examineStatusId == 99 and record.examineStatusId == '99'"> <if test="record.examineStatusId == 99 and record.examineStatusId == '99'">
dept_audit_by = #{record.companyAuditBy}, dept_audit_by = #{record.companyAuditBy},
@ -808,7 +811,7 @@
tt.*, su.phonenumber AS phoneNumber, sd.dept_name as deptName, tt.*, su.phonenumber AS phoneNumber, sd.dept_name as deptName,
bpl.lot_id as proId,bpl.lot_name as proName, bpl.lot_id as proId,bpl.lot_name as proName,
bui.unit_id as unitId,bui.unit_name as unitName, bui.unit_id as unitId,bui.unit_name as unitName,
lai.lease_person as leasePerson, lai.phone as leasePhone, tt.create_by as applyFor,d.`name` as taskName,lai.lease_type as leaseType, lai.lease_person as leasePerson, lai.phone as leasePhone, tt.create_by as applyFor,d.`name` as taskName,lai.lease_type as leaseType,lai.estimate_lease_time as estimateLeaseTime,
case when d.id = '30' then lai.company_audit_remark case when d.id = '30' then lai.company_audit_remark
when d.id = '31' then lai.dept_audit_remark when d.id = '31' then lai.dept_audit_remark
when d.id = '32' then lai.direct_audit_remark when d.id = '32' then lai.direct_audit_remark
@ -844,11 +847,12 @@
</if> </if>
<if test="record.projectId != null and record.projectId != ''"> <if test="record.projectId != null and record.projectId != ''">
AND bpi.pro_id = #{record.projectId} AND bpl.lot_id = #{record.projectId}
</if> </if>
<if test="record.keyWord != null and record.keyWord != ''"> <if test="record.keyWord != null and record.keyWord != ''">
AND bai.agreement_code like concat('%', #{record.keyWord}, '%') AND (bai.agreement_code like concat('%', #{record.keyWord}, '%') or
tt.code like concat('%', #{record.keyWord}, '%'))
</if> </if>
ORDER BY tt.update_time DESC ORDER BY tt.update_time DESC
</select> </select>
@ -912,7 +916,7 @@
LEFT JOIN lease_apply_details lad on lai.id = lad.parennt_id LEFT JOIN lease_apply_details lad on lai.id = lad.parennt_id
LEFT JOIN ma_type_keeper mtk on lad.type_id = mtk.type_id LEFT JOIN ma_type_keeper mtk on lad.type_id = mtk.type_id
WHERE tt.task_status in(33,34,35) WHERE tt.task_status in(33,34,35)
<if test="userId != '1'"> <if test="userId != 1">
and mtk.user_id = #{userId} and mtk.user_id = #{userId}
</if> </if>
GROUP BY lai.id GROUP BY lai.id
@ -937,7 +941,7 @@
LEFT JOIN ma_type_keeper mtk on lad.type_id = mtk.type_id LEFT JOIN ma_type_keeper mtk on lad.type_id = mtk.type_id
WHERE WHERE
lad.parennt_id = #{id} lad.parennt_id = #{id}
<if test="userId != '1'"> <if test="userId != 1">
and mtk.user_id = #{userId} and mtk.user_id = #{userId}
</if> </if>
</select> </select>

View File

@ -224,7 +224,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select> </select>
<select id="checkPropNameUnique" resultType="com.bonus.sgzb.base.domain.MaPropInfo" resultMap="MaPropInfoResult"> <select id="checkPropNameUnique" resultType="com.bonus.sgzb.base.domain.MaPropInfo" resultMap="MaPropInfoResult">
<include refid="selectMaPropInfoVo"/> <include refid="selectMaPropInfoVo"/>
where prop_name = #{propName} limit 1 where prop_name = #{propName} and del_flag = '0' limit 1
</select> </select>
<select id="checkPropIdUnique" resultType="com.bonus.sgzb.base.domain.MaPropSet" resultMap="MaPropSetResult"> <select id="checkPropIdUnique" resultType="com.bonus.sgzb.base.domain.MaPropSet" resultMap="MaPropSetResult">
select id,prop_id,type_id,status,del_flag,create_by,create_time,update_by,update_time,remark,company_id select id,prop_id,type_id,status,del_flag,create_by,create_time,update_by,update_time,remark,company_id

View File

@ -217,7 +217,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</delete> </delete>
<delete id="deleteUserByIds" parameterType="Long"> <delete id="deleteUserByIds" parameterType="Long">
update sys_user set del_flag = '2' where user_id in delete from sys_user where user_id in
<foreach collection="array" item="userId" open="(" separator="," close=")"> <foreach collection="array" item="userId" open="(" separator="," close=")">
#{userId} #{userId}
</foreach> </foreach>