修改 月

master
wangh 4 years ago
parent 13c33df09f
commit 5e26a1bc95

@ -91,10 +91,10 @@ public class BasePictureLocationController extends BaseController
@ResponseBody @ResponseBody
public AjaxResult addSave(MultipartFile file, BasePictureLocation basePictureLocation) public AjaxResult addSave(MultipartFile file, BasePictureLocation basePictureLocation)
{ {
int tag=basePictureLocationService.countBasePictureLocation(basePictureLocation.getPictureLocation()); // int tag=basePictureLocationService.countBasePictureLocation(basePictureLocation.getPictureLocation());
if (tag>0){ // if (tag>0){
return error("当前位置已有图片"); // return error("当前位置已有图片");
} // }
String filePath = Global.getUploadPath(); String filePath = Global.getUploadPath();
try { try {

@ -26,6 +26,7 @@ public class BasePictureLocation extends BaseEntity
@Excel(name = "显示位置") @Excel(name = "显示位置")
private Long pictureLocation; private Long pictureLocation;
public void setId(Long id) public void setId(Long id)
{ {
this.id = id; this.id = id;
@ -54,6 +55,7 @@ public class BasePictureLocation extends BaseEntity
return pictureLocation; return pictureLocation;
} }
@Override @Override
public String toString() { public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)

@ -22,6 +22,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include refid="selectBasePictureLocationVo"/> <include refid="selectBasePictureLocationVo"/>
<where> <where>
</where> </where>
order by picture_location
</select> </select>
<select id="selectBasePictureLocationById" parameterType="Long" resultMap="BasePictureLocationResult"> <select id="selectBasePictureLocationById" parameterType="Long" resultMap="BasePictureLocationResult">

@ -32,6 +32,9 @@
</select> </select>
</div> </div>
</div> </div>
</form> </form>
</div> </div>
<th:block th:include="include :: footer" /> <th:block th:include="include :: footer" />

@ -75,6 +75,8 @@
return $.table.selectDictLabel(pictureLocationDatas, value); return $.table.selectDictLabel(pictureLocationDatas, value);
} }
}, },
{ {
title: '操作', title: '操作',
align: 'center', align: 'center',

Loading…
Cancel
Save