Commit 6630e4a8 authored by KeYong's avatar KeYong

更新代码

parent 19d0d972
...@@ -2,10 +2,7 @@ package com.yeejoin.amos.supervision.business.controller; ...@@ -2,10 +2,7 @@ package com.yeejoin.amos.supervision.business.controller;
import java.io.InputStream; import java.io.InputStream;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.ArrayList; import java.util.*;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
...@@ -96,6 +93,7 @@ public class InputItemController extends AbstractBaseController { ...@@ -96,6 +93,7 @@ public class InputItemController extends AbstractBaseController {
BeanUtils.copyProperties(param, inputItem); BeanUtils.copyProperties(param, inputItem);
inputItem.setOrgCode(loginOrgCode); inputItem.setOrgCode(loginOrgCode);
inputItem.setCreateBy(user.getUserId()); inputItem.setCreateBy(user.getUserId());
inputItem.setItemStart("0");
inputItemService.addNewInputItem(inputItem); inputItemService.addNewInputItem(inputItem);
return CommonResponseUtil.success(); return CommonResponseUtil.success();
} catch (Exception e) { } catch (Exception e) {
...@@ -416,4 +414,12 @@ public class InputItemController extends AbstractBaseController { ...@@ -416,4 +414,12 @@ public class InputItemController extends AbstractBaseController {
public CommonResponse getItemParent(@ApiParam(value = "检查项id") @RequestParam(required = false) String id) { public CommonResponse getItemParent(@ApiParam(value = "检查项id") @RequestParam(required = false) String id) {
return CommonResponseUtil.success(inputItemService.getItemParent(id)); return CommonResponseUtil.success(inputItemService.getItemParent(id));
} }
@TycloudOperation(ApiLevel = UserType.AGENCY)
@ApiOperation(value = "新*修改检查项状态", notes = "新*修改检查项状态")
@PostMapping(value = "/status", produces = "application/json;charset=UTF-8")
public CommonResponse changePointStatus(@ApiParam(value = "状态") @RequestBody HashMap<String, Object> params) {
inputItemService.updatePointById(params);
return CommonResponseUtil.success();
}
} }
...@@ -17,6 +17,7 @@ import com.yeejoin.amos.supervision.business.vo.PointClassifyVo; ...@@ -17,6 +17,7 @@ import com.yeejoin.amos.supervision.business.vo.PointClassifyVo;
import com.yeejoin.amos.supervision.business.vo.PointInputItemVo; import com.yeejoin.amos.supervision.business.vo.PointInputItemVo;
import com.yeejoin.amos.supervision.business.vo.PointVo; import com.yeejoin.amos.supervision.business.vo.PointVo;
import com.yeejoin.amos.supervision.feign.RemoteSecurityService; import com.yeejoin.amos.supervision.feign.RemoteSecurityService;
import io.swagger.annotations.ApiModel;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
......
...@@ -34,4 +34,6 @@ public interface InputItemMapper { ...@@ -34,4 +34,6 @@ public interface InputItemMapper {
Integer insertList(List<InputItem> list); Integer insertList(List<InputItem> list);
List<InputItemVo> getInputItemParent(@Param("id") String id); List<InputItemVo> getInputItemParent(@Param("id") String id);
void updatePointById(Map<String, Object> param);
} }
...@@ -140,4 +140,5 @@ public interface PointMapper extends BaseMapper { ...@@ -140,4 +140,5 @@ public interface PointMapper extends BaseMapper {
* @param list 点ID列表 * @param list 点ID列表
*/ */
List<Map<String, Object>> getPointRefItem(List<Long> list); List<Map<String, Object>> getPointRefItem(List<Long> list);
} }
...@@ -272,4 +272,9 @@ public class InputItemServiceImpl implements IInputItemService { ...@@ -272,4 +272,9 @@ public class InputItemServiceImpl implements IInputItemService {
return inputItemMapper.insertList(list); return inputItemMapper.insertList(list);
} }
@Override
public void updatePointById(Map<String, Object> param) {
inputItemMapper.updatePointById(param);
}
} }
...@@ -1204,4 +1204,5 @@ public class PointServiceImpl implements IPointService { ...@@ -1204,4 +1204,5 @@ public class PointServiceImpl implements IPointService {
iPointInputItemDao.deleteByPointId(idLists); iPointInputItemDao.deleteByPointId(idLists);
iPointDao.delPointByPointNo(id); iPointDao.delPointByPointNo(id);
} }
} }
...@@ -116,4 +116,6 @@ public interface IInputItemService { ...@@ -116,4 +116,6 @@ public interface IInputItemService {
List generateDictionaryValue(); List generateDictionaryValue();
List getItemParent(String id); List getItemParent(String id);
void updatePointById(Map<String, Object> param);
} }
...@@ -287,4 +287,8 @@ ...@@ -287,4 +287,8 @@
AND pii.is_delete != 1 AND pii.is_delete != 1
ORDER BY create_date DESC; ORDER BY create_date DESC;
</select> </select>
<update id="updatePointById" parameterType="map">
update p_input_item SET item_start = #{itemStart} WHERE id = #{id}
</update>
</mapper> </mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment