8 changed files with 937 additions and 0 deletions
-
27src/main/java/com/gaotao/common/utils/QueryList.java
-
93src/main/java/com/gaotao/modules/finishedProduct/controller/CRollinfoController.java
-
29src/main/java/com/gaotao/modules/finishedProduct/dao/CRollinfoDao.java
-
188src/main/java/com/gaotao/modules/finishedProduct/entity/CRollinfoEntity.java
-
32src/main/java/com/gaotao/modules/finishedProduct/service/CRollinfoService.java
-
158src/main/java/com/gaotao/modules/finishedProduct/service/impl/CRollinfoServiceImpl.java
-
180src/main/java/com/gaotao/modules/finishedProduct/vo/CRollinfoVo.java
-
230src/main/resources/mapper/finishedProduct/CRollinfoDao.xml
@ -0,0 +1,27 @@ |
|||
package com.gaotao.common.utils; |
|||
|
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class QueryList { |
|||
/* |
|||
查询属性 |
|||
*/ |
|||
private String queryAttributes; |
|||
/* |
|||
查询条件 |
|||
*/ |
|||
private String queryConditions; |
|||
/* |
|||
查询条件描述 |
|||
*/ |
|||
private String queryDescription; |
|||
/* |
|||
查询字段类型 |
|||
*/ |
|||
private String queryType; |
|||
/* |
|||
查询字段值 |
|||
*/ |
|||
private Object queryValue; |
|||
} |
|||
@ -0,0 +1,93 @@ |
|||
package com.gaotao.modules.finishedProduct.controller; |
|||
|
|||
import java.util.Arrays; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
import com.gaotao.common.utils.QueryList; |
|||
import com.gaotao.modules.finishedProduct.vo.CRollinfoVo; |
|||
import org.apache.shiro.authz.annotation.RequiresPermissions; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
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.RequestParam; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import com.gaotao.modules.finishedProduct.entity.CRollinfoEntity; |
|||
import com.gaotao.modules.finishedProduct.service.CRollinfoService; |
|||
import com.gaotao.common.utils.PageUtils; |
|||
import com.gaotao.common.utils.R; |
|||
|
|||
|
|||
|
|||
/** |
|||
* ${comments} |
|||
* |
|||
* @author sheli |
|||
* @email 1125400943@qq.com |
|||
* @date 2021-09-07 16:26:21 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("finishedProduct/crollinfo") |
|||
public class CRollinfoController { |
|||
|
|||
@Autowired |
|||
private CRollinfoService cRollinfoService; |
|||
|
|||
|
|||
/* |
|||
* @Author sxm |
|||
* @Description // 获取呆滞料 |
|||
* @Date 17:08 2021/9/7 |
|||
* @Param [rollinfoEntity] |
|||
* @return [com.gaotao.modules.finishedProduct.entity.CRollinfoEntity] |
|||
**/ |
|||
@RequestMapping("/list") |
|||
public R list(@RequestBody List<QueryList> cRollinfoVo){ |
|||
List<CRollinfoVo> list = cRollinfoService.getCRollinfoList(cRollinfoVo); |
|||
return R.ok().put("list", list); |
|||
} |
|||
|
|||
|
|||
/** |
|||
* 信息 |
|||
*/ |
|||
@RequestMapping("/info/{site}") |
|||
public R info(@PathVariable("site") String site){ |
|||
CRollinfoEntity cRollinfo = cRollinfoService.getById(site); |
|||
|
|||
return R.ok().put("cRollinfo", cRollinfo); |
|||
} |
|||
|
|||
/** |
|||
* 保存 |
|||
*/ |
|||
@RequestMapping("/save") |
|||
public R save(@RequestBody CRollinfoEntity cRollinfo){ |
|||
cRollinfoService.save(cRollinfo); |
|||
|
|||
return R.ok(); |
|||
} |
|||
|
|||
/** |
|||
* 修改 |
|||
*/ |
|||
@RequestMapping("/update") |
|||
public R update(@RequestBody CRollinfoEntity cRollinfo){ |
|||
cRollinfoService.updateById(cRollinfo); |
|||
|
|||
return R.ok(); |
|||
} |
|||
|
|||
/** |
|||
* 删除 |
|||
*/ |
|||
@RequestMapping("/delete") |
|||
public R delete(@RequestBody String[] sites){ |
|||
cRollinfoService.removeByIds(Arrays.asList(sites)); |
|||
|
|||
return R.ok(); |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,29 @@ |
|||
package com.gaotao.modules.finishedProduct.dao; |
|||
|
|||
import com.gaotao.modules.finishedProduct.entity.CRollinfoEntity; |
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.gaotao.modules.finishedProduct.vo.CRollinfoVo; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* ${comments} |
|||
* |
|||
* @author sheli |
|||
* @email 1125400943@qq.com |
|||
* @date 2021-09-07 16:26:21 |
|||
*/ |
|||
@Mapper |
|||
public interface CRollinfoDao extends BaseMapper<CRollinfoEntity> { |
|||
|
|||
/* |
|||
* @Author sxm |
|||
* @Description // 获取呆滞料 |
|||
* @Date 17:08 2021/9/7 |
|||
* @Param [rollinfoEntity] |
|||
* @return [com.gaotao.modules.finishedProduct.entity.CRollinfoEntity] |
|||
**/ |
|||
List<CRollinfoVo> getCRollinfoList(CRollinfoVo cRollinfoVo); |
|||
} |
|||
@ -0,0 +1,188 @@ |
|||
package com.gaotao.modules.finishedProduct.entity; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableId; |
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* ${comments} |
|||
* |
|||
* @author sheli |
|||
* @email 1125400943@qq.com |
|||
* @date 2021-09-07 16:26:21 |
|||
*/ |
|||
@Data |
|||
@TableName("C_RollInfo") |
|||
public class CRollinfoEntity implements Serializable { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
@TableId |
|||
private String site; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String rollno; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private Float rollqty; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String partno; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String supplierid; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String orderref1; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String orderref2; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String orderref3; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String orderref4; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String suppdeliverynote; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private Date rolldate; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private Date createddate; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String createdby; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String statusDb; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String status; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String supprollno; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private Integer rollseqno; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String supprollnoflag; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String sourcetype; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String originalrollno; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String orderref5; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String rolltype; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String rolltypeDb; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String firstlevelrollno; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String remark; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String parttypeFlag; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String warehouseid; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String synchronizedflag; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String consumeorderno; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private Integer consumeseqno; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String customerid; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String fgpartno; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String refSupplierid; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String refPartdesc; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String needsynchronizeflag; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String opslog; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String frozenflag; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private Date frozendate; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String frozenby; |
|||
/** |
|||
* 失效日期 |
|||
*/ |
|||
private Date expireddate; |
|||
/** |
|||
* 制造日期 |
|||
*/ |
|||
private Date manufacturedate; |
|||
|
|||
} |
|||
@ -0,0 +1,32 @@ |
|||
package com.gaotao.modules.finishedProduct.service; |
|||
|
|||
import com.baomidou.mybatisplus.extension.service.IService; |
|||
import com.gaotao.common.utils.PageUtils; |
|||
import com.gaotao.common.utils.QueryList; |
|||
import com.gaotao.modules.finishedProduct.entity.CRollinfoEntity; |
|||
import com.gaotao.modules.finishedProduct.vo.CRollinfoVo; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* ${comments} |
|||
* |
|||
* @author sheli |
|||
* @email 1125400943@qq.com |
|||
* @date 2021-09-07 16:26:21 |
|||
*/ |
|||
public interface CRollinfoService extends IService<CRollinfoEntity> { |
|||
|
|||
|
|||
/* |
|||
* @Author sxm |
|||
* @Description // 获取呆滞料 |
|||
* @Date 17:08 2021/9/7 |
|||
* @Param [rollinfoEntity] |
|||
* @return [com.gaotao.modules.finishedProduct.entity.CRollinfoEntity] |
|||
**/ |
|||
List<CRollinfoVo> getCRollinfoList(List<QueryList> queryLists); |
|||
|
|||
} |
|||
|
|||
@ -0,0 +1,158 @@ |
|||
package com.gaotao.modules.finishedProduct.service.impl; |
|||
|
|||
import com.gaotao.common.utils.DateUtils; |
|||
import com.gaotao.common.utils.QueryList; |
|||
import com.gaotao.common.xss.SQLFilter; |
|||
import com.gaotao.modules.finishedProduct.vo.CRollinfoVo; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.Date; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
import java.util.stream.Collectors; |
|||
|
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|||
import com.gaotao.common.utils.PageUtils; |
|||
import com.gaotao.common.utils.Query; |
|||
|
|||
import com.gaotao.modules.finishedProduct.dao.CRollinfoDao; |
|||
import com.gaotao.modules.finishedProduct.entity.CRollinfoEntity; |
|||
import com.gaotao.modules.finishedProduct.service.CRollinfoService; |
|||
|
|||
|
|||
@Service("cRollinfoService") |
|||
public class CRollinfoServiceImpl extends ServiceImpl<CRollinfoDao, CRollinfoEntity> implements CRollinfoService { |
|||
|
|||
|
|||
@Override |
|||
public List<CRollinfoVo> getCRollinfoList(List<QueryList> queryLists) { |
|||
CRollinfoVo cRollinfoVo = new CRollinfoVo(); |
|||
for (QueryList queryList : queryLists) { |
|||
switch (queryList.getQueryAttributes()) { |
|||
case "rollno": |
|||
cRollinfoVo.setRollno(queryList.getQueryValue().toString()); |
|||
break; |
|||
case "site": |
|||
cRollinfoVo.setSite(queryList.getQueryValue().toString()); |
|||
break; |
|||
case "partDescription": |
|||
cRollinfoVo.setPartDescription(queryList.getQueryValue().toString()); |
|||
break; |
|||
case "rollqty": |
|||
cRollinfoVo.setRollqty(Double.valueOf(queryList.getQueryValue().toString())); |
|||
break; |
|||
case "partno": |
|||
cRollinfoVo.setPartno(queryList.getQueryValue().toString()); |
|||
break; |
|||
case "supplierid": |
|||
cRollinfoVo.setSupplierid(queryList.getQueryValue().toString()); |
|||
break; |
|||
case "orderref1": |
|||
cRollinfoVo.setOrderref1(queryList.getQueryValue().toString()); |
|||
break; |
|||
case "orderref2": |
|||
cRollinfoVo.setOrderref2(queryList.getQueryValue().toString()); |
|||
break; |
|||
case "orderref3": |
|||
cRollinfoVo.setOrderref3(queryList.getQueryValue().toString()); |
|||
break; |
|||
case "orderref4": |
|||
cRollinfoVo.setOrderref4(queryList.getQueryValue().toString()); |
|||
break; |
|||
case "orderref5": |
|||
cRollinfoVo.setOrderref5(queryList.getQueryValue().toString()); |
|||
break; |
|||
case "rolldate": |
|||
cRollinfoVo.setRolldate((Date) queryList.getQueryValue()); |
|||
break; |
|||
case "createddate": |
|||
cRollinfoVo.setCreateddate((Date) queryList.getQueryValue()); |
|||
break; |
|||
case "tatusDb": |
|||
cRollinfoVo.setStatusDb(queryList.getQueryValue().toString()); |
|||
break; |
|||
case "status": |
|||
cRollinfoVo.setStatus(queryList.getQueryValue().toString()); |
|||
break; |
|||
case "supprollno": |
|||
cRollinfoVo.setSupprollno(queryList.getQueryValue().toString()); |
|||
break; |
|||
case "rollseqno": |
|||
cRollinfoVo.setRollseqno(Integer.valueOf(queryList.getQueryValue().toString())); |
|||
break; |
|||
case "supprollnoflag": |
|||
cRollinfoVo.setSupprollnoflag(queryList.getQueryValue().toString()); |
|||
break; |
|||
case "sourcetype": |
|||
cRollinfoVo.setSourcetype(queryList.getQueryValue().toString()); |
|||
break; |
|||
case "originalrollno": |
|||
cRollinfoVo.setOriginalrollno(queryList.getQueryValue().toString()); |
|||
break; |
|||
case "rolltype": |
|||
cRollinfoVo.setRolltype(queryList.getQueryValue().toString()); |
|||
break; |
|||
case "rolltypeDb": |
|||
cRollinfoVo.setRolltypeDb(queryList.getQueryValue().toString()); |
|||
break; |
|||
case "firstlevelrollno": |
|||
cRollinfoVo.setFirstlevelrollno(queryList.getQueryValue().toString()); |
|||
break; |
|||
case "remark": |
|||
cRollinfoVo.setRemark(queryList.getQueryValue().toString()); |
|||
break; |
|||
case "parttypeFlag": |
|||
cRollinfoVo.setParttypeFlag(queryList.getQueryValue().toString()); |
|||
break; |
|||
case "warehouseid": |
|||
cRollinfoVo.setWarehouseid(queryList.getQueryValue().toString()); |
|||
break; |
|||
case "synchronizedflag": |
|||
cRollinfoVo.setSynchronizedflag(queryList.getQueryValue().toString()); |
|||
break; |
|||
case "consumeorderno": |
|||
cRollinfoVo.setConsumeorderno(queryList.getQueryValue().toString()); |
|||
break; |
|||
case "consumeseqno": |
|||
cRollinfoVo.setConsumeseqno(Integer.valueOf(queryList.getQueryValue().toString())); |
|||
break; |
|||
case "customerid": |
|||
cRollinfoVo.setCustomerid(queryList.getQueryValue().toString()); |
|||
break; |
|||
case "fgpartno": |
|||
cRollinfoVo.setFgpartno(queryList.getQueryValue().toString()); |
|||
break; |
|||
case "refSupplierid": |
|||
cRollinfoVo.setRefSupplierid(queryList.getQueryValue().toString()); |
|||
break; |
|||
case "refPartdesc": |
|||
cRollinfoVo.setRefPartdesc(queryList.getQueryValue().toString()); |
|||
break; |
|||
case "needsynchronizeflag": |
|||
cRollinfoVo.setNeedsynchronizeflag(queryList.getQueryValue().toString()); |
|||
break; |
|||
case "opslog": |
|||
cRollinfoVo.setOpslog(queryList.getQueryValue().toString()); |
|||
break; |
|||
case "frozenflag": |
|||
cRollinfoVo.setFrozenflag(queryList.getQueryValue().toString()); |
|||
break; |
|||
case "frozenby": |
|||
cRollinfoVo.setFrozenby(queryList.getQueryValue().toString()); |
|||
break; |
|||
case "expireddate": |
|||
cRollinfoVo.setExpireddate((Date) queryList.getQueryValue()); |
|||
break; |
|||
case "manufacturedate": |
|||
cRollinfoVo.setManufacturedate((Date) queryList.getQueryValue()); |
|||
break; |
|||
} |
|||
} |
|||
// 查询条件拼接 |
|||
List<CRollinfoVo> list = this.baseMapper.getCRollinfoList(cRollinfoVo); |
|||
return list; |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,180 @@ |
|||
package com.gaotao.modules.finishedProduct.vo; |
|||
|
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableId; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
|
|||
@Data |
|||
public class CRollinfoVo { |
|||
|
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
@TableId |
|||
private String site; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String rollno; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private Double rollqty; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String partno; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String supplierid; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String orderref1; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String orderref2; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String orderref3; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String orderref4; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String suppdeliverynote; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private Date rolldate; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private Date createddate; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String createdby; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String statusDb; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String status; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String supprollno; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private Integer rollseqno; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String supprollnoflag; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String sourcetype; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String originalrollno; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String orderref5; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String rolltype; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String rolltypeDb; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String firstlevelrollno; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String remark; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String parttypeFlag; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String warehouseid; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String synchronizedflag; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String consumeorderno; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private Integer consumeseqno; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String customerid; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String fgpartno; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String refSupplierid; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String refPartdesc; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String needsynchronizeflag; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String opslog; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String frozenflag; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private Date frozendate; |
|||
/** |
|||
* $column.comments |
|||
*/ |
|||
private String frozenby; |
|||
/** |
|||
* 失效日期 |
|||
*/ |
|||
private Date expireddate; |
|||
/** |
|||
* 制造日期 |
|||
*/ |
|||
private Date manufacturedate; |
|||
|
|||
|
|||
private String partDescription; |
|||
} |
|||
@ -0,0 +1,230 @@ |
|||
<?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.gaotao.modules.finishedProduct.dao.CRollinfoDao"> |
|||
|
|||
<!-- 可根据自己的需求,是否要使用 --> |
|||
<resultMap type="com.gaotao.modules.finishedProduct.entity.CRollinfoEntity" id="cRollinfoMap"> |
|||
<result property="site" column="Site"/> |
|||
<result property="rollno" column="RollNo"/> |
|||
<result property="rollqty" column="RollQty"/> |
|||
<result property="partno" column="PartNo"/> |
|||
<result property="supplierid" column="SupplierID"/> |
|||
<result property="orderref1" column="OrderRef1"/> |
|||
<result property="orderref2" column="OrderRef2"/> |
|||
<result property="orderref3" column="OrderRef3"/> |
|||
<result property="orderref4" column="OrderRef4"/> |
|||
<result property="suppdeliverynote" column="SuppDeliveryNote"/> |
|||
<result property="rolldate" column="RollDate"/> |
|||
<result property="createddate" column="CreatedDate"/> |
|||
<result property="createdby" column="CreatedBy"/> |
|||
<result property="statusDb" column="Status_DB"/> |
|||
<result property="status" column="Status"/> |
|||
<result property="supprollno" column="SuppRollNo"/> |
|||
<result property="rollseqno" column="RollSeqNo"/> |
|||
<result property="supprollnoflag" column="SuppRollNoFlag"/> |
|||
<result property="sourcetype" column="SourceType"/> |
|||
<result property="originalrollno" column="OriginalRollNo"/> |
|||
<result property="orderref5" column="OrderRef5"/> |
|||
<result property="rolltype" column="rolltype"/> |
|||
<result property="rolltypeDb" column="rolltype_db"/> |
|||
<result property="firstlevelrollno" column="firstlevelrollno"/> |
|||
<result property="remark" column="remark"/> |
|||
<result property="parttypeFlag" column="parttype_flag"/> |
|||
<result property="warehouseid" column="warehouseid"/> |
|||
<result property="synchronizedflag" column="synchronizedFlag"/> |
|||
<result property="consumeorderno" column="ConsumeOrderNo"/> |
|||
<result property="consumeseqno" column="ConsumeSeqNo"/> |
|||
<result property="customerid" column="CustomerID"/> |
|||
<result property="fgpartno" column="FGPartNo"/> |
|||
<result property="refSupplierid" column="Ref_SupplierID"/> |
|||
<result property="refPartdesc" column="Ref_PartDesc"/> |
|||
<result property="needsynchronizeflag" column="NeedsynchronizeFlag"/> |
|||
<result property="opslog" column="OpsLog"/> |
|||
<result property="frozenflag" column="frozenflag"/> |
|||
<result property="frozendate" column="frozendate"/> |
|||
<result property="frozenby" column="frozenby"/> |
|||
<result property="expireddate" column="ExpiredDate"/> |
|||
<result property="manufacturedate" column="ManufactureDate"/> |
|||
</resultMap> |
|||
<select id="getCRollinfoList" resultType="com.gaotao.modules.finishedProduct.vo.CRollinfoVo" |
|||
parameterType="com.gaotao.modules.finishedProduct.vo.CRollinfoVo"> |
|||
SELECT TOP 200 |
|||
r.Site, |
|||
r.RollNo, |
|||
r.RollQty, |
|||
r.PartNo, |
|||
r.SupplierID, |
|||
r.OrderRef1, |
|||
r.OrderRef2, |
|||
r.OrderRef3, |
|||
r.OrderRef4, |
|||
r.SuppDeliveryNote, |
|||
r.RollDate, |
|||
r.CreatedDate, |
|||
r.CreatedBy, |
|||
r.Status_DB, |
|||
r.Status, |
|||
r.SuppRollNo, |
|||
r.RollSeqNo, |
|||
r.SuppRollNoFlag, |
|||
r.SourceType, |
|||
r.OriginalRollNo, |
|||
r.OrderRef5, |
|||
r.rolltype, |
|||
r.rolltype_db, |
|||
r.firstlevelrollno, |
|||
r.remark, |
|||
r.parttype_flag, |
|||
r.warehouseid, |
|||
r.synchronizedFlag, |
|||
r.ConsumeOrderNo, |
|||
r.ConsumeSeqNo, |
|||
r.CustomerID, |
|||
r.FGPartNo, |
|||
r.Ref_SupplierID, |
|||
r.Ref_PartDesc, |
|||
r.NeedsynchronizeFlag, |
|||
r.OpsLog, |
|||
r.frozenflag, |
|||
r.frozendate, |
|||
r.frozenby, |
|||
r.ExpiredDate, |
|||
r.ManufactureDate, |
|||
p.PartDescription |
|||
FROM C_RollInfo as r |
|||
LEFT JOIN Part as p on (r.PartNo = r.PartNo) |
|||
<where> |
|||
parttype_flag = 'F' AND Status_DB = 'I' |
|||
<if test="rollno != null"> |
|||
AND r.RollNo like #{rollno} |
|||
</if> |
|||
<if test=" site != null"> |
|||
AND r.Site like #{site} |
|||
</if> |
|||
<if test="partDescription != null"> |
|||
AND p.PartDescription like #{partDescription} |
|||
</if> |
|||
<if test="rollqty != null"> |
|||
AND r.RollQty = #{rollqty} |
|||
</if> |
|||
<if test="partno != null"> |
|||
AND r.PartNo like #{partno} |
|||
</if> |
|||
<if test="supplierid != null"> |
|||
AND r.SupplierID like #{supplierid} |
|||
</if> |
|||
<if test="orderref1 != null"> |
|||
AND r.OrderRef1 like #{orderref1} |
|||
</if> |
|||
<if test="orderref2 != null"> |
|||
AND r.OrderRef2 like #{orderref2} |
|||
</if> |
|||
<if test="orderref3 != null"> |
|||
AND r.OrderRef3 like #{orderref3} |
|||
</if> |
|||
<if test="orderref4 != null"> |
|||
AND r.OrderRef4 like #{orderref4} |
|||
</if> |
|||
<if test="suppdeliverynote != null"> |
|||
AND r.SuppDeliveryNote like #{suppdeliverynote} |
|||
</if> |
|||
<if test="rolldate != null"> |
|||
AND r.RollDate <![CDATA[=]]> #{rolldate} |
|||
</if> |
|||
<if test="createddate != null"> |
|||
AND r.CreatedDate <![CDATA[=]]> #{createddate} |
|||
</if> |
|||
<if test="createdby != null"> |
|||
AND r.CreatedBy like #{createdby} |
|||
</if> |
|||
<if test="statusDb != null"> |
|||
AND r.Status_DB like #{statusDb} |
|||
</if> |
|||
<if test="status != null"> |
|||
AND r.Status like #{status} |
|||
</if> |
|||
<if test="supprollno != null"> |
|||
AND r.SuppRollNo like #{supprollno} |
|||
</if> |
|||
<if test="rollseqno != null"> |
|||
AND r.RollSeqNo like #{rollseqno} |
|||
</if> |
|||
<if test="supprollnoflag != null"> |
|||
AND r.SuppRollNoFlag like #{supprollnoflag} |
|||
</if> |
|||
<if test="sourcetype != null"> |
|||
AND r.SourceType like #{sourcetype} |
|||
</if> |
|||
<if test="originalrollno != null"> |
|||
AND r.OriginalRollNo like #{originalrollno} |
|||
</if> |
|||
<if test="orderref5 != null"> |
|||
AND r.OrderRef5 like #{orderref5} |
|||
</if> |
|||
<if test="rolltype != null"> |
|||
AND r.rolltype like #{rolltype} |
|||
</if> |
|||
<if test="rolltypeDb != null"> |
|||
AND r.rolltype_db like #{rolltypeDb} |
|||
</if> |
|||
<if test="firstlevelrollno != null"> |
|||
AND r.firstlevelrollno like #{firstlevelrollno} |
|||
</if> |
|||
<if test="remark != null"> |
|||
AND r.remark like #{remark} |
|||
</if> |
|||
<if test="parttypeFlag != null"> |
|||
AND r.parttype_flag like #{parttypeFlag} |
|||
</if> |
|||
<if test="warehouseid != null"> |
|||
AND r.warehouseidV like #{warehouseid} |
|||
</if> |
|||
<if test="synchronizedflag != null"> |
|||
AND r.synchronizedFlag like #{synchronizedflag} |
|||
</if> |
|||
<if test="consumeorderno != null"> |
|||
AND r.ConsumeOrderNo like #{consumeorderno} |
|||
</if> |
|||
<if test="consumeseqno != null"> |
|||
AND r.ConsumeSeqNo like #{consumeseqno} |
|||
</if> |
|||
<if test="customerid != null"> |
|||
AND r.CustomerID like #{customerid} |
|||
</if> |
|||
<if test="fgpartno != null"> |
|||
AND r.FGPartNo like #{fgpartno} |
|||
</if> |
|||
<if test="refSupplierid != null"> |
|||
AND r.Ref_SupplierID like #{refSupplierid} |
|||
</if> |
|||
<if test="refPartdesc != null"> |
|||
AND r.Ref_PartDesc like #{refPartdesc} |
|||
</if> |
|||
<if test="needsynchronizeflag != null"> |
|||
AND r.NeedsynchronizeFlag like #{needsynchronizeflag} |
|||
</if> |
|||
<if test="opslog != null"> |
|||
AND r.OpsLog like #{opslog} |
|||
</if> |
|||
<if test="frozenflag != null"> |
|||
AND r.frozenflag like #{frozenflag} |
|||
</if> |
|||
<if test="frozendate != null"> |
|||
AND r.frozendate <![CDATA[=]]> #{frozendate} |
|||
</if> |
|||
<if test="frozenby != null"> |
|||
AND r.frozenby like #{frozenby} |
|||
</if> |
|||
<if test="expireddate != null"> |
|||
AND r.ExpiredDate <![CDATA[=]]> #{expireddate} |
|||
</if> |
|||
<if test="manufacturedate != null"> |
|||
AND r.ManufactureDate <![CDATA[=]]> #{manufacturedate} |
|||
</if> |
|||
</where> |
|||
|
|||
</select> |
|||
|
|||
|
|||
</mapper> |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue