OMS-GW-企业国别
This commit is contained in:
+4
@@ -181,4 +181,8 @@ public class ErpCountryApplicationService{
|
||||
}
|
||||
erpCountryMapper.updateById(entity);
|
||||
}
|
||||
|
||||
public ErpCountry getById(Long id) {
|
||||
return erpCountryMapper.selectById(id);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,9 +29,6 @@ public class ErpCountry implements Serializable {
|
||||
@ApiModelProperty("ERP国别名称")
|
||||
private String erpCountryName;
|
||||
|
||||
@ApiModelProperty("备注")
|
||||
private String remark;
|
||||
|
||||
@ApiModelProperty("推送状态:1-未推送,2-推送中,3-推送成功,4-推送失败")
|
||||
private Integer pushStatus;
|
||||
|
||||
@@ -55,9 +52,6 @@ public class ErpCountry implements Serializable {
|
||||
@ApiModelProperty("创建人")
|
||||
private Long createBy;
|
||||
|
||||
@ApiModelProperty("创建人姓名")
|
||||
private String createByName;
|
||||
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty("创建时间")
|
||||
|
||||
@@ -5,6 +5,7 @@ import com.mhd.common.core.web.controller.BaseController;
|
||||
import com.mhd.common.core.web.domain.AjaxResult;
|
||||
import com.mhd.common.core.web.page.TableDataInfo;
|
||||
import com.mhd.oms.application.service.erpCountry.ErpCountryApplicationService;
|
||||
import com.mhd.oms.domain.erpCountry.entity.ErpCountry;
|
||||
import com.mhd.oms.interfaces.dto.erpCountry.ErpCountryDTO;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
@@ -59,4 +60,14 @@ public class ErpCountryApi extends BaseController{
|
||||
return erpCountryApplicationService.batchPush(dtoList);
|
||||
}
|
||||
|
||||
@ApiOperation("获取企业国别详情")
|
||||
@GetMapping("/getInfo")
|
||||
public AjaxResult getInfo(Long id) {
|
||||
if (id == null) {
|
||||
return AjaxResult.error("ID不能为空");
|
||||
}
|
||||
ErpCountry erpCountry = erpCountryApplicationService.getById(id);
|
||||
return AjaxResult.success(erpCountry);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -3,22 +3,20 @@
|
||||
<mapper namespace="com.mhd.oms.domain.erpCountry.repository.mapper.ErpCountryMapper">
|
||||
|
||||
<select id="queryList" resultType="com.mhd.oms.domain.erpCountry.repository.po.ErpCountryPO">
|
||||
SELECT ID, ERP_COUNTRY_CODE, ERP_COUNTRY_NAME, REMARK, PUSH_STATUS, PUSH_TIME, PUSH_BY,
|
||||
ORGANIZATION_ID, TOP_ORGANIZATION_ID, ORGANIZATION_NAME,
|
||||
CREATE_BY, CREATE_BY_NAME, CREATE_TIME, UPDATE_BY, UPDATE_BY_NAME, UPDATE_TIME, DEL_FLAG
|
||||
SELECT *
|
||||
FROM ERP_COUNTRY
|
||||
WHERE DEL_FLAG = 1
|
||||
<if test="erpCountryDTO.pushStatus != null">
|
||||
AND PUSH_STATUS = #{dto.pushStatus}
|
||||
AND PUSH_STATUS = #{erpCountryDTO.pushStatus}
|
||||
</if>
|
||||
<if test="erpCountryDTO.pushTimeFrom != null and erpCountryDTO.pushTimeFrom != ''">
|
||||
AND DATE_FORMAT(PUSH_TIME, '%Y-%m-%d') >= #{dto.pushTimeFrom}
|
||||
AND DATE_FORMAT(PUSH_TIME, '%Y-%m-%d') >= #{erpCountryDTO.pushTimeFrom}
|
||||
</if>
|
||||
<if test="erpCountryDTO.pushTimeTo != null and erpCountryDTO.pushTimeTo != ''">
|
||||
AND DATE_FORMAT(PUSH_TIME, '%Y-%m-%d') <= #{dto.pushTimeTo}
|
||||
AND DATE_FORMAT(PUSH_TIME, '%Y-%m-%d') <= #{erpCountryDTO.pushTimeTo}
|
||||
</if>
|
||||
<if test="erpCountryDTO.organizationId != null">
|
||||
AND ORGANIZATION_ID = #{dto.organizationId}
|
||||
AND ORGANIZATION_ID = #{erpCountryDTO.organizationId}
|
||||
</if>
|
||||
ORDER BY CREATE_TIME DESC
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user