Commit 6630e4a8 authored by KeYong's avatar KeYong

更新代码

parent 19d0d972
......@@ -2,10 +2,7 @@ package com.yeejoin.amos.supervision.business.controller;
import java.io.InputStream;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.*;
import javax.servlet.http.HttpServletResponse;
......@@ -96,6 +93,7 @@ public class InputItemController extends AbstractBaseController {
BeanUtils.copyProperties(param, inputItem);
inputItem.setOrgCode(loginOrgCode);
inputItem.setCreateBy(user.getUserId());
inputItem.setItemStart("0");
inputItemService.addNewInputItem(inputItem);
return CommonResponseUtil.success();
} catch (Exception e) {
......@@ -416,4 +414,12 @@ public class InputItemController extends AbstractBaseController {
public CommonResponse getItemParent(@ApiParam(value = "检查项id") @RequestParam(required = false) String 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;
import com.yeejoin.amos.supervision.business.vo.PointInputItemVo;
import com.yeejoin.amos.supervision.business.vo.PointVo;
import com.yeejoin.amos.supervision.feign.RemoteSecurityService;
import io.swagger.annotations.ApiModel;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
......
......@@ -34,4 +34,6 @@ public interface InputItemMapper {
Integer insertList(List<InputItem> list);
List<InputItemVo> getInputItemParent(@Param("id") String id);
void updatePointById(Map<String, Object> param);
}
......@@ -140,4 +140,5 @@ public interface PointMapper extends BaseMapper {
* @param list 点ID列表
*/
List<Map<String, Object>> getPointRefItem(List<Long> list);
}
......@@ -272,4 +272,9 @@ public class InputItemServiceImpl implements IInputItemService {
return inputItemMapper.insertList(list);
}
@Override
public void updatePointById(Map<String, Object> param) {
inputItemMapper.updatePointById(param);
}
}
......@@ -1204,4 +1204,5 @@ public class PointServiceImpl implements IPointService {
iPointInputItemDao.deleteByPointId(idLists);
iPointDao.delPointByPointNo(id);
}
}
......@@ -116,4 +116,6 @@ public interface IInputItemService {
List generateDictionaryValue();
List getItemParent(String id);
void updatePointById(Map<String, Object> param);
}
......@@ -287,4 +287,8 @@
AND pii.is_delete != 1
ORDER BY create_date DESC;
</select>
<update id="updatePointById" parameterType="map">
update p_input_item SET item_start = #{itemStart} WHERE id = #{id}
</update>
</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