Merge remote-tracking branch 'origin/duhanyu'

main
吴顺杰 2 months ago
commit e4f6a463a8

@ -254,6 +254,7 @@ public class AssetCurrentController extends BaseController {
/** /**
* *
*/ */
@Transactional(rollbackFor = Exception.class)
@PreAuthorize("@ss.hasAnyRoles('admin,common')") @PreAuthorize("@ss.hasAnyRoles('admin,common')")
@ApiOperation(value = "导入现有资产") @ApiOperation(value = "导入现有资产")
@PostMapping(value = "/import", consumes = "multipart/form-data") @PostMapping(value = "/import", consumes = "multipart/form-data")

@ -77,6 +77,7 @@ public class UnitController {
/** /**
* *
*/ */
@Transactional(rollbackFor = Exception.class)
@ApiOperation(value = "单位导入") @ApiOperation(value = "单位导入")
@Log(title = "单位导入", businessType = BusinessType.IMPORT) @Log(title = "单位导入", businessType = BusinessType.IMPORT)
@PostMapping("/importData") @PostMapping("/importData")

@ -37,7 +37,6 @@ public class AssetCurrent extends BaseClass implements Serializable {
*/ */
@NotBlank @NotBlank
@Size(max= 100,message="系统名称长度不能超过100") @Size(max= 100,message="系统名称长度不能超过100")
@Excel(name = "*系统名称",sort = 2,width = 40,required = true)
@ApiModelProperty("系统名称") @ApiModelProperty("系统名称")
private String xtmc; private String xtmc;
/** /**

@ -97,6 +97,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and a.user_name like concat('%',#{req.userName},'%') and a.user_name like concat('%',#{req.userName},'%')
</if> </if>
</where> </where>
order by create_time desc
</select> </select>
<select id="getById" parameterType="unit" resultMap="unitResult"> <select id="getById" parameterType="unit" resultMap="unitResult">
select a.*,c.*,e.* from unit_info a select a.*,c.*,e.* from unit_info a

Loading…
Cancel
Save