OMS-GW-企业国别

This commit is contained in:
zhaoqing
2026-05-07 18:49:37 +08:00
parent 9b67df1e88
commit 8c3d44d7da
4 changed files with 20 additions and 13 deletions
@@ -181,4 +181,8 @@ public class ErpCountryApplicationService{
} }
erpCountryMapper.updateById(entity); erpCountryMapper.updateById(entity);
} }
public ErpCountry getById(Long id) {
return erpCountryMapper.selectById(id);
}
} }
@@ -29,9 +29,6 @@ public class ErpCountry implements Serializable {
@ApiModelProperty("ERP国别名称") @ApiModelProperty("ERP国别名称")
private String erpCountryName; private String erpCountryName;
@ApiModelProperty("备注")
private String remark;
@ApiModelProperty("推送状态:1-未推送,2-推送中,3-推送成功,4-推送失败") @ApiModelProperty("推送状态:1-未推送,2-推送中,3-推送成功,4-推送失败")
private Integer pushStatus; private Integer pushStatus;
@@ -55,9 +52,6 @@ public class ErpCountry implements Serializable {
@ApiModelProperty("创建人") @ApiModelProperty("创建人")
private Long createBy; private Long createBy;
@ApiModelProperty("创建人姓名")
private String createByName;
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty("创建时间") @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.domain.AjaxResult;
import com.mhd.common.core.web.page.TableDataInfo; import com.mhd.common.core.web.page.TableDataInfo;
import com.mhd.oms.application.service.erpCountry.ErpCountryApplicationService; 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 com.mhd.oms.interfaces.dto.erpCountry.ErpCountryDTO;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
@@ -59,4 +60,14 @@ public class ErpCountryApi extends BaseController{
return erpCountryApplicationService.batchPush(dtoList); 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"> <mapper namespace="com.mhd.oms.domain.erpCountry.repository.mapper.ErpCountryMapper">
<select id="queryList" resultType="com.mhd.oms.domain.erpCountry.repository.po.ErpCountryPO"> <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, SELECT *
ORGANIZATION_ID, TOP_ORGANIZATION_ID, ORGANIZATION_NAME,
CREATE_BY, CREATE_BY_NAME, CREATE_TIME, UPDATE_BY, UPDATE_BY_NAME, UPDATE_TIME, DEL_FLAG
FROM ERP_COUNTRY FROM ERP_COUNTRY
WHERE DEL_FLAG = 1 WHERE DEL_FLAG = 1
<if test="erpCountryDTO.pushStatus != null"> <if test="erpCountryDTO.pushStatus != null">
AND PUSH_STATUS = #{dto.pushStatus} AND PUSH_STATUS = #{erpCountryDTO.pushStatus}
</if> </if>
<if test="erpCountryDTO.pushTimeFrom != null and erpCountryDTO.pushTimeFrom != ''"> <if test="erpCountryDTO.pushTimeFrom != null and erpCountryDTO.pushTimeFrom != ''">
AND DATE_FORMAT(PUSH_TIME, '%Y-%m-%d') &gt;= #{dto.pushTimeFrom} AND DATE_FORMAT(PUSH_TIME, '%Y-%m-%d') &gt;= #{erpCountryDTO.pushTimeFrom}
</if> </if>
<if test="erpCountryDTO.pushTimeTo != null and erpCountryDTO.pushTimeTo != ''"> <if test="erpCountryDTO.pushTimeTo != null and erpCountryDTO.pushTimeTo != ''">
AND DATE_FORMAT(PUSH_TIME, '%Y-%m-%d') &lt;= #{dto.pushTimeTo} AND DATE_FORMAT(PUSH_TIME, '%Y-%m-%d') &lt;= #{erpCountryDTO.pushTimeTo}
</if> </if>
<if test="erpCountryDTO.organizationId != null"> <if test="erpCountryDTO.organizationId != null">
AND ORGANIZATION_ID = #{dto.organizationId} AND ORGANIZATION_ID = #{erpCountryDTO.organizationId}
</if> </if>
ORDER BY CREATE_TIME DESC ORDER BY CREATE_TIME DESC
</select> </select>