Z_ABNORMAL_BILL_DISPOSE 表导入

赵嘉伟 4 years ago
parent 1dc6f78310
commit 817f186c59

@ -0,0 +1,137 @@
package com.foreverwin.mesnac.anomaly.controller;
import com.foreverwin.modular.core.util.R;
import com.foreverwin.modular.core.util.FrontPage;
import com.foreverwin.modular.core.util.CommonMethods;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.foreverwin.mesnac.anomaly.service.AbnormalBillDisposeService;
import com.foreverwin.mesnac.anomaly.model.AbnormalBillDispose;
import java.util.List;
/**
*
* @author robert
* @since 2021-06-29
*/
@RestController
@RequestMapping("/Z-ABNORMAL-BILL-DISPOSE")
public class AbnormalBillDisposeController {
@Autowired
public AbnormalBillDisposeService abnormalBillDisposeService;
/**
* id
*
* @param id
* @return
*/
@ResponseBody
@GetMapping("/{id:.+}")
public R getAbnormalBillDisposeById(@PathVariable String id) {
return R.ok( abnormalBillDisposeService.getById(id));
}
/**
*
*
* @return
*/
@ResponseBody
@GetMapping("")
public R getAbnormalBillDisposeList(AbnormalBillDispose abnormalBillDispose){
List<AbnormalBillDispose> result;
QueryWrapper<AbnormalBillDispose> queryWrapper = new QueryWrapper<>();
queryWrapper.setEntity(abnormalBillDispose);
result = abnormalBillDisposeService.list(queryWrapper);
return R.ok(result);
}
/**
*
*
* @param frontPage
* @return
*/
@ResponseBody
@GetMapping("/page")
public R page(FrontPage<AbnormalBillDispose> frontPage, AbnormalBillDispose abnormalBillDispose){
IPage result;
QueryWrapper<AbnormalBillDispose> queryWrapper = new QueryWrapper<>();
queryWrapper.setEntity(abnormalBillDispose);
if (frontPage.getGlobalQuery() != null && !"".equals(frontPage.getGlobalQuery().trim())) {
//TODO modify global query
queryWrapper.lambda().and(wrapper -> wrapper
.like(AbnormalBillDispose::getHandle, frontPage.getGlobalQuery())
.or().like(AbnormalBillDispose::getSite, frontPage.getGlobalQuery())
.or().like(AbnormalBillDispose::getAbnormalBillBo, frontPage.getGlobalQuery())
.or().like(AbnormalBillDispose::getDutyUser, frontPage.getGlobalQuery())
.or().like(AbnormalBillDispose::getDutyDepart, frontPage.getGlobalQuery())
.or().like(AbnormalBillDispose::getPrincipalUser, frontPage.getGlobalQuery())
.or().like(AbnormalBillDispose::getDutyCauseDescription, frontPage.getGlobalQuery())
.or().like(AbnormalBillDispose::getDutyCauseType, frontPage.getGlobalQuery())
.or().like(AbnormalBillDispose::getDutySendUserGroup, frontPage.getGlobalQuery())
.or().like(AbnormalBillDispose::getResolveUser, frontPage.getGlobalQuery())
.or().like(AbnormalBillDispose::getAbnormalMethod, frontPage.getGlobalQuery())
.or().like(AbnormalBillDispose::getRouterBo, frontPage.getGlobalQuery())
.or().like(AbnormalBillDispose::getResolveShopOrder, frontPage.getGlobalQuery())
.or().like(AbnormalBillDispose::getResolveRemark, frontPage.getGlobalQuery())
.or().like(AbnormalBillDispose::getResolveSendUser, frontPage.getGlobalQuery())
.or().like(AbnormalBillDispose::getClosedUser, frontPage.getGlobalQuery())
.or().like(AbnormalBillDispose::getAbnormalReason, frontPage.getGlobalQuery())
.or().like(AbnormalBillDispose::getBeforeMeasure, frontPage.getGlobalQuery())
.or().like(AbnormalBillDispose::getCreatedUser, frontPage.getGlobalQuery())
.or().like(AbnormalBillDispose::getModifiedUser, frontPage.getGlobalQuery())
);
}
result = abnormalBillDisposeService.page(frontPage.getPagePlus(), queryWrapper);
return R.ok(result);
}
/**
*
* @param abnormalBillDispose
* @return null
*/
@PostMapping
public R save(@RequestBody AbnormalBillDispose abnormalBillDispose) {
return R.ok(abnormalBillDisposeService.save(abnormalBillDispose));
}
/**
*
* @param abnormalBillDispose
* @return null
*/
@PutMapping
public R updateById(@RequestBody AbnormalBillDispose abnormalBillDispose) {
return R.ok(abnormalBillDisposeService.updateById(abnormalBillDispose));
}
/**
* id
* @param id ID
* @return 0 1
*/
@ResponseBody
@RequestMapping(method = RequestMethod.DELETE, value = "/{id:.+}")
public R removeById(@PathVariable("id") String id){
return R.ok(abnormalBillDisposeService.removeById(id));
}
/**
*
* @param ids ID
* @return 0 1
*/
@ResponseBody
@RequestMapping(method = RequestMethod.POST, value = "/delete-batch")
public R removeByIds(List<String> ids){
return R.ok(abnormalBillDisposeService.removeByIds(ids));
}
}

@ -0,0 +1,18 @@
package com.foreverwin.mesnac.anomaly.mapper;
import com.foreverwin.mesnac.anomaly.model.AbnormalBillDispose;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
/**
* <p>
* Mapper
* </p>
*
* @author robert
* @since 2021-06-29
*/
@Repository
public interface AbnormalBillDisposeMapper extends BaseMapper<AbnormalBillDispose> {
}

@ -0,0 +1,438 @@
package com.foreverwin.mesnac.anomaly.model;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* <p>
*
* </p>
*
* @author robert
* @since 2021-06-29
*/
@TableName("Z_ABNORMAL_BILL_DISPOSE")
public class AbnormalBillDispose extends Model<AbnormalBillDispose> {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableField("HANDLE")
private String handle;
/**
*
*/
@TableField("SITE")
private String site;
/**
* BO
*/
@TableField("ABNORMAL_BILL_BO")
private String abnormalBillBo;
/**
*
*/
@TableField("DUTY_USER")
private String dutyUser;
/**
*
*/
@TableField("DUTY_DATE_TIME")
private LocalDateTime dutyDateTime;
/**
*
*/
@TableField("DUTY_DEPART")
private String dutyDepart;
/**
*
*/
@TableField("PRINCIPAL_USER")
private String principalUser;
/**
*
*/
@TableField("DUTY_CAUSE_DESCRIPTION")
private String dutyCauseDescription;
/**
*
*/
@TableField("DUTY_CAUSE_TYPE")
private String dutyCauseType;
/**
*
*/
@TableField("DUTY_SEND_USER_GROUP")
private String dutySendUserGroup;
/**
*
*/
@TableField("RESOLVE_USER")
private String resolveUser;
/**
*
*/
@TableField("RESOLVE_DATE_TIME")
private LocalDateTime resolveDateTime;
/**
*
*/
@TableField("ABNORMAL_METHOD")
private String abnormalMethod;
/**
*
*/
@TableField("ROUTER_BO")
private String routerBo;
/**
*
*/
@TableField("RESOLVE_SHOP_ORDER")
private String resolveShopOrder;
/**
*
*/
@TableField("RESOLVE_REMARK")
private String resolveRemark;
/**
*
*/
@TableField("RESOLVE_SEND_USER")
private String resolveSendUser;
/**
*
*/
@TableField("CLOSED_USER")
private String closedUser;
/**
*
*/
@TableField("CLOSED_DATE_TIME")
private LocalDateTime closedDateTime;
/**
*
*/
@TableField("ABNORMAL_REASON")
private String abnormalReason;
/**
*
*/
@TableField("BEFORE_MEASURE")
private String beforeMeasure;
/**
*
*/
@TableField("CREATED_USER")
private String createdUser;
/**
*
*/
@TableField("CREATED_DATA_TIME")
private LocalDateTime createdDataTime;
/**
*
*/
@TableField("MODIFIED_USER")
private String modifiedUser;
/**
*
*/
@TableField("MODIFIED_DATE_TIME")
private LocalDateTime modifiedDateTime;
public String getHandle() {
return handle;
}
public void setHandle(String handle) {
this.handle = handle;
}
public String getSite() {
return site;
}
public void setSite(String site) {
this.site = site;
}
public String getAbnormalBillBo() {
return abnormalBillBo;
}
public void setAbnormalBillBo(String abnormalBillBo) {
this.abnormalBillBo = abnormalBillBo;
}
public String getDutyUser() {
return dutyUser;
}
public void setDutyUser(String dutyUser) {
this.dutyUser = dutyUser;
}
public LocalDateTime getDutyDateTime() {
return dutyDateTime;
}
public void setDutyDateTime(LocalDateTime dutyDateTime) {
this.dutyDateTime = dutyDateTime;
}
public String getDutyDepart() {
return dutyDepart;
}
public void setDutyDepart(String dutyDepart) {
this.dutyDepart = dutyDepart;
}
public String getPrincipalUser() {
return principalUser;
}
public void setPrincipalUser(String principalUser) {
this.principalUser = principalUser;
}
public String getDutyCauseDescription() {
return dutyCauseDescription;
}
public void setDutyCauseDescription(String dutyCauseDescription) {
this.dutyCauseDescription = dutyCauseDescription;
}
public String getDutyCauseType() {
return dutyCauseType;
}
public void setDutyCauseType(String dutyCauseType) {
this.dutyCauseType = dutyCauseType;
}
public String getDutySendUserGroup() {
return dutySendUserGroup;
}
public void setDutySendUserGroup(String dutySendUserGroup) {
this.dutySendUserGroup = dutySendUserGroup;
}
public String getResolveUser() {
return resolveUser;
}
public void setResolveUser(String resolveUser) {
this.resolveUser = resolveUser;
}
public LocalDateTime getResolveDateTime() {
return resolveDateTime;
}
public void setResolveDateTime(LocalDateTime resolveDateTime) {
this.resolveDateTime = resolveDateTime;
}
public String getAbnormalMethod() {
return abnormalMethod;
}
public void setAbnormalMethod(String abnormalMethod) {
this.abnormalMethod = abnormalMethod;
}
public String getRouterBo() {
return routerBo;
}
public void setRouterBo(String routerBo) {
this.routerBo = routerBo;
}
public String getResolveShopOrder() {
return resolveShopOrder;
}
public void setResolveShopOrder(String resolveShopOrder) {
this.resolveShopOrder = resolveShopOrder;
}
public String getResolveRemark() {
return resolveRemark;
}
public void setResolveRemark(String resolveRemark) {
this.resolveRemark = resolveRemark;
}
public String getResolveSendUser() {
return resolveSendUser;
}
public void setResolveSendUser(String resolveSendUser) {
this.resolveSendUser = resolveSendUser;
}
public String getClosedUser() {
return closedUser;
}
public void setClosedUser(String closedUser) {
this.closedUser = closedUser;
}
public LocalDateTime getClosedDateTime() {
return closedDateTime;
}
public void setClosedDateTime(LocalDateTime closedDateTime) {
this.closedDateTime = closedDateTime;
}
public String getAbnormalReason() {
return abnormalReason;
}
public void setAbnormalReason(String abnormalReason) {
this.abnormalReason = abnormalReason;
}
public String getBeforeMeasure() {
return beforeMeasure;
}
public void setBeforeMeasure(String beforeMeasure) {
this.beforeMeasure = beforeMeasure;
}
public String getCreatedUser() {
return createdUser;
}
public void setCreatedUser(String createdUser) {
this.createdUser = createdUser;
}
public LocalDateTime getCreatedDataTime() {
return createdDataTime;
}
public void setCreatedDataTime(LocalDateTime createdDataTime) {
this.createdDataTime = createdDataTime;
}
public String getModifiedUser() {
return modifiedUser;
}
public void setModifiedUser(String modifiedUser) {
this.modifiedUser = modifiedUser;
}
public LocalDateTime getModifiedDateTime() {
return modifiedDateTime;
}
public void setModifiedDateTime(LocalDateTime modifiedDateTime) {
this.modifiedDateTime = modifiedDateTime;
}
public static final String HANDLE = "HANDLE";
public static final String SITE = "SITE";
public static final String ABNORMAL_BILL_BO = "ABNORMAL_BILL_BO";
public static final String DUTY_USER = "DUTY_USER";
public static final String DUTY_DATE_TIME = "DUTY_DATE_TIME";
public static final String DUTY_DEPART = "DUTY_DEPART";
public static final String PRINCIPAL_USER = "PRINCIPAL_USER";
public static final String DUTY_CAUSE_DESCRIPTION = "DUTY_CAUSE_DESCRIPTION";
public static final String DUTY_CAUSE_TYPE = "DUTY_CAUSE_TYPE";
public static final String DUTY_SEND_USER_GROUP = "DUTY_SEND_USER_GROUP";
public static final String RESOLVE_USER = "RESOLVE_USER";
public static final String RESOLVE_DATE_TIME = "RESOLVE_DATE_TIME";
public static final String ABNORMAL_METHOD = "ABNORMAL_METHOD";
public static final String ROUTER_BO = "ROUTER_BO";
public static final String RESOLVE_SHOP_ORDER = "RESOLVE_SHOP_ORDER";
public static final String RESOLVE_REMARK = "RESOLVE_REMARK";
public static final String RESOLVE_SEND_USER = "RESOLVE_SEND_USER";
public static final String CLOSED_USER = "CLOSED_USER";
public static final String CLOSED_DATE_TIME = "CLOSED_DATE_TIME";
public static final String ABNORMAL_REASON = "ABNORMAL_REASON";
public static final String BEFORE_MEASURE = "BEFORE_MEASURE";
public static final String CREATED_USER = "CREATED_USER";
public static final String CREATED_DATA_TIME = "CREATED_DATA_TIME";
public static final String MODIFIED_USER = "MODIFIED_USER";
public static final String MODIFIED_DATE_TIME = "MODIFIED_DATE_TIME";
@Override
protected Serializable pkVal() {
return this.handle;
}
@Override
public String toString() {
return "AbnormalBillDispose{" +
"handle = " + handle +
", site = " + site +
", abnormalBillBo = " + abnormalBillBo +
", dutyUser = " + dutyUser +
", dutyDateTime = " + dutyDateTime +
", dutyDepart = " + dutyDepart +
", principalUser = " + principalUser +
", dutyCauseDescription = " + dutyCauseDescription +
", dutyCauseType = " + dutyCauseType +
", dutySendUserGroup = " + dutySendUserGroup +
", resolveUser = " + resolveUser +
", resolveDateTime = " + resolveDateTime +
", abnormalMethod = " + abnormalMethod +
", routerBo = " + routerBo +
", resolveShopOrder = " + resolveShopOrder +
", resolveRemark = " + resolveRemark +
", resolveSendUser = " + resolveSendUser +
", closedUser = " + closedUser +
", closedDateTime = " + closedDateTime +
", abnormalReason = " + abnormalReason +
", beforeMeasure = " + beforeMeasure +
", createdUser = " + createdUser +
", createdDataTime = " + createdDataTime +
", modifiedUser = " + modifiedUser +
", modifiedDateTime = " + modifiedDateTime +
"}";
}
}

@ -0,0 +1,28 @@
package com.foreverwin.mesnac.anomaly.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.foreverwin.mesnac.anomaly.model.AbnormalBillDispose;
import com.baomidou.mybatisplus.extension.service.IService;
import com.foreverwin.modular.core.util.FrontPage;
import java.util.List;
/**
* <p>
*
* </p>
*
* @author robert
* @since 2021-06-29
*/
public interface AbnormalBillDisposeService extends IService<AbnormalBillDispose> {
/**
*
* @param frontPage
* @return
*/
IPage<AbnormalBillDispose> selectPage(FrontPage<AbnormalBillDispose> frontPage, AbnormalBillDispose abnormalBillDispose);
List<AbnormalBillDispose> selectList(AbnormalBillDispose abnormalBillDispose);
}

@ -0,0 +1,46 @@
package com.foreverwin.mesnac.anomaly.service.impl;
import com.foreverwin.modular.core.util.FrontPage;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.foreverwin.mesnac.anomaly.model.AbnormalBillDispose;
import com.foreverwin.mesnac.anomaly.mapper.AbnormalBillDisposeMapper;
import com.foreverwin.mesnac.anomaly.service.AbnormalBillDisposeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
/**
* <p>
*
* </p>
*
* @author robert
* @since 2021-06-29
*/
@Service
@Transactional(rollbackFor = Exception.class)
public class AbnormalBillDisposeServiceImpl extends ServiceImpl<AbnormalBillDisposeMapper, AbnormalBillDispose> implements AbnormalBillDisposeService {
@Autowired
private AbnormalBillDisposeMapper abnormalBillDisposeMapper;
@Override
public IPage<AbnormalBillDispose> selectPage(FrontPage<AbnormalBillDispose> frontPage, AbnormalBillDispose abnormalBillDispose) {
QueryWrapper<AbnormalBillDispose> queryWrapper = new QueryWrapper<>();
queryWrapper.setEntity(abnormalBillDispose);
return super.page(frontPage.getPagePlus(), queryWrapper);
}
@Override
public List<AbnormalBillDispose> selectList(AbnormalBillDispose abnormalBillDispose) {
QueryWrapper<AbnormalBillDispose> queryWrapper = new QueryWrapper<>();
queryWrapper.setEntity(abnormalBillDispose);
return super.list(queryWrapper);
}
}

@ -0,0 +1,570 @@
<?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.foreverwin.mesnac.anomaly.mapper.AbnormalBillDisposeMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.foreverwin.mesnac.anomaly.model.AbnormalBillDispose">
<result column="HANDLE" property="handle" />
<result column="SITE" property="site" />
<result column="ABNORMAL_BILL_BO" property="abnormalBillBo" />
<result column="DUTY_USER" property="dutyUser" />
<result column="DUTY_DATE_TIME" property="dutyDateTime" />
<result column="DUTY_DEPART" property="dutyDepart" />
<result column="PRINCIPAL_USER" property="principalUser" />
<result column="DUTY_CAUSE_DESCRIPTION" property="dutyCauseDescription" />
<result column="DUTY_CAUSE_TYPE" property="dutyCauseType" />
<result column="DUTY_SEND_USER_GROUP" property="dutySendUserGroup" />
<result column="RESOLVE_USER" property="resolveUser" />
<result column="RESOLVE_DATE_TIME" property="resolveDateTime" />
<result column="ABNORMAL_METHOD" property="abnormalMethod" />
<result column="ROUTER_BO" property="routerBo" />
<result column="RESOLVE_SHOP_ORDER" property="resolveShopOrder" />
<result column="RESOLVE_REMARK" property="resolveRemark" />
<result column="RESOLVE_SEND_USER" property="resolveSendUser" />
<result column="CLOSED_USER" property="closedUser" />
<result column="CLOSED_DATE_TIME" property="closedDateTime" />
<result column="ABNORMAL_REASON" property="abnormalReason" />
<result column="BEFORE_MEASURE" property="beforeMeasure" />
<result column="CREATED_USER" property="createdUser" />
<result column="CREATED_DATA_TIME" property="createdDataTime" />
<result column="MODIFIED_USER" property="modifiedUser" />
<result column="MODIFIED_DATE_TIME" property="modifiedDateTime" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
HANDLE, SITE, ABNORMAL_BILL_BO, DUTY_USER, DUTY_DATE_TIME, DUTY_DEPART, PRINCIPAL_USER, DUTY_CAUSE_DESCRIPTION, DUTY_CAUSE_TYPE, DUTY_SEND_USER_GROUP, RESOLVE_USER, RESOLVE_DATE_TIME, ABNORMAL_METHOD, ROUTER_BO, RESOLVE_SHOP_ORDER, RESOLVE_REMARK, RESOLVE_SEND_USER, CLOSED_USER, CLOSED_DATE_TIME, ABNORMAL_REASON, BEFORE_MEASURE, CREATED_USER, CREATED_DATA_TIME, MODIFIED_USER, MODIFIED_DATE_TIME
</sql>
<!-- BaseMapper标准查询/修改/删除 -->
<select id="selectByMap" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List"></include>
FROM Z_ABNORMAL_BILL_DISPOSE
<if test="cm!=null and !cm.isEmpty">
<where>
<foreach collection="cm.keys" item="k" separator="AND">
<if test="cm[k] != null">
${k} = #{cm[${k}]}
</if>
</foreach>
</where>
</if>
</select>
<select id="selectOne" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List"></include> FROM Z_ABNORMAL_BILL_DISPOSE
<where>
<if test="ew.entity.handle!=null">
HANDLE=#{ew.handle}
</if>
<if test="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
<if test="ew.entity.abnormalBillBo!=null"> AND ABNORMAL_BILL_BO=#{ew.entity.abnormalBillBo}</if>
<if test="ew.entity.dutyUser!=null"> AND DUTY_USER=#{ew.entity.dutyUser}</if>
<if test="ew.entity.dutyDateTime!=null"> AND DUTY_DATE_TIME=#{ew.entity.dutyDateTime}</if>
<if test="ew.entity.dutyDepart!=null"> AND DUTY_DEPART=#{ew.entity.dutyDepart}</if>
<if test="ew.entity.principalUser!=null"> AND PRINCIPAL_USER=#{ew.entity.principalUser}</if>
<if test="ew.entity.dutyCauseDescription!=null"> AND DUTY_CAUSE_DESCRIPTION=#{ew.entity.dutyCauseDescription}</if>
<if test="ew.entity.dutyCauseType!=null"> AND DUTY_CAUSE_TYPE=#{ew.entity.dutyCauseType}</if>
<if test="ew.entity.dutySendUserGroup!=null"> AND DUTY_SEND_USER_GROUP=#{ew.entity.dutySendUserGroup}</if>
<if test="ew.entity.resolveUser!=null"> AND RESOLVE_USER=#{ew.entity.resolveUser}</if>
<if test="ew.entity.resolveDateTime!=null"> AND RESOLVE_DATE_TIME=#{ew.entity.resolveDateTime}</if>
<if test="ew.entity.abnormalMethod!=null"> AND ABNORMAL_METHOD=#{ew.entity.abnormalMethod}</if>
<if test="ew.entity.routerBo!=null"> AND ROUTER_BO=#{ew.entity.routerBo}</if>
<if test="ew.entity.resolveShopOrder!=null"> AND RESOLVE_SHOP_ORDER=#{ew.entity.resolveShopOrder}</if>
<if test="ew.entity.resolveRemark!=null"> AND RESOLVE_REMARK=#{ew.entity.resolveRemark}</if>
<if test="ew.entity.resolveSendUser!=null"> AND RESOLVE_SEND_USER=#{ew.entity.resolveSendUser}</if>
<if test="ew.entity.closedUser!=null"> AND CLOSED_USER=#{ew.entity.closedUser}</if>
<if test="ew.entity.closedDateTime!=null"> AND CLOSED_DATE_TIME=#{ew.entity.closedDateTime}</if>
<if test="ew.entity.abnormalReason!=null"> AND ABNORMAL_REASON=#{ew.entity.abnormalReason}</if>
<if test="ew.entity.beforeMeasure!=null"> AND BEFORE_MEASURE=#{ew.entity.beforeMeasure}</if>
<if test="ew.entity.createdUser!=null"> AND CREATED_USER=#{ew.entity.createdUser}</if>
<if test="ew.entity.createdDataTime!=null"> AND CREATED_DATA_TIME=#{ew.entity.createdDataTime}</if>
<if test="ew.entity.modifiedUser!=null"> AND MODIFIED_USER=#{ew.entity.modifiedUser}</if>
<if test="ew.entity.modifiedDateTime!=null"> AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}</if>
</where>
</select>
<select id="selectCount" resultType="Integer">
SELECT COUNT(1) FROM Z_ABNORMAL_BILL_DISPOSE
<where>
<if test="ew!=null">
<if test="ew.entity!=null">
<if test="ew.entity.handle!=null">
HANDLE=#{ew.entity.handle}
</if>
<if test="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
<if test="ew.entity.abnormalBillBo!=null"> AND ABNORMAL_BILL_BO=#{ew.entity.abnormalBillBo}</if>
<if test="ew.entity.dutyUser!=null"> AND DUTY_USER=#{ew.entity.dutyUser}</if>
<if test="ew.entity.dutyDateTime!=null"> AND DUTY_DATE_TIME=#{ew.entity.dutyDateTime}</if>
<if test="ew.entity.dutyDepart!=null"> AND DUTY_DEPART=#{ew.entity.dutyDepart}</if>
<if test="ew.entity.principalUser!=null"> AND PRINCIPAL_USER=#{ew.entity.principalUser}</if>
<if test="ew.entity.dutyCauseDescription!=null"> AND DUTY_CAUSE_DESCRIPTION=#{ew.entity.dutyCauseDescription}</if>
<if test="ew.entity.dutyCauseType!=null"> AND DUTY_CAUSE_TYPE=#{ew.entity.dutyCauseType}</if>
<if test="ew.entity.dutySendUserGroup!=null"> AND DUTY_SEND_USER_GROUP=#{ew.entity.dutySendUserGroup}</if>
<if test="ew.entity.resolveUser!=null"> AND RESOLVE_USER=#{ew.entity.resolveUser}</if>
<if test="ew.entity.resolveDateTime!=null"> AND RESOLVE_DATE_TIME=#{ew.entity.resolveDateTime}</if>
<if test="ew.entity.abnormalMethod!=null"> AND ABNORMAL_METHOD=#{ew.entity.abnormalMethod}</if>
<if test="ew.entity.routerBo!=null"> AND ROUTER_BO=#{ew.entity.routerBo}</if>
<if test="ew.entity.resolveShopOrder!=null"> AND RESOLVE_SHOP_ORDER=#{ew.entity.resolveShopOrder}</if>
<if test="ew.entity.resolveRemark!=null"> AND RESOLVE_REMARK=#{ew.entity.resolveRemark}</if>
<if test="ew.entity.resolveSendUser!=null"> AND RESOLVE_SEND_USER=#{ew.entity.resolveSendUser}</if>
<if test="ew.entity.closedUser!=null"> AND CLOSED_USER=#{ew.entity.closedUser}</if>
<if test="ew.entity.closedDateTime!=null"> AND CLOSED_DATE_TIME=#{ew.entity.closedDateTime}</if>
<if test="ew.entity.abnormalReason!=null"> AND ABNORMAL_REASON=#{ew.entity.abnormalReason}</if>
<if test="ew.entity.beforeMeasure!=null"> AND BEFORE_MEASURE=#{ew.entity.beforeMeasure}</if>
<if test="ew.entity.createdUser!=null"> AND CREATED_USER=#{ew.entity.createdUser}</if>
<if test="ew.entity.createdDataTime!=null"> AND CREATED_DATA_TIME=#{ew.entity.createdDataTime}</if>
<if test="ew.entity.modifiedUser!=null"> AND MODIFIED_USER=#{ew.entity.modifiedUser}</if>
<if test="ew.entity.modifiedDateTime!=null"> AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}</if>
</if>
<if test="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
${ew.sqlSegment}
</if>
</if>
</where>
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">
${ew.sqlSegment}
</if>
</select>
<select id="selectList" resultMap="BaseResultMap">
SELECT <choose><when test="ew != null and ew.sqlSelect != null">${ew.sqlSelect}</when><otherwise><include refid="Base_Column_List"></include></otherwise></choose> FROM Z_ABNORMAL_BILL_DISPOSE
<where>
<if test="ew!=null">
<if test="ew.entity!=null">
<if test="ew.entity.handle!=null">
HANDLE=#{ew.entity.handle}
</if>
<if test="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
<if test="ew.entity.abnormalBillBo!=null"> AND ABNORMAL_BILL_BO=#{ew.entity.abnormalBillBo}</if>
<if test="ew.entity.dutyUser!=null"> AND DUTY_USER=#{ew.entity.dutyUser}</if>
<if test="ew.entity.dutyDateTime!=null"> AND DUTY_DATE_TIME=#{ew.entity.dutyDateTime}</if>
<if test="ew.entity.dutyDepart!=null"> AND DUTY_DEPART=#{ew.entity.dutyDepart}</if>
<if test="ew.entity.principalUser!=null"> AND PRINCIPAL_USER=#{ew.entity.principalUser}</if>
<if test="ew.entity.dutyCauseDescription!=null"> AND DUTY_CAUSE_DESCRIPTION=#{ew.entity.dutyCauseDescription}</if>
<if test="ew.entity.dutyCauseType!=null"> AND DUTY_CAUSE_TYPE=#{ew.entity.dutyCauseType}</if>
<if test="ew.entity.dutySendUserGroup!=null"> AND DUTY_SEND_USER_GROUP=#{ew.entity.dutySendUserGroup}</if>
<if test="ew.entity.resolveUser!=null"> AND RESOLVE_USER=#{ew.entity.resolveUser}</if>
<if test="ew.entity.resolveDateTime!=null"> AND RESOLVE_DATE_TIME=#{ew.entity.resolveDateTime}</if>
<if test="ew.entity.abnormalMethod!=null"> AND ABNORMAL_METHOD=#{ew.entity.abnormalMethod}</if>
<if test="ew.entity.routerBo!=null"> AND ROUTER_BO=#{ew.entity.routerBo}</if>
<if test="ew.entity.resolveShopOrder!=null"> AND RESOLVE_SHOP_ORDER=#{ew.entity.resolveShopOrder}</if>
<if test="ew.entity.resolveRemark!=null"> AND RESOLVE_REMARK=#{ew.entity.resolveRemark}</if>
<if test="ew.entity.resolveSendUser!=null"> AND RESOLVE_SEND_USER=#{ew.entity.resolveSendUser}</if>
<if test="ew.entity.closedUser!=null"> AND CLOSED_USER=#{ew.entity.closedUser}</if>
<if test="ew.entity.closedDateTime!=null"> AND CLOSED_DATE_TIME=#{ew.entity.closedDateTime}</if>
<if test="ew.entity.abnormalReason!=null"> AND ABNORMAL_REASON=#{ew.entity.abnormalReason}</if>
<if test="ew.entity.beforeMeasure!=null"> AND BEFORE_MEASURE=#{ew.entity.beforeMeasure}</if>
<if test="ew.entity.createdUser!=null"> AND CREATED_USER=#{ew.entity.createdUser}</if>
<if test="ew.entity.createdDataTime!=null"> AND CREATED_DATA_TIME=#{ew.entity.createdDataTime}</if>
<if test="ew.entity.modifiedUser!=null"> AND MODIFIED_USER=#{ew.entity.modifiedUser}</if>
<if test="ew.entity.modifiedDateTime!=null"> AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}</if>
</if>
<if test="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
${ew.sqlSegment}
</if>
</if>
</where>
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">
${ew.sqlSegment}
</if>
</select>
<select id="selectMaps" resultType="HashMap">
SELECT <choose><when test="ew != null and ew.sqlSelect != null">${ew.sqlSelect}</when><otherwise><include refid="Base_Column_List"></include></otherwise></choose> FROM Z_ABNORMAL_BILL_DISPOSE
<where>
<if test="ew!=null">
<if test="ew.entity!=null">
<if test="ew.entity.handle!=null">
HANDLE=#{ew.entity.handle}
</if>
<if test="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
<if test="ew.entity.abnormalBillBo!=null"> AND ABNORMAL_BILL_BO=#{ew.entity.abnormalBillBo}</if>
<if test="ew.entity.dutyUser!=null"> AND DUTY_USER=#{ew.entity.dutyUser}</if>
<if test="ew.entity.dutyDateTime!=null"> AND DUTY_DATE_TIME=#{ew.entity.dutyDateTime}</if>
<if test="ew.entity.dutyDepart!=null"> AND DUTY_DEPART=#{ew.entity.dutyDepart}</if>
<if test="ew.entity.principalUser!=null"> AND PRINCIPAL_USER=#{ew.entity.principalUser}</if>
<if test="ew.entity.dutyCauseDescription!=null"> AND DUTY_CAUSE_DESCRIPTION=#{ew.entity.dutyCauseDescription}</if>
<if test="ew.entity.dutyCauseType!=null"> AND DUTY_CAUSE_TYPE=#{ew.entity.dutyCauseType}</if>
<if test="ew.entity.dutySendUserGroup!=null"> AND DUTY_SEND_USER_GROUP=#{ew.entity.dutySendUserGroup}</if>
<if test="ew.entity.resolveUser!=null"> AND RESOLVE_USER=#{ew.entity.resolveUser}</if>
<if test="ew.entity.resolveDateTime!=null"> AND RESOLVE_DATE_TIME=#{ew.entity.resolveDateTime}</if>
<if test="ew.entity.abnormalMethod!=null"> AND ABNORMAL_METHOD=#{ew.entity.abnormalMethod}</if>
<if test="ew.entity.routerBo!=null"> AND ROUTER_BO=#{ew.entity.routerBo}</if>
<if test="ew.entity.resolveShopOrder!=null"> AND RESOLVE_SHOP_ORDER=#{ew.entity.resolveShopOrder}</if>
<if test="ew.entity.resolveRemark!=null"> AND RESOLVE_REMARK=#{ew.entity.resolveRemark}</if>
<if test="ew.entity.resolveSendUser!=null"> AND RESOLVE_SEND_USER=#{ew.entity.resolveSendUser}</if>
<if test="ew.entity.closedUser!=null"> AND CLOSED_USER=#{ew.entity.closedUser}</if>
<if test="ew.entity.closedDateTime!=null"> AND CLOSED_DATE_TIME=#{ew.entity.closedDateTime}</if>
<if test="ew.entity.abnormalReason!=null"> AND ABNORMAL_REASON=#{ew.entity.abnormalReason}</if>
<if test="ew.entity.beforeMeasure!=null"> AND BEFORE_MEASURE=#{ew.entity.beforeMeasure}</if>
<if test="ew.entity.createdUser!=null"> AND CREATED_USER=#{ew.entity.createdUser}</if>
<if test="ew.entity.createdDataTime!=null"> AND CREATED_DATA_TIME=#{ew.entity.createdDataTime}</if>
<if test="ew.entity.modifiedUser!=null"> AND MODIFIED_USER=#{ew.entity.modifiedUser}</if>
<if test="ew.entity.modifiedDateTime!=null"> AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}</if>
</if>
<if test="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
${ew.sqlSegment}
</if>
</if>
</where>
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">
${ew.sqlSegment}
</if>
</select>
<select id="selectObjs" resultType="Object">
SELECT <choose><when test="ew != null and ew.sqlSelect != null">${ew.sqlSelect}</when><otherwise><include refid="Base_Column_List"></include></otherwise></choose> FROM Z_ABNORMAL_BILL_DISPOSE
<where>
<if test="ew!=null">
<if test="ew.entity!=null">
<if test="ew.entity.handle!=null">
HANDLE=#{ew.entity.handle}
</if>
<if test="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
<if test="ew.entity.abnormalBillBo!=null"> AND ABNORMAL_BILL_BO=#{ew.entity.abnormalBillBo}</if>
<if test="ew.entity.dutyUser!=null"> AND DUTY_USER=#{ew.entity.dutyUser}</if>
<if test="ew.entity.dutyDateTime!=null"> AND DUTY_DATE_TIME=#{ew.entity.dutyDateTime}</if>
<if test="ew.entity.dutyDepart!=null"> AND DUTY_DEPART=#{ew.entity.dutyDepart}</if>
<if test="ew.entity.principalUser!=null"> AND PRINCIPAL_USER=#{ew.entity.principalUser}</if>
<if test="ew.entity.dutyCauseDescription!=null"> AND DUTY_CAUSE_DESCRIPTION=#{ew.entity.dutyCauseDescription}</if>
<if test="ew.entity.dutyCauseType!=null"> AND DUTY_CAUSE_TYPE=#{ew.entity.dutyCauseType}</if>
<if test="ew.entity.dutySendUserGroup!=null"> AND DUTY_SEND_USER_GROUP=#{ew.entity.dutySendUserGroup}</if>
<if test="ew.entity.resolveUser!=null"> AND RESOLVE_USER=#{ew.entity.resolveUser}</if>
<if test="ew.entity.resolveDateTime!=null"> AND RESOLVE_DATE_TIME=#{ew.entity.resolveDateTime}</if>
<if test="ew.entity.abnormalMethod!=null"> AND ABNORMAL_METHOD=#{ew.entity.abnormalMethod}</if>
<if test="ew.entity.routerBo!=null"> AND ROUTER_BO=#{ew.entity.routerBo}</if>
<if test="ew.entity.resolveShopOrder!=null"> AND RESOLVE_SHOP_ORDER=#{ew.entity.resolveShopOrder}</if>
<if test="ew.entity.resolveRemark!=null"> AND RESOLVE_REMARK=#{ew.entity.resolveRemark}</if>
<if test="ew.entity.resolveSendUser!=null"> AND RESOLVE_SEND_USER=#{ew.entity.resolveSendUser}</if>
<if test="ew.entity.closedUser!=null"> AND CLOSED_USER=#{ew.entity.closedUser}</if>
<if test="ew.entity.closedDateTime!=null"> AND CLOSED_DATE_TIME=#{ew.entity.closedDateTime}</if>
<if test="ew.entity.abnormalReason!=null"> AND ABNORMAL_REASON=#{ew.entity.abnormalReason}</if>
<if test="ew.entity.beforeMeasure!=null"> AND BEFORE_MEASURE=#{ew.entity.beforeMeasure}</if>
<if test="ew.entity.createdUser!=null"> AND CREATED_USER=#{ew.entity.createdUser}</if>
<if test="ew.entity.createdDataTime!=null"> AND CREATED_DATA_TIME=#{ew.entity.createdDataTime}</if>
<if test="ew.entity.modifiedUser!=null"> AND MODIFIED_USER=#{ew.entity.modifiedUser}</if>
<if test="ew.entity.modifiedDateTime!=null"> AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}</if>
</if>
<if test="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
${ew.sqlSegment}
</if>
</if>
</where>
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">
${ew.sqlSegment}
</if>
</select>
<select id="selectPage" resultMap="BaseResultMap">
SELECT <choose><when test="ew != null and ew.sqlSelect != null">${ew.sqlSelect}</when><otherwise><include refid="Base_Column_List"></include></otherwise></choose> FROM Z_ABNORMAL_BILL_DISPOSE
<where>
<if test="ew!=null">
<if test="ew.entity!=null">
<if test="ew.entity.handle!=null">
HANDLE=#{ew.entity.handle}
</if>
<if test="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
<if test="ew.entity.abnormalBillBo!=null"> AND ABNORMAL_BILL_BO=#{ew.entity.abnormalBillBo}</if>
<if test="ew.entity.dutyUser!=null"> AND DUTY_USER=#{ew.entity.dutyUser}</if>
<if test="ew.entity.dutyDateTime!=null"> AND DUTY_DATE_TIME=#{ew.entity.dutyDateTime}</if>
<if test="ew.entity.dutyDepart!=null"> AND DUTY_DEPART=#{ew.entity.dutyDepart}</if>
<if test="ew.entity.principalUser!=null"> AND PRINCIPAL_USER=#{ew.entity.principalUser}</if>
<if test="ew.entity.dutyCauseDescription!=null"> AND DUTY_CAUSE_DESCRIPTION=#{ew.entity.dutyCauseDescription}</if>
<if test="ew.entity.dutyCauseType!=null"> AND DUTY_CAUSE_TYPE=#{ew.entity.dutyCauseType}</if>
<if test="ew.entity.dutySendUserGroup!=null"> AND DUTY_SEND_USER_GROUP=#{ew.entity.dutySendUserGroup}</if>
<if test="ew.entity.resolveUser!=null"> AND RESOLVE_USER=#{ew.entity.resolveUser}</if>
<if test="ew.entity.resolveDateTime!=null"> AND RESOLVE_DATE_TIME=#{ew.entity.resolveDateTime}</if>
<if test="ew.entity.abnormalMethod!=null"> AND ABNORMAL_METHOD=#{ew.entity.abnormalMethod}</if>
<if test="ew.entity.routerBo!=null"> AND ROUTER_BO=#{ew.entity.routerBo}</if>
<if test="ew.entity.resolveShopOrder!=null"> AND RESOLVE_SHOP_ORDER=#{ew.entity.resolveShopOrder}</if>
<if test="ew.entity.resolveRemark!=null"> AND RESOLVE_REMARK=#{ew.entity.resolveRemark}</if>
<if test="ew.entity.resolveSendUser!=null"> AND RESOLVE_SEND_USER=#{ew.entity.resolveSendUser}</if>
<if test="ew.entity.closedUser!=null"> AND CLOSED_USER=#{ew.entity.closedUser}</if>
<if test="ew.entity.closedDateTime!=null"> AND CLOSED_DATE_TIME=#{ew.entity.closedDateTime}</if>
<if test="ew.entity.abnormalReason!=null"> AND ABNORMAL_REASON=#{ew.entity.abnormalReason}</if>
<if test="ew.entity.beforeMeasure!=null"> AND BEFORE_MEASURE=#{ew.entity.beforeMeasure}</if>
<if test="ew.entity.createdUser!=null"> AND CREATED_USER=#{ew.entity.createdUser}</if>
<if test="ew.entity.createdDataTime!=null"> AND CREATED_DATA_TIME=#{ew.entity.createdDataTime}</if>
<if test="ew.entity.modifiedUser!=null"> AND MODIFIED_USER=#{ew.entity.modifiedUser}</if>
<if test="ew.entity.modifiedDateTime!=null"> AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}</if>
</if>
<if test="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
${ew.sqlSegment}
</if>
</if>
</where>
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">
${ew.sqlSegment}
</if>
</select>
<select id="selectMapsPage" resultType="HashMap">
SELECT <choose><when test="ew != null and ew.sqlSelect != null">${ew.sqlSelect}</when><otherwise><include refid="Base_Column_List"></include></otherwise></choose> FROM Z_ABNORMAL_BILL_DISPOSE
<where>
<if test="ew!=null">
<if test="ew.entity!=null">
<if test="ew.entity.handle!=null">
HANDLE=#{ew.entity.handle}
</if>
<if test="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
<if test="ew.entity.abnormalBillBo!=null"> AND ABNORMAL_BILL_BO=#{ew.entity.abnormalBillBo}</if>
<if test="ew.entity.dutyUser!=null"> AND DUTY_USER=#{ew.entity.dutyUser}</if>
<if test="ew.entity.dutyDateTime!=null"> AND DUTY_DATE_TIME=#{ew.entity.dutyDateTime}</if>
<if test="ew.entity.dutyDepart!=null"> AND DUTY_DEPART=#{ew.entity.dutyDepart}</if>
<if test="ew.entity.principalUser!=null"> AND PRINCIPAL_USER=#{ew.entity.principalUser}</if>
<if test="ew.entity.dutyCauseDescription!=null"> AND DUTY_CAUSE_DESCRIPTION=#{ew.entity.dutyCauseDescription}</if>
<if test="ew.entity.dutyCauseType!=null"> AND DUTY_CAUSE_TYPE=#{ew.entity.dutyCauseType}</if>
<if test="ew.entity.dutySendUserGroup!=null"> AND DUTY_SEND_USER_GROUP=#{ew.entity.dutySendUserGroup}</if>
<if test="ew.entity.resolveUser!=null"> AND RESOLVE_USER=#{ew.entity.resolveUser}</if>
<if test="ew.entity.resolveDateTime!=null"> AND RESOLVE_DATE_TIME=#{ew.entity.resolveDateTime}</if>
<if test="ew.entity.abnormalMethod!=null"> AND ABNORMAL_METHOD=#{ew.entity.abnormalMethod}</if>
<if test="ew.entity.routerBo!=null"> AND ROUTER_BO=#{ew.entity.routerBo}</if>
<if test="ew.entity.resolveShopOrder!=null"> AND RESOLVE_SHOP_ORDER=#{ew.entity.resolveShopOrder}</if>
<if test="ew.entity.resolveRemark!=null"> AND RESOLVE_REMARK=#{ew.entity.resolveRemark}</if>
<if test="ew.entity.resolveSendUser!=null"> AND RESOLVE_SEND_USER=#{ew.entity.resolveSendUser}</if>
<if test="ew.entity.closedUser!=null"> AND CLOSED_USER=#{ew.entity.closedUser}</if>
<if test="ew.entity.closedDateTime!=null"> AND CLOSED_DATE_TIME=#{ew.entity.closedDateTime}</if>
<if test="ew.entity.abnormalReason!=null"> AND ABNORMAL_REASON=#{ew.entity.abnormalReason}</if>
<if test="ew.entity.beforeMeasure!=null"> AND BEFORE_MEASURE=#{ew.entity.beforeMeasure}</if>
<if test="ew.entity.createdUser!=null"> AND CREATED_USER=#{ew.entity.createdUser}</if>
<if test="ew.entity.createdDataTime!=null"> AND CREATED_DATA_TIME=#{ew.entity.createdDataTime}</if>
<if test="ew.entity.modifiedUser!=null"> AND MODIFIED_USER=#{ew.entity.modifiedUser}</if>
<if test="ew.entity.modifiedDateTime!=null"> AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}</if>
</if>
<if test="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
${ew.sqlSegment}
</if>
</if>
</where>
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">
${ew.sqlSegment}
</if>
</select>
<insert id="insert" parameterType="com.foreverwin.mesnac.anomaly.model.AbnormalBillDispose">
INSERT INTO Z_ABNORMAL_BILL_DISPOSE
<trim prefix="(" suffix=")" suffixOverrides=",">
HANDLE,
<if test="site!=null">SITE,</if>
<if test="abnormalBillBo!=null">ABNORMAL_BILL_BO,</if>
<if test="dutyUser!=null">DUTY_USER,</if>
<if test="dutyDateTime!=null">DUTY_DATE_TIME,</if>
<if test="dutyDepart!=null">DUTY_DEPART,</if>
<if test="principalUser!=null">PRINCIPAL_USER,</if>
<if test="dutyCauseDescription!=null">DUTY_CAUSE_DESCRIPTION,</if>
<if test="dutyCauseType!=null">DUTY_CAUSE_TYPE,</if>
<if test="dutySendUserGroup!=null">DUTY_SEND_USER_GROUP,</if>
<if test="resolveUser!=null">RESOLVE_USER,</if>
<if test="resolveDateTime!=null">RESOLVE_DATE_TIME,</if>
<if test="abnormalMethod!=null">ABNORMAL_METHOD,</if>
<if test="routerBo!=null">ROUTER_BO,</if>
<if test="resolveShopOrder!=null">RESOLVE_SHOP_ORDER,</if>
<if test="resolveRemark!=null">RESOLVE_REMARK,</if>
<if test="resolveSendUser!=null">RESOLVE_SEND_USER,</if>
<if test="closedUser!=null">CLOSED_USER,</if>
<if test="closedDateTime!=null">CLOSED_DATE_TIME,</if>
<if test="abnormalReason!=null">ABNORMAL_REASON,</if>
<if test="beforeMeasure!=null">BEFORE_MEASURE,</if>
<if test="createdUser!=null">CREATED_USER,</if>
<if test="createdDataTime!=null">CREATED_DATA_TIME,</if>
<if test="modifiedUser!=null">MODIFIED_USER,</if>
<if test="modifiedDateTime!=null">MODIFIED_DATE_TIME,</if>
</trim> VALUES
<trim prefix="(" suffix=")" suffixOverrides=",">
#{handle},
<if test="site!=null">#{site},</if>
<if test="abnormalBillBo!=null">#{abnormalBillBo},</if>
<if test="dutyUser!=null">#{dutyUser},</if>
<if test="dutyDateTime!=null">#{dutyDateTime},</if>
<if test="dutyDepart!=null">#{dutyDepart},</if>
<if test="principalUser!=null">#{principalUser},</if>
<if test="dutyCauseDescription!=null">#{dutyCauseDescription},</if>
<if test="dutyCauseType!=null">#{dutyCauseType},</if>
<if test="dutySendUserGroup!=null">#{dutySendUserGroup},</if>
<if test="resolveUser!=null">#{resolveUser},</if>
<if test="resolveDateTime!=null">#{resolveDateTime},</if>
<if test="abnormalMethod!=null">#{abnormalMethod},</if>
<if test="routerBo!=null">#{routerBo},</if>
<if test="resolveShopOrder!=null">#{resolveShopOrder},</if>
<if test="resolveRemark!=null">#{resolveRemark},</if>
<if test="resolveSendUser!=null">#{resolveSendUser},</if>
<if test="closedUser!=null">#{closedUser},</if>
<if test="closedDateTime!=null">#{closedDateTime},</if>
<if test="abnormalReason!=null">#{abnormalReason},</if>
<if test="beforeMeasure!=null">#{beforeMeasure},</if>
<if test="createdUser!=null">#{createdUser},</if>
<if test="createdDataTime!=null">#{createdDataTime},</if>
<if test="modifiedUser!=null">#{modifiedUser},</if>
<if test="modifiedDateTime!=null">#{modifiedDateTime},</if>
</trim>
</insert>
<insert id="insertAllColumn" parameterType="com.foreverwin.mesnac.anomaly.model.AbnormalBillDispose">
INSERT INTO Z_ABNORMAL_BILL_DISPOSE
<trim prefix="(" suffix=")" suffixOverrides=",">
<include refid="Base_Column_List"></include>
</trim> VALUES
<trim prefix="(" suffix=")" suffixOverrides=",">
#{handle},
#{site},
#{abnormalBillBo},
#{dutyUser},
#{dutyDateTime},
#{dutyDepart},
#{principalUser},
#{dutyCauseDescription},
#{dutyCauseType},
#{dutySendUserGroup},
#{resolveUser},
#{resolveDateTime},
#{abnormalMethod},
#{routerBo},
#{resolveShopOrder},
#{resolveRemark},
#{resolveSendUser},
#{closedUser},
#{closedDateTime},
#{abnormalReason},
#{beforeMeasure},
#{createdUser},
#{createdDataTime},
#{modifiedUser},
#{modifiedDateTime},
</trim>
</insert>
<update id="update">
UPDATE Z_ABNORMAL_BILL_DISPOSE <trim prefix="SET" suffixOverrides=",">
<if test="et.handle!=null">HANDLE=#{et.handle},</if>
<if test="et.site!=null">SITE=#{et.site},</if>
<if test="et.abnormalBillBo!=null">ABNORMAL_BILL_BO=#{et.abnormalBillBo},</if>
<if test="et.dutyUser!=null">DUTY_USER=#{et.dutyUser},</if>
<if test="et.dutyDateTime!=null">DUTY_DATE_TIME=#{et.dutyDateTime},</if>
<if test="et.dutyDepart!=null">DUTY_DEPART=#{et.dutyDepart},</if>
<if test="et.principalUser!=null">PRINCIPAL_USER=#{et.principalUser},</if>
<if test="et.dutyCauseDescription!=null">DUTY_CAUSE_DESCRIPTION=#{et.dutyCauseDescription},</if>
<if test="et.dutyCauseType!=null">DUTY_CAUSE_TYPE=#{et.dutyCauseType},</if>
<if test="et.dutySendUserGroup!=null">DUTY_SEND_USER_GROUP=#{et.dutySendUserGroup},</if>
<if test="et.resolveUser!=null">RESOLVE_USER=#{et.resolveUser},</if>
<if test="et.resolveDateTime!=null">RESOLVE_DATE_TIME=#{et.resolveDateTime},</if>
<if test="et.abnormalMethod!=null">ABNORMAL_METHOD=#{et.abnormalMethod},</if>
<if test="et.routerBo!=null">ROUTER_BO=#{et.routerBo},</if>
<if test="et.resolveShopOrder!=null">RESOLVE_SHOP_ORDER=#{et.resolveShopOrder},</if>
<if test="et.resolveRemark!=null">RESOLVE_REMARK=#{et.resolveRemark},</if>
<if test="et.resolveSendUser!=null">RESOLVE_SEND_USER=#{et.resolveSendUser},</if>
<if test="et.closedUser!=null">CLOSED_USER=#{et.closedUser},</if>
<if test="et.closedDateTime!=null">CLOSED_DATE_TIME=#{et.closedDateTime},</if>
<if test="et.abnormalReason!=null">ABNORMAL_REASON=#{et.abnormalReason},</if>
<if test="et.beforeMeasure!=null">BEFORE_MEASURE=#{et.beforeMeasure},</if>
<if test="et.createdUser!=null">CREATED_USER=#{et.createdUser},</if>
<if test="et.createdDataTime!=null">CREATED_DATA_TIME=#{et.createdDataTime},</if>
<if test="et.modifiedUser!=null">MODIFIED_USER=#{et.modifiedUser},</if>
<if test="et.modifiedDateTime!=null">MODIFIED_DATE_TIME=#{et.modifiedDateTime},</if>
</trim>
<where>
<if test="ew!=null">
<if test="ew.entity!=null">
HANDLE=#{ew.entity.handle}
<if test="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
<if test="ew.entity.abnormalBillBo!=null"> AND ABNORMAL_BILL_BO=#{ew.entity.abnormalBillBo}</if>
<if test="ew.entity.dutyUser!=null"> AND DUTY_USER=#{ew.entity.dutyUser}</if>
<if test="ew.entity.dutyDateTime!=null"> AND DUTY_DATE_TIME=#{ew.entity.dutyDateTime}</if>
<if test="ew.entity.dutyDepart!=null"> AND DUTY_DEPART=#{ew.entity.dutyDepart}</if>
<if test="ew.entity.principalUser!=null"> AND PRINCIPAL_USER=#{ew.entity.principalUser}</if>
<if test="ew.entity.dutyCauseDescription!=null"> AND DUTY_CAUSE_DESCRIPTION=#{ew.entity.dutyCauseDescription}</if>
<if test="ew.entity.dutyCauseType!=null"> AND DUTY_CAUSE_TYPE=#{ew.entity.dutyCauseType}</if>
<if test="ew.entity.dutySendUserGroup!=null"> AND DUTY_SEND_USER_GROUP=#{ew.entity.dutySendUserGroup}</if>
<if test="ew.entity.resolveUser!=null"> AND RESOLVE_USER=#{ew.entity.resolveUser}</if>
<if test="ew.entity.resolveDateTime!=null"> AND RESOLVE_DATE_TIME=#{ew.entity.resolveDateTime}</if>
<if test="ew.entity.abnormalMethod!=null"> AND ABNORMAL_METHOD=#{ew.entity.abnormalMethod}</if>
<if test="ew.entity.routerBo!=null"> AND ROUTER_BO=#{ew.entity.routerBo}</if>
<if test="ew.entity.resolveShopOrder!=null"> AND RESOLVE_SHOP_ORDER=#{ew.entity.resolveShopOrder}</if>
<if test="ew.entity.resolveRemark!=null"> AND RESOLVE_REMARK=#{ew.entity.resolveRemark}</if>
<if test="ew.entity.resolveSendUser!=null"> AND RESOLVE_SEND_USER=#{ew.entity.resolveSendUser}</if>
<if test="ew.entity.closedUser!=null"> AND CLOSED_USER=#{ew.entity.closedUser}</if>
<if test="ew.entity.closedDateTime!=null"> AND CLOSED_DATE_TIME=#{ew.entity.closedDateTime}</if>
<if test="ew.entity.abnormalReason!=null"> AND ABNORMAL_REASON=#{ew.entity.abnormalReason}</if>
<if test="ew.entity.beforeMeasure!=null"> AND BEFORE_MEASURE=#{ew.entity.beforeMeasure}</if>
<if test="ew.entity.createdUser!=null"> AND CREATED_USER=#{ew.entity.createdUser}</if>
<if test="ew.entity.createdDataTime!=null"> AND CREATED_DATA_TIME=#{ew.entity.createdDataTime}</if>
<if test="ew.entity.modifiedUser!=null"> AND MODIFIED_USER=#{ew.entity.modifiedUser}</if>
<if test="ew.entity.modifiedDateTime!=null"> AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}</if>
</if>
<if test="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
${ew.sqlSegment}
</if>
</if>
</where>
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">
${ew.sqlSegment}
</if>
</update>
<delete id="deleteByMap">
DELETE FROM Z_ABNORMAL_BILL_DISPOSE
<if test="cm!=null and !cm.isEmpty">
<where>
<foreach collection="cm.keys" item="k" separator="AND">
<if test="cm[k] != null">
${k} = #{cm[${k}]}
</if>
</foreach>
</where>
</if>
</delete>
<delete id="delete">
DELETE FROM Z_ABNORMAL_BILL_DISPOSE
<where>
<if test="ew!=null">
<if test="ew.entity!=null">
<if test="ew.entity.handle!=null">
HANDLE=#{ew.entity.handle}
</if>
<if test="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
<if test="ew.entity.abnormalBillBo!=null"> AND ABNORMAL_BILL_BO=#{ew.entity.abnormalBillBo}</if>
<if test="ew.entity.dutyUser!=null"> AND DUTY_USER=#{ew.entity.dutyUser}</if>
<if test="ew.entity.dutyDateTime!=null"> AND DUTY_DATE_TIME=#{ew.entity.dutyDateTime}</if>
<if test="ew.entity.dutyDepart!=null"> AND DUTY_DEPART=#{ew.entity.dutyDepart}</if>
<if test="ew.entity.principalUser!=null"> AND PRINCIPAL_USER=#{ew.entity.principalUser}</if>
<if test="ew.entity.dutyCauseDescription!=null"> AND DUTY_CAUSE_DESCRIPTION=#{ew.entity.dutyCauseDescription}</if>
<if test="ew.entity.dutyCauseType!=null"> AND DUTY_CAUSE_TYPE=#{ew.entity.dutyCauseType}</if>
<if test="ew.entity.dutySendUserGroup!=null"> AND DUTY_SEND_USER_GROUP=#{ew.entity.dutySendUserGroup}</if>
<if test="ew.entity.resolveUser!=null"> AND RESOLVE_USER=#{ew.entity.resolveUser}</if>
<if test="ew.entity.resolveDateTime!=null"> AND RESOLVE_DATE_TIME=#{ew.entity.resolveDateTime}</if>
<if test="ew.entity.abnormalMethod!=null"> AND ABNORMAL_METHOD=#{ew.entity.abnormalMethod}</if>
<if test="ew.entity.routerBo!=null"> AND ROUTER_BO=#{ew.entity.routerBo}</if>
<if test="ew.entity.resolveShopOrder!=null"> AND RESOLVE_SHOP_ORDER=#{ew.entity.resolveShopOrder}</if>
<if test="ew.entity.resolveRemark!=null"> AND RESOLVE_REMARK=#{ew.entity.resolveRemark}</if>
<if test="ew.entity.resolveSendUser!=null"> AND RESOLVE_SEND_USER=#{ew.entity.resolveSendUser}</if>
<if test="ew.entity.closedUser!=null"> AND CLOSED_USER=#{ew.entity.closedUser}</if>
<if test="ew.entity.closedDateTime!=null"> AND CLOSED_DATE_TIME=#{ew.entity.closedDateTime}</if>
<if test="ew.entity.abnormalReason!=null"> AND ABNORMAL_REASON=#{ew.entity.abnormalReason}</if>
<if test="ew.entity.beforeMeasure!=null"> AND BEFORE_MEASURE=#{ew.entity.beforeMeasure}</if>
<if test="ew.entity.createdUser!=null"> AND CREATED_USER=#{ew.entity.createdUser}</if>
<if test="ew.entity.createdDataTime!=null"> AND CREATED_DATA_TIME=#{ew.entity.createdDataTime}</if>
<if test="ew.entity.modifiedUser!=null"> AND MODIFIED_USER=#{ew.entity.modifiedUser}</if>
<if test="ew.entity.modifiedDateTime!=null"> AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}</if>
</if>
<if test="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
${ew.sqlSegment}
</if>
</if>
</where>
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">
${ew.sqlSegment}
</if>
</delete>
<!-- BaseMapper标准查询/修改/删除 -->
</mapper>
Loading…
Cancel
Save