11 changed files with 622 additions and 2 deletions
@ -0,0 +1,193 @@ |
|||
package com.kms.yg.sz.controller; |
|||
|
|||
import java.io.File; |
|||
import java.io.FileInputStream; |
|||
import java.io.FileNotFoundException; |
|||
import java.io.IOException; |
|||
import java.util.*; |
|||
|
|||
import com.shuili.common.core.controller.BaseController; |
|||
import com.shuili.common.core.domain.SearchParam; |
|||
import com.shuili.common.utils.poi.ExcelUtil; |
|||
import com.kms.common.utils.BaseEntityUtils; |
|||
|
|||
|
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.apache.poi.ss.usermodel.*; |
|||
import org.apache.poi.xssf.usermodel.XSSFWorkbook; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.GetMapping; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.PutMapping; |
|||
import org.springframework.web.bind.annotation.DeleteMapping; |
|||
import org.springframework.web.bind.annotation.PathVariable; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.shuili.common.mybaitsplus.BeanToWrapper; |
|||
|
|||
import com.shuili.common.annotation.Log; |
|||
import com.shuili.common.core.domain.AjaxResult; |
|||
import com.shuili.common.enums.BusinessType; |
|||
import com.kms.yg.sz.domain.BsSgcSzBzh; |
|||
import com.kms.yg.sz.service.BsSgcSzBzhService; |
|||
|
|||
|
|||
/** |
|||
* 水闸标准化Controller |
|||
* |
|||
* @author kms |
|||
* @date 2024-03-04 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/sz/bzh") |
|||
@Api(tags = "水闸标准化") |
|||
public class BsSgcSzBzhController extends BaseController |
|||
{ |
|||
@Autowired |
|||
private BsSgcSzBzhService bsSgcSzBzhService; |
|||
|
|||
|
|||
@GetMapping("/1") |
|||
public AjaxResult a() throws IOException { |
|||
List<BsSgcSzBzh> data = new ArrayList<>(); |
|||
FileInputStream file = new FileInputStream(new File("C:\\Users\\zhuyulei\\Desktop\\3015B410.xlsx")); |
|||
|
|||
Workbook workbook = new XSSFWorkbook(file); |
|||
|
|||
Sheet sheet = workbook.getSheetAt(0); |
|||
|
|||
Iterator<Row> iterator = sheet.iterator(); |
|||
|
|||
while (iterator.hasNext()) { |
|||
Row row = iterator.next(); |
|||
String id = String.valueOf(UUID.randomUUID()); |
|||
|
|||
|
|||
String category = row.getCell(0).getStringCellValue(); |
|||
category=getStr(category); |
|||
String project = row.getCell(1).getStringCellValue(); |
|||
project=getStr(project); |
|||
String basicRequirements = row.getCell(2).getStringCellValue(); |
|||
basicRequirements=getStr(basicRequirements); |
|||
String evaluationContent = row.getCell(3).getStringCellValue(); |
|||
evaluationContent=getStr(evaluationContent); |
|||
String score = String.valueOf(row.getCell(4).getNumericCellValue()); |
|||
score=getStr(score); |
|||
String evaluationIndicators = row.getCell(5).getStringCellValue(); |
|||
evaluationIndicators=getStr(evaluationIndicators); |
|||
String scoringInterpretation = row.getCell(6).getStringCellValue(); |
|||
scoringInterpretation=getStr(scoringInterpretation); |
|||
String reviewMethod = row.getCell(7).getStringCellValue(); |
|||
reviewMethod=getStr(reviewMethod); |
|||
String order = row.getCell(8).getStringCellValue(); |
|||
|
|||
BsSgcSzBzh bsSgcSzBzh = new BsSgcSzBzh(); |
|||
bsSgcSzBzh.setId(id); |
|||
bsSgcSzBzh.setCategory(category); |
|||
bsSgcSzBzh.setProject(project); |
|||
bsSgcSzBzh.setBasicRequirements(basicRequirements); |
|||
bsSgcSzBzh.setEvaluationContent(evaluationContent); |
|||
bsSgcSzBzh.setScore(score); |
|||
bsSgcSzBzh.setEvaluationIndicators(evaluationIndicators); |
|||
bsSgcSzBzh.setScoringInterpretation(scoringInterpretation); |
|||
bsSgcSzBzh.setReviewMethod(reviewMethod); |
|||
bsSgcSzBzh.setOrderBy(order); |
|||
bsSgcSzBzh.setCreateTime(new Date()); |
|||
bsSgcSzBzh.setType("1"); |
|||
|
|||
data.add(bsSgcSzBzh); |
|||
|
|||
} |
|||
|
|||
bsSgcSzBzhService.saveBatch(data); |
|||
|
|||
return AjaxResult.success(data); |
|||
|
|||
|
|||
} |
|||
|
|||
|
|||
public String getStr(String s) { |
|||
s = s.trim().replace("\n", "").replace("\r", "").replace(" ",""); |
|||
return s; |
|||
} |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
/** |
|||
* 查询水闸标准化列表 |
|||
*/ |
|||
@PostMapping("/list") |
|||
@ApiOperation("水闸标准化列表") |
|||
public IPage list(@RequestBody SearchParam<BsSgcSzBzh> sp) |
|||
{ |
|||
return bsSgcSzBzhService.selectPage(sp); |
|||
} |
|||
|
|||
/** |
|||
* 导出水闸标准化列表 |
|||
*/ |
|||
@Log(title = "水闸标准化导出", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
@ApiOperation("水闸标准化导出") |
|||
public AjaxResult export(@RequestBody BsSgcSzBzh bsSgcSzBzh) |
|||
{ |
|||
List<BsSgcSzBzh> list = bsSgcSzBzhService.listByIds(bsSgcSzBzh.getIds()); |
|||
ExcelUtil<BsSgcSzBzh> util = new ExcelUtil<>(BsSgcSzBzh.class); |
|||
return util.exportExcel(list, "bzh"); |
|||
} |
|||
|
|||
/** |
|||
* 获取水闸标准化详细信息 |
|||
*/ |
|||
@ApiOperation(" 水闸标准化详情") |
|||
@GetMapping(value = "/{id}") |
|||
public AjaxResult getInfo(@PathVariable("id") String id) |
|||
{ |
|||
return AjaxResult.success(bsSgcSzBzhService.getById(id)); |
|||
} |
|||
|
|||
/** |
|||
* 新增水闸标准化 |
|||
*/ |
|||
@Log(title = "水闸标准化新增", businessType = BusinessType.INSERT) |
|||
@PostMapping |
|||
@ApiOperation("水闸标准化新增") |
|||
public AjaxResult add(@RequestBody BsSgcSzBzh bsSgcSzBzh) |
|||
{ |
|||
BaseEntityUtils.preInsert(bsSgcSzBzh); |
|||
return toAjax(bsSgcSzBzhService.save(bsSgcSzBzh)); |
|||
} |
|||
|
|||
/** |
|||
* 修改水闸标准化 |
|||
*/ |
|||
@ApiOperation("水闸标准化修改") |
|||
@Log(title = "水闸标准化修改", businessType = BusinessType.UPDATE) |
|||
@PutMapping |
|||
public AjaxResult edit(@RequestBody BsSgcSzBzh bsSgcSzBzh) |
|||
{ |
|||
return toAjax(bsSgcSzBzhService.updateById(bsSgcSzBzh)); |
|||
} |
|||
|
|||
/** |
|||
* 删除水闸标准化 |
|||
*/ |
|||
@ApiOperation("水闸标准化删除") |
|||
@Log(title = "水闸标准化删除", businessType = BusinessType.DELETE) |
|||
@DeleteMapping("/{ids}") |
|||
public AjaxResult remove(@PathVariable String[] ids) |
|||
{ |
|||
return toAjax(bsSgcSzBzhService.removeByIds(Arrays.asList(ids))); |
|||
} |
|||
} |
@ -0,0 +1,115 @@ |
|||
package com.kms.yg.sz.controller; |
|||
|
|||
import java.util.Arrays; |
|||
import java.util.List; |
|||
|
|||
import com.shuili.common.core.controller.BaseController; |
|||
import com.shuili.common.core.domain.SearchParam; |
|||
import com.shuili.common.utils.poi.ExcelUtil; |
|||
import com.kms.common.utils.BaseEntityUtils; |
|||
|
|||
|
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.GetMapping; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.PutMapping; |
|||
import org.springframework.web.bind.annotation.DeleteMapping; |
|||
import org.springframework.web.bind.annotation.PathVariable; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.shuili.common.mybaitsplus.BeanToWrapper; |
|||
|
|||
import com.shuili.common.annotation.Log; |
|||
import com.shuili.common.core.domain.AjaxResult; |
|||
import com.shuili.common.enums.BusinessType; |
|||
import com.kms.yg.sz.domain.BsSgcSzBzhjs; |
|||
import com.kms.yg.sz.service.BsSgcSzBzhjsService; |
|||
|
|||
|
|||
/** |
|||
* 水闸标准化建设Controller |
|||
* |
|||
* @author kms |
|||
* @date 2024-03-05 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/sz/bzhjs") |
|||
@Api(tags = "水闸标准化建设") |
|||
public class BsSgcSzBzhjsController extends BaseController |
|||
{ |
|||
@Autowired |
|||
private BsSgcSzBzhjsService bsSgcSzBzhjsService; |
|||
|
|||
|
|||
/** |
|||
* 查询水闸标准化建设列表 |
|||
*/ |
|||
@PostMapping("/list") |
|||
@ApiOperation("水闸标准化建设列表") |
|||
public IPage list(@RequestBody SearchParam<BsSgcSzBzhjs> sp) |
|||
{ |
|||
return bsSgcSzBzhjsService.selectPage(sp); |
|||
} |
|||
|
|||
/** |
|||
* 导出水闸标准化建设列表 |
|||
*/ |
|||
@Log(title = "水闸标准化建设导出", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
@ApiOperation("水闸标准化建设导出") |
|||
public AjaxResult export(@RequestBody BsSgcSzBzhjs bsSgcSzBzhjs) |
|||
{ |
|||
List<BsSgcSzBzhjs> list = bsSgcSzBzhjsService.listByIds(bsSgcSzBzhjs.getIds()); |
|||
ExcelUtil<BsSgcSzBzhjs> util = new ExcelUtil<>(BsSgcSzBzhjs.class); |
|||
return util.exportExcel(list, "bzhjs"); |
|||
} |
|||
|
|||
/** |
|||
* 获取水闸标准化建设详细信息 |
|||
*/ |
|||
@ApiOperation(" 水闸标准化建设详情") |
|||
@GetMapping(value = "/{id}") |
|||
public AjaxResult getInfo(@PathVariable("id") String id) |
|||
{ |
|||
return AjaxResult.success(bsSgcSzBzhjsService.getById(id)); |
|||
} |
|||
|
|||
/** |
|||
* 新增水闸标准化建设 |
|||
*/ |
|||
@Log(title = "水闸标准化建设新增", businessType = BusinessType.INSERT) |
|||
@PostMapping |
|||
@ApiOperation("水闸标准化建设新增") |
|||
public AjaxResult add(@RequestBody BsSgcSzBzhjs bsSgcSzBzhjs) |
|||
{ |
|||
BaseEntityUtils.preInsert(bsSgcSzBzhjs); |
|||
return toAjax(bsSgcSzBzhjsService.save(bsSgcSzBzhjs)); |
|||
} |
|||
|
|||
/** |
|||
* 修改水闸标准化建设 |
|||
*/ |
|||
@ApiOperation("水闸标准化建设修改") |
|||
@Log(title = "水闸标准化建设修改", businessType = BusinessType.UPDATE) |
|||
@PutMapping |
|||
public AjaxResult edit(@RequestBody BsSgcSzBzhjs bsSgcSzBzhjs) |
|||
{ |
|||
return toAjax(bsSgcSzBzhjsService.updateById(bsSgcSzBzhjs)); |
|||
} |
|||
|
|||
/** |
|||
* 删除水闸标准化建设 |
|||
*/ |
|||
@ApiOperation("水闸标准化建设删除") |
|||
@Log(title = "水闸标准化建设删除", businessType = BusinessType.DELETE) |
|||
@DeleteMapping("/{ids}") |
|||
public AjaxResult remove(@PathVariable String[] ids) |
|||
{ |
|||
return toAjax(bsSgcSzBzhjsService.removeByIds(Arrays.asList(ids))); |
|||
} |
|||
} |
@ -0,0 +1,87 @@ |
|||
package com.kms.yg.sz.domain; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
import com.shuili.common.annotation.Excel; |
|||
import com.shuili.common.core.domain.BaseEntity; |
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
|
|||
|
|||
|
|||
/** |
|||
* 水闸标准化对象 bs_sgc_sz_bzh |
|||
* |
|||
* @author kms |
|||
* @date 2024-03-04 |
|||
*/ |
|||
@TableName("bs_sgc_sz_bzh") |
|||
@Data |
|||
@ApiModel("水闸标准化") |
|||
public class BsSgcSzBzh extends BaseEntity |
|||
{ |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** 类别 */ |
|||
@Excel(name = "类别") |
|||
@ApiModelProperty("类别") |
|||
private String category; |
|||
|
|||
/** 项目 */ |
|||
@Excel(name = "项目") |
|||
@ApiModelProperty("项目") |
|||
private String project; |
|||
|
|||
/** 标准化基本要求 */ |
|||
@Excel(name = "标准化基本要求") |
|||
@ApiModelProperty("标准化基本要求") |
|||
private String basicRequirements; |
|||
|
|||
/** 评价内容及要求 */ |
|||
@Excel(name = "评价内容及要求") |
|||
@ApiModelProperty("评价内容及要求") |
|||
private String evaluationContent; |
|||
|
|||
/** 标准分 */ |
|||
@Excel(name = "标准分") |
|||
@ApiModelProperty("标准分") |
|||
private String score; |
|||
|
|||
/** 评价指标及赋分 */ |
|||
@Excel(name = "评价指标及赋分") |
|||
@ApiModelProperty("评价指标及赋分") |
|||
private String evaluationIndicators; |
|||
|
|||
/** 赋分解释 */ |
|||
@Excel(name = "赋分解释") |
|||
@ApiModelProperty("赋分解释") |
|||
private String scoringInterpretation; |
|||
|
|||
/** 评审方式 */ |
|||
@Excel(name = "评审方式") |
|||
@ApiModelProperty("评审方式") |
|||
private String reviewMethod; |
|||
|
|||
/** 排序 */ |
|||
@Excel(name = "排序") |
|||
@ApiModelProperty("排序") |
|||
private String orderBy; |
|||
|
|||
/** 类型 */ |
|||
@Excel(name = "类型") |
|||
@ApiModelProperty("类型") |
|||
private String type; |
|||
|
|||
|
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "排序") |
|||
@ApiModelProperty("排序") |
|||
private String createUid; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "排序") |
|||
@ApiModelProperty("排序") |
|||
private String updateUid; |
|||
|
|||
} |
@ -0,0 +1,70 @@ |
|||
package com.kms.yg.sz.domain; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableField; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
import com.shuili.common.annotation.Excel; |
|||
import com.shuili.common.core.domain.BaseEntity; |
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
|
|||
|
|||
|
|||
/** |
|||
* 水闸标准化建设对象 bs_sgc_sz_bzhjs |
|||
* |
|||
* @author kms |
|||
* @date 2024-03-05 |
|||
*/ |
|||
@TableName("bs_sgc_sz_bzhjs") |
|||
@Data |
|||
@ApiModel("水闸标准化建设") |
|||
public class BsSgcSzBzhjs extends BaseEntity |
|||
{ |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** 水闸编码 */ |
|||
@Excel(name = "水闸编码") |
|||
@ApiModelProperty("水闸编码") |
|||
private String wagaCode; |
|||
|
|||
/** 状态 */ |
|||
@Excel(name = "状态") |
|||
@ApiModelProperty("状态") |
|||
private String stauts; |
|||
|
|||
/** 验收申请 */ |
|||
@Excel(name = "验收申请") |
|||
@ApiModelProperty("验收申请") |
|||
private String acceptanceAttachment; |
|||
|
|||
/** 分数 */ |
|||
@Excel(name = "分数") |
|||
@ApiModelProperty("分数") |
|||
private String score; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "分数") |
|||
@ApiModelProperty("分数") |
|||
private String createUid; |
|||
|
|||
/** $column.columnComment */ |
|||
@Excel(name = "分数") |
|||
@ApiModelProperty("分数") |
|||
private String updateUid; |
|||
|
|||
|
|||
|
|||
@TableField(exist = false) |
|||
private String wagaName; |
|||
@TableField(exist = false) |
|||
private String wagaType; |
|||
@TableField(exist = false) |
|||
private String engScal; |
|||
@TableField(exist = false) |
|||
private String unit; |
|||
@TableField(exist = false) |
|||
private String adcd; |
|||
|
|||
|
|||
} |
@ -0,0 +1,16 @@ |
|||
package com.kms.yg.sz.mapper; |
|||
|
|||
import org.springframework.stereotype.Repository; |
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.kms.yg.sz.domain.BsSgcSzBzh; |
|||
|
|||
/** |
|||
* 水闸标准化Mapper接口 |
|||
* |
|||
* @author kms |
|||
* @date 2024-03-04 |
|||
*/ |
|||
@Repository |
|||
public interface BsSgcSzBzhMapper extends BaseMapper<BsSgcSzBzh> { |
|||
|
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.kms.yg.sz.mapper; |
|||
|
|||
import com.kms.yg.sz.domain.BsSgcSzJfgl; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.springframework.stereotype.Repository; |
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.kms.yg.sz.domain.BsSgcSzBzhjs; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 水闸标准化建设Mapper接口 |
|||
* |
|||
* @author kms |
|||
* @date 2024-03-05 |
|||
*/ |
|||
@Repository |
|||
public interface BsSgcSzBzhjsMapper extends BaseMapper<BsSgcSzBzhjs> { |
|||
|
|||
|
|||
|
|||
List<BsSgcSzJfgl> getList(@Param("id") String id, |
|||
@Param("wagaType") String wagaType, |
|||
@Param("wagaName") String wagaName, |
|||
@Param("adcd") String adcd, |
|||
@Param("orderBy") String orderBy, |
|||
@Param("pageNum") int pageNum, |
|||
@Param("pageSize") int pageSize); |
|||
|
|||
} |
@ -0,0 +1,16 @@ |
|||
package com.kms.yg.sz.service; |
|||
|
|||
import com.shuili.common.core.service.BaseService; |
|||
import com.kms.yg.sz.mapper.BsSgcSzBzhMapper; |
|||
import com.kms.yg.sz.domain.BsSgcSzBzh; |
|||
import org.springframework.stereotype.Service; |
|||
/** |
|||
* 水闸标准化Service接口 |
|||
* |
|||
* @author kms |
|||
* @date 2024-03-04 |
|||
*/ |
|||
@Service |
|||
public class BsSgcSzBzhService extends BaseService<BsSgcSzBzhMapper, BsSgcSzBzh>{ |
|||
|
|||
} |
@ -0,0 +1,48 @@ |
|||
package com.kms.yg.sz.service; |
|||
|
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|||
import com.kms.system.service.SysXzqhService; |
|||
import com.kms.yg.sz.domain.BsSgcSzJfgl; |
|||
import com.shuili.common.core.domain.SearchParam; |
|||
import com.shuili.common.core.service.BaseService; |
|||
import com.kms.yg.sz.mapper.BsSgcSzBzhjsMapper; |
|||
import com.kms.yg.sz.domain.BsSgcSzBzhjs; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 水闸标准化建设Service接口 |
|||
* |
|||
* @author kms |
|||
* @date 2024-03-05 |
|||
*/ |
|||
@Service |
|||
public class BsSgcSzBzhjsService extends BaseService<BsSgcSzBzhjsMapper, BsSgcSzBzhjs>{ |
|||
|
|||
@Autowired |
|||
private BsSgcSzBzhjsMapper bsSgcSzBzhjsMapper; |
|||
|
|||
@Autowired |
|||
private SysXzqhService sysXzqhService; |
|||
|
|||
|
|||
public IPage selectPage(SearchParam<BsSgcSzBzhjs> sp) { |
|||
|
|||
BsSgcSzBzhjs data = sp.getData(); |
|||
|
|||
List<BsSgcSzJfgl> list= bsSgcSzBzhjsMapper.getList(data.getId(), data.getWagaType(), data.getWagaName(), |
|||
sysXzqhService.getSubString(data.getAdcd()), "create_time", sp.getPageNum(), sp.getPageSize()); |
|||
|
|||
Page<BsSgcSzJfgl> page = new Page<>(); |
|||
page.setRecords(list); |
|||
|
|||
page.setTotal(list.size()); |
|||
|
|||
return page; |
|||
|
|||
} |
|||
|
|||
} |
@ -0,0 +1,45 @@ |
|||
<?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.kms.yg.sz.mapper.BsSgcSzBzhjsMapper"> |
|||
|
|||
<sql id="info"> |
|||
select * |
|||
from bs_sgc_sz_bzhjs sf |
|||
left join bs_sgc_sz_safe_jbxx sj on sf.waga_code = sj.waga_code |
|||
|
|||
</sql> |
|||
|
|||
<resultMap id="col" type="BsSgcSzBzhjs"> |
|||
<id property="id" column="id"/> |
|||
<result property="wagaCode" column="waga_code"/> |
|||
<result property="wagaName" column="waga_name"/> |
|||
<result property="wagaType" column="waga_type"/> |
|||
<result property="unit" column="ADM_DEP"/> |
|||
<result property="engScal" column="eng_scal"/> |
|||
<result property="adcd" column="adcd"/> |
|||
</resultMap> |
|||
|
|||
|
|||
|
|||
<select id="getList" resultMap="col"> |
|||
<bind name="pageNum" value="(pageNum-1)*pageSize"></bind> |
|||
<include refid="info"></include> |
|||
<where> |
|||
<if test="wagaType!=null and wagaType!=''"> |
|||
and sj.waga_type = #{wagaType} |
|||
</if> |
|||
<if test="wagaName!=null and wagaName!=''"> |
|||
and sj.waga_name LIKE concat('%',#{wagaName},'%') |
|||
</if> |
|||
|
|||
<if test="adcd!=null and adcd !=''"> |
|||
and sj.adcd like concat(#{adcd},'%') |
|||
</if> |
|||
<if test="id!=null and id!=''"> |
|||
and sf.id=#{id} |
|||
</if> |
|||
</where> |
|||
</select> |
|||
</mapper> |
Loading…
Reference in new issue