Explorar el Código

【NEW】新增检测表-全面检查记录。

hao hace 4 años
padre
commit
c5088c19fd

+ 78 - 0
railway-admin/src/main/java/com/railway/web/controller/business/catenary/BusJcbQmjcjlController.java

@@ -0,0 +1,78 @@
+package com.railway.web.controller.business.catenary;
+
+import com.railway.business.catenary.domain.BusJcbQmjcjl;
+import com.railway.business.catenary.service.IBusJcbQmjcjlService;
+import com.railway.common.core.controller.BaseController;
+import com.railway.common.core.domain.AjaxResult;
+import com.railway.common.core.page.TableDataInfo;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.*;
+
+import javax.validation.Valid;
+import java.util.List;
+
+@Api(value = "rest/catenary/bus/jcb/qmjcjl", tags = "检测表-全面检查记录")
+@RestController
+@Validated
+@RequestMapping(value = "business/catenary/bus/jcb/qmjcjl")
+public class BusJcbQmjcjlController extends BaseController {
+    @Autowired
+    private IBusJcbQmjcjlService busJcbQmjcjlService;
+
+    @ApiOperation(value = "新增")
+    @PostMapping("/add")
+    public AjaxResult add(@Validated @RequestBody BusJcbQmjcjl busJcbQmjcjl) {
+        return toAjax(busJcbQmjcjlService.create(busJcbQmjcjl));
+    }
+
+    @ApiOperation(value = "删除")
+    @DeleteMapping("/{ids}")
+    public AjaxResult delete(@PathVariable(value = "ids") String[] ids) {
+        return toAjax(busJcbQmjcjlService.delete(ids));
+    }
+
+    @ApiOperation(value = "更新")
+    @PutMapping("/update")
+    public AjaxResult update(@RequestBody @Valid BusJcbQmjcjl busJcbQmjcjl) {
+        return toAjax(busJcbQmjcjlService.update(busJcbQmjcjl));
+    }
+
+    @ApiOperation(value = "单个")
+    @GetMapping(value = {"/", "/{id}"})
+    public AjaxResult getInfo(@PathVariable(value = "id") String id) {
+        BusJcbQmjcjl info = busJcbQmjcjlService.getInfo(id);
+        AjaxResult ajax = AjaxResult.success();
+        ajax.put("info",info);
+        return ajax;
+    }
+
+    @ApiOperation(value = "列表")
+    @GetMapping(value = "list")
+    public TableDataInfo getList(BusJcbQmjcjl busJcbQmjcjl) {
+        startPage();
+        List<BusJcbQmjcjl> list = busJcbQmjcjlService.getList(busJcbQmjcjl);
+        return getDataTable(list);
+    }
+
+    @ApiOperation(value = "提交")
+    @PutMapping("/submit")
+    public AjaxResult submit(@RequestBody BusJcbQmjcjl busJcbQmjcjl) {
+        return toAjax(busJcbQmjcjlService.submit(busJcbQmjcjl));
+    }
+
+    @ApiOperation(value = "退回")
+    @PutMapping("/reject")
+    public AjaxResult reject(@RequestBody BusJcbQmjcjl busJcbQmjcjl) {
+        return toAjax(busJcbQmjcjlService.reject(busJcbQmjcjl));
+    }
+
+    @ApiOperation(value = "确认")
+    @PutMapping("/confirm")
+    public AjaxResult confirm(@RequestBody BusJcbQmjcjl busJcbQmjcjl) {
+        return toAjax(busJcbQmjcjlService.confirm(busJcbQmjcjl));
+    }
+
+}

+ 99 - 0
railway-business/src/main/java/com/railway/business/catenary/domain/BusJcbQmjcjl.java

@@ -0,0 +1,99 @@
+package com.railway.business.catenary.domain;
+
+import com.railway.common.core.domain.BaseEntity;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import java.util.Date;
+
+import org.hibernate.validator.constraints.Length;
+import javax.validation.constraints.NotNull;
+/**
+ * 检测表-全面检查记录
+ * @author author 2021-10-19
+ */
+@Data
+@ApiModel("检测表-全面检查记录")
+@EqualsAndHashCode(callSuper = true)
+public class BusJcbQmjcjl extends BaseEntity{
+
+    @ApiModelProperty(value = "主键")
+    private String id;
+
+    @ApiModelProperty(value = "站场(区间)")
+    @Length(min = 1, max = 100, message = "【站场(区间)】长度必须介于 {min} 和 {max} 之间")
+    private String qj;
+
+    @ApiModelProperty(value = "支柱号(或悬挂点)")
+    @Length(min = 1, max = 20, message = "【支柱号(或悬挂点)】长度必须介于 {min} 和 {max} 之间")
+    private String zzh;
+
+    @ApiModelProperty(value = "缺陷来源")
+    @Length(min = 1, max = 20, message = "【缺陷来源】长度必须介于 {min} 和 {max} 之间")
+    private String qxly;
+
+    @ApiModelProperty(value = "位置")
+    @Length(min = 1, max = 20, message = "【位置】长度必须介于 {min} 和 {max} 之间")
+    private String wz;
+
+    @ApiModelProperty(value = "缺陷内容")
+    @Length(min = 1, max = 200, message = "【缺陷内容】长度必须介于 {min} 和 {max} 之间")
+    private String qxnr;
+
+    @ApiModelProperty(value = "缺陷等级")
+    @Length(min = 1, max = 20, message = "【缺陷等级】长度必须介于 {min} 和 {max} 之间")
+    private String qxdj;
+
+    @ApiModelProperty(value = "处理措施")
+    @Length(min = 1, max = 200, message = "【处理措施】长度必须介于 {min} 和 {max} 之间")
+    private String clcs;
+
+    @ApiModelProperty(value = "修后状态")
+    @Length(min = 1, max = 20, message = "【修后状态】长度必须介于 {min} 和 {max} 之间")
+    private String xhzt;
+
+    @ApiModelProperty(value = "维护保养")
+    @Length(min = 1, max = 20, message = "【维护保养】长度必须介于 {min} 和 {max} 之间")
+    private String whby;
+
+    @ApiModelProperty(value = "绝缘清扫")
+    @Length(min = 1, max = 20, message = "【绝缘清扫】长度必须介于 {min} 和 {max} 之间")
+    private String jyqs;
+
+    @ApiModelProperty(value = "设备状态")
+    @Length(min = 1, max = 20, message = "【设备状态】长度必须介于 {min} 和 {max} 之间")
+    private String sbzt;
+
+    @ApiModelProperty(value = "操作人")
+    @Length(min = 1, max = 20, message = "【操作人】长度必须介于 {min} 和 {max} 之间")
+    private String czr;
+
+    @ApiModelProperty(value = "工作领导人")
+    @Length(min = 1, max = 20, message = "【工作领导人】长度必须介于 {min} 和 {max} 之间")
+    private String gzldr;
+
+    @ApiModelProperty(value = "验收人")
+    @Length(min = 1, max = 20, message = "【验收人】长度必须介于 {min} 和 {max} 之间")
+    private String ysr;
+
+    @ApiModelProperty(value = "日期")
+    @Length(min = 1, max = 10, message = "【日期】长度必须介于 {min} 和 {max} 之间")
+    private String rq;
+
+    @ApiModelProperty(value = "备注")
+    @Length(min = 1, max = 600, message = "【备注】长度必须介于 {min} 和 {max} 之间")
+    private String remark;
+
+    @ApiModelProperty(value = "提交状态 0未提交 1已提交 2已退回 9已确认")
+    @Length(min = 1, max = 1, message = "【提交状态 0未提交 1已提交 2已退回 9已确认】长度必须介于 {min} 和 {max} 之间")
+    private String submitState;
+
+    @ApiModelProperty(value = "del_flag")
+    @Length(min = 1, max = 1, message = "【del_flag】长度必须介于 {min} 和 {max} 之间")
+    private String delFlag;
+
+    public BusJcbQmjcjl() {
+    }
+
+}

+ 43 - 0
railway-business/src/main/java/com/railway/business/catenary/mapper/BusJcbQmjcjlMapper.java

@@ -0,0 +1,43 @@
+package com.railway.business.catenary.mapper;
+
+import com.github.pagehelper.Page;
+import com.railway.business.catenary.domain.BusJcbQmjcjl;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Repository;
+
+/**
+* 检测表-全面检查记录
+* @author author
+* @date 2021/10/19
+*/
+@Mapper
+@Repository
+public interface BusJcbQmjcjlMapper {
+
+    /**
+    * @Description: 新增
+    */
+    int insert(BusJcbQmjcjl busJcbQmjcjl);
+
+    /**
+    * @Description: 删除
+    */
+    int delete(@Param("id") String id);
+
+    /**
+    * @Description: 更新
+    */
+    int update(BusJcbQmjcjl busJcbQmjcjl);
+
+    /**
+    * @Description: 获取单个
+    */
+    BusJcbQmjcjl getInfo(@Param("id") String id);
+
+    /**
+    * @Description: 查询列表
+    */
+    Page<BusJcbQmjcjl> getList(BusJcbQmjcjl busJcbQmjcjl);
+
+}

+ 58 - 0
railway-business/src/main/java/com/railway/business/catenary/service/IBusJcbQmjcjlService.java

@@ -0,0 +1,58 @@
+package com.railway.business.catenary.service;
+
+import com.railway.business.catenary.domain.BusJcbQmjcjl;
+
+import java.util.List;
+/**
+* 检测表-全面检查记录
+* @author author
+* @date 2021/10/19
+*/
+public interface IBusJcbQmjcjlService{
+
+    /**
+    * @Description: 新增
+    */
+    int create(BusJcbQmjcjl busJcbQmjcjl);
+
+    /**
+    * @Description: 删除
+    */
+    int delete(String[] ids);
+
+    /**
+    * @Description: 更新
+    */
+    int update(BusJcbQmjcjl busJcbQmjcjl);
+
+    /**
+    * @Description: 获取单个
+    */
+    BusJcbQmjcjl getInfo(String id);
+
+    /**
+    * @Description: 查询列表
+    */
+    List<BusJcbQmjcjl> getList(BusJcbQmjcjl busJcbQmjcjl);
+
+    /**
+     * 提交
+     * @param busJcbQmjcjl
+     * @return
+     */
+    int submit(BusJcbQmjcjl busJcbQmjcjl);
+
+    /**
+     * 退回
+     * @param busJcbQmjcjl
+     * @return
+     */
+    int reject(BusJcbQmjcjl busJcbQmjcjl);
+
+    /**
+     * 确认
+     * @param busJcbQmjcjl
+     * @return
+     */
+    int confirm(BusJcbQmjcjl busJcbQmjcjl);
+}

+ 120 - 0
railway-business/src/main/java/com/railway/business/catenary/service/impl/BusJcbQmjcjlServiceImpl.java

@@ -0,0 +1,120 @@
+package com.railway.business.catenary.service.impl;
+
+import com.railway.business.catenary.domain.BusJcbQmjcjl;
+import com.railway.business.catenary.enums.DelFlagEnum;
+import com.railway.business.catenary.enums.TestTableStatusEnum;
+import com.railway.business.catenary.mapper.BusJcbQmjcjlMapper;
+import com.railway.business.catenary.service.IBusJcbQmjcjlService;
+import com.railway.common.utils.SecurityUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+
+import java.util.Date;
+import java.util.List;
+/**
+* 检测表-全面检查记录
+* @author author
+* @date 2021/10/19
+*/
+@Service
+@Transactional(readOnly = true)
+public class BusJcbQmjcjlServiceImpl implements IBusJcbQmjcjlService{
+@Autowired
+private BusJcbQmjcjlMapper busJcbQmjcjlMapper;
+
+	/**
+	* @Description: 新增
+	*/
+	@Override
+	@Transactional(rollbackFor = Exception.class)
+	public int create(BusJcbQmjcjl busJcbQmjcjl) {
+	    busJcbQmjcjl.setCreateTime(new Date());
+        busJcbQmjcjl.setCreateBy(SecurityUtils.getUsername());
+		busJcbQmjcjl.setDelFlag(DelFlagEnum.NOT_DELETE.getCode());
+		return busJcbQmjcjlMapper.insert(busJcbQmjcjl);
+	}
+
+	/**
+	* @Description: 删除
+	*/
+	@Override
+	@Transactional(rollbackFor = Exception.class)
+	public int delete(String[] ids) {
+		int r =0;
+		for (String id : ids) {
+			int j= busJcbQmjcjlMapper.delete(id);
+			r = r + j;
+		}
+		return	r;
+	}
+
+	/**
+	* @Description: 更新
+	*/
+	@Override
+	@Transactional(rollbackFor = Exception.class)
+	public int update(BusJcbQmjcjl busJcbQmjcjl) {
+		busJcbQmjcjl.setUpdateTime(new Date());
+    	busJcbQmjcjl.setUpdateBy(SecurityUtils.getUsername());
+		return busJcbQmjcjlMapper.update(busJcbQmjcjl);
+	}
+
+	/**
+	* @Description: 获取单个
+	*/
+	@Override
+	public BusJcbQmjcjl getInfo(String id) {
+		return busJcbQmjcjlMapper.getInfo(id);
+	}
+
+	/**
+	* @Description: 查询列表
+	*/
+	@Override
+	public List<BusJcbQmjcjl> getList(BusJcbQmjcjl busJcbQmjcjl) {
+		return busJcbQmjcjlMapper.getList(busJcbQmjcjl);
+	}
+
+	/**
+	 * 提交
+	 * @param busJcbQmjcjl
+	 * @return
+	 */
+	@Override
+	@Transactional(rollbackFor = Exception.class)
+	public int submit(BusJcbQmjcjl busJcbQmjcjl) {
+		busJcbQmjcjl.setUpdateTime(new Date());
+		busJcbQmjcjl.setUpdateBy(SecurityUtils.getUsername());
+		busJcbQmjcjl.setSubmitState(TestTableStatusEnum.REPORTED.getCode());
+		return busJcbQmjcjlMapper.update(busJcbQmjcjl);
+	}
+
+	/**
+	 * 退回
+	 * @param busJcbQmjcjl
+	 * @return
+	 */
+	@Override
+	@Transactional(rollbackFor = Exception.class)
+	public int reject(BusJcbQmjcjl busJcbQmjcjl) {
+		busJcbQmjcjl.setUpdateTime(new Date());
+		busJcbQmjcjl.setUpdateBy(SecurityUtils.getUsername());
+		busJcbQmjcjl.setSubmitState(TestTableStatusEnum.RETURNED.getCode());
+		return busJcbQmjcjlMapper.update(busJcbQmjcjl);
+	}
+
+	/**
+	 * 确认
+	 * @param busJcbQmjcjl
+	 * @return
+	 */
+	@Override
+	@Transactional(rollbackFor = Exception.class)
+	public int confirm(BusJcbQmjcjl busJcbQmjcjl) {
+		busJcbQmjcjl.setUpdateTime(new Date());
+		busJcbQmjcjl.setUpdateBy(SecurityUtils.getUsername());
+		busJcbQmjcjl.setSubmitState(TestTableStatusEnum.COMPLETED.getCode());
+		return busJcbQmjcjlMapper.update(busJcbQmjcjl);
+	}
+}

+ 320 - 0
railway-business/src/main/resources/mapper/business/BusJcbQmjcjlMapper.xml

@@ -0,0 +1,320 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.railway.business.catenary.mapper.BusJcbQmjcjlMapper">
+
+    <resultMap id="BaseResultMap" type="com.railway.business.catenary.domain.BusJcbQmjcjl">
+                <result column="id" property="id"/>
+                <result column="qj" property="qj"/>
+                <result column="zzh" property="zzh"/>
+                <result column="qxly" property="qxly"/>
+                <result column="wz" property="wz"/>
+                <result column="qxnr" property="qxnr"/>
+                <result column="qxdj" property="qxdj"/>
+                <result column="clcs" property="clcs"/>
+                <result column="xhzt" property="xhzt"/>
+                <result column="whby" property="whby"/>
+                <result column="jyqs" property="jyqs"/>
+                <result column="sbzt" property="sbzt"/>
+                <result column="czr" property="czr"/>
+                <result column="gzldr" property="gzldr"/>
+                <result column="ysr" property="ysr"/>
+                <result column="rq" property="rq"/>
+                <result column="remark" property="remark"/>
+                <result column="submit_state" property="submitState"/>
+                <result column="del_flag" property="delFlag"/>
+                <result column="create_by" property="createBy"/>
+                <result column="create_time" property="createTime"/>
+                <result column="update_by" property="updateBy"/>
+                <result column="update_time" property="updateTime"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+                id,
+                qj,
+                zzh,
+                qxly,
+                wz,
+                qxnr,
+                qxdj,
+                clcs,
+                xhzt,
+                whby,
+                jyqs,
+                sbzt,
+                czr,
+                gzldr,
+                ysr,
+                rq,
+                remark,
+                submit_state,
+                del_flag,
+                create_by,
+                create_time,
+                update_by,
+                update_time
+    </sql>
+
+    <insert id="insert" parameterType="com.railway.business.catenary.domain.BusJcbQmjcjl">
+        <selectKey keyProperty="id" order="BEFORE" resultType="String">
+            select replace(uuid(), '-', '') from dual
+        </selectKey>
+        INSERT INTO bus_jcb_qmjcjl
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+                    <if test ='null != qj'>
+                    qj,
+                    </if>
+                    <if test ='null != zzh'>
+                    zzh,
+                    </if>
+                    <if test ='null != qxly'>
+                    qxly,
+                    </if>
+                    <if test ='null != wz'>
+                    wz,
+                    </if>
+                    <if test ='null != qxnr'>
+                    qxnr,
+                    </if>
+                    <if test ='null != qxdj'>
+                    qxdj,
+                    </if>
+                    <if test ='null != clcs'>
+                    clcs,
+                    </if>
+                    <if test ='null != xhzt'>
+                    xhzt,
+                    </if>
+                    <if test ='null != whby'>
+                    whby,
+                    </if>
+                    <if test ='null != jyqs'>
+                    jyqs,
+                    </if>
+                    <if test ='null != sbzt'>
+                    sbzt,
+                    </if>
+                    <if test ='null != czr'>
+                    czr,
+                    </if>
+                    <if test ='null != gzldr'>
+                    gzldr,
+                    </if>
+                    <if test ='null != ysr'>
+                    ysr,
+                    </if>
+                    <if test ='null != rq'>
+                    rq,
+                    </if>
+                    <if test ='null != remark'>
+                    remark,
+                    </if>
+                    <if test ='null != submitState'>
+                    submit_state,
+                    </if>
+                    <if test ='null != delFlag'>
+                    del_flag,
+                    </if>
+                    <if test ='null != createBy'>
+                    create_by,
+                    </if>
+                    <if test ='null != createTime'>
+                    create_time,
+                    </if>
+                    <if test ='null != updateBy'>
+                    update_by,
+                    </if>
+                    <if test ='null != updateTime'>
+                    update_time
+                    </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+                    <if test ='null != qj'>
+                    #{qj},
+                    </if>
+                    <if test ='null != zzh'>
+                    #{zzh},
+                    </if>
+                    <if test ='null != qxly'>
+                    #{qxly},
+                    </if>
+                    <if test ='null != wz'>
+                    #{wz},
+                    </if>
+                    <if test ='null != qxnr'>
+                    #{qxnr},
+                    </if>
+                    <if test ='null != qxdj'>
+                    #{qxdj},
+                    </if>
+                    <if test ='null != clcs'>
+                    #{clcs},
+                    </if>
+                    <if test ='null != xhzt'>
+                    #{xhzt},
+                    </if>
+                    <if test ='null != whby'>
+                    #{whby},
+                    </if>
+                    <if test ='null != jyqs'>
+                    #{jyqs},
+                    </if>
+                    <if test ='null != sbzt'>
+                    #{sbzt},
+                    </if>
+                    <if test ='null != czr'>
+                    #{czr},
+                    </if>
+                    <if test ='null != gzldr'>
+                    #{gzldr},
+                    </if>
+                    <if test ='null != ysr'>
+                    #{ysr},
+                    </if>
+                    <if test ='null != rq'>
+                    #{rq},
+                    </if>
+                    <if test ='null != remark'>
+                    #{remark},
+                    </if>
+                    <if test ='null != submitState'>
+                    #{submitState},
+                    </if>
+                    <if test ='null != delFlag'>
+                    #{delFlag},
+                    </if>
+                    <if test ='null != createBy'>
+                    #{createBy},
+                    </if>
+                    <if test ='null != createTime'>
+                    #{createTime},
+                    </if>
+                    <if test ='null != updateBy'>
+                    #{updateBy},
+                    </if>
+                    <if test ='null != updateTime'>
+                    #{updateTime}
+                    </if>
+        </trim>
+    </insert>
+
+    <delete id="delete">
+        UPDATE bus_jcb_qmjcjl
+        set del_flag='1'
+        WHERE id = #{id}
+    </delete>
+
+    <update id="update" parameterType="com.railway.business.catenary.domain.BusJcbQmjcjl">
+        UPDATE bus_jcb_qmjcjl
+        <set>
+                    <if test ='null != qj'>qj = #{qj},</if>
+                    <if test ='null != zzh'>zzh = #{zzh},</if>
+                    <if test ='null != qxly'>qxly = #{qxly},</if>
+                    <if test ='null != wz'>wz = #{wz},</if>
+                    <if test ='null != qxnr'>qxnr = #{qxnr},</if>
+                    <if test ='null != qxdj'>qxdj = #{qxdj},</if>
+                    <if test ='null != clcs'>clcs = #{clcs},</if>
+                    <if test ='null != xhzt'>xhzt = #{xhzt},</if>
+                    <if test ='null != whby'>whby = #{whby},</if>
+                    <if test ='null != jyqs'>jyqs = #{jyqs},</if>
+                    <if test ='null != sbzt'>sbzt = #{sbzt},</if>
+                    <if test ='null != czr'>czr = #{czr},</if>
+                    <if test ='null != gzldr'>gzldr = #{gzldr},</if>
+                    <if test ='null != ysr'>ysr = #{ysr},</if>
+                    <if test ='null != rq'>rq = #{rq},</if>
+                    <if test ='null != remark'>remark = #{remark},</if>
+                    <if test ='null != submitState'>submit_state = #{submitState},</if>
+                    <if test ='null != delFlag'>del_flag = #{delFlag},</if>
+                    <if test ='null != createBy'>create_by = #{createBy},</if>
+                    <if test ='null != createTime'>create_time = #{createTime},</if>
+                    <if test ='null != updateBy'>update_by = #{updateBy},</if>
+                    <if test ='null != updateTime'>update_time = #{updateTime}</if>
+        </set>
+        WHERE id = #{id}
+    </update>
+
+
+    <select id="getInfo" resultMap="BaseResultMap">
+        SELECT
+        <include refid="Base_Column_List"/>
+        FROM bus_jcb_qmjcjl
+        WHERE del_flag='0' and id = #{id}
+
+    </select>
+
+    <select id="getList" resultMap="BaseResultMap">
+        SELECT
+        <include refid="Base_Column_List"/>
+        FROM bus_jcb_qmjcjl
+        <where>
+            del_flag='0'
+                <if test="qj!=null and qj!=''">
+                    and qj=#{qj}
+                </if>
+                <if test="zzh!=null and zzh!=''">
+                    and zzh=#{zzh}
+                </if>
+                <if test="qxly!=null and qxly!=''">
+                    and qxly=#{qxly}
+                </if>
+                <if test="wz!=null and wz!=''">
+                    and wz=#{wz}
+                </if>
+                <if test="qxnr!=null and qxnr!=''">
+                    and qxnr=#{qxnr}
+                </if>
+                <if test="qxdj!=null and qxdj!=''">
+                    and qxdj=#{qxdj}
+                </if>
+                <if test="clcs!=null and clcs!=''">
+                    and clcs=#{clcs}
+                </if>
+                <if test="xhzt!=null and xhzt!=''">
+                    and xhzt=#{xhzt}
+                </if>
+                <if test="whby!=null and whby!=''">
+                    and whby=#{whby}
+                </if>
+                <if test="jyqs!=null and jyqs!=''">
+                    and jyqs=#{jyqs}
+                </if>
+                <if test="sbzt!=null and sbzt!=''">
+                    and sbzt=#{sbzt}
+                </if>
+                <if test="czr!=null and czr!=''">
+                    and czr=#{czr}
+                </if>
+                <if test="gzldr!=null and gzldr!=''">
+                    and gzldr=#{gzldr}
+                </if>
+                <if test="ysr!=null and ysr!=''">
+                    and ysr=#{ysr}
+                </if>
+                <if test="rq!=null and rq!=''">
+                    and rq=#{rq}
+                </if>
+                <if test="remark!=null and remark!=''">
+                    and remark=#{remark}
+                </if>
+                <if test="submitState!=null and submitState!=''">
+                    and submit_state=#{submitState}
+                </if>
+                <if test="delFlag!=null and delFlag!=''">
+                    and del_flag=#{delFlag}
+                </if>
+                <if test="createBy!=null and createBy!=''">
+                    and create_by=#{createBy}
+                </if>
+                <if test="createTime!=null and createTime!=''">
+                    and create_time=#{createTime}
+                </if>
+                <if test="updateBy!=null and updateBy!=''">
+                    and update_by=#{updateBy}
+                </if>
+                <if test="updateTime!=null and updateTime!=''">
+                    and update_time=#{updateTime}
+                </if>
+        </where>
+    </select>
+
+</mapper>